We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89a0bdf commit 022a946Copy full SHA for 022a946
.lintrunner.toml
@@ -343,3 +343,29 @@ init_command = [
343
'--dry-run={{DRYRUN}}',
344
'--requirement=requirements-lintrunner.txt',
345
]
346
+
347
+[[linter]]
348
+code = 'LICENSELINT'
349
+include_patterns = [
350
+ '**/*',
351
+]
352
+exclude_patterns = [
353
+ '**/fb/**',
354
+ '.lintrunner.toml',
355
356
+command = [
357
+ 'python',
358
+ '-m',
359
+ 'lintrunner_adapters',
360
+ 'run',
361
+ 'grep_linter',
362
+ '--pattern=Confidential and proprietary',
363
+ '--linter-name=LICENSELINT',
364
+ '--error-name=Wrong license',
365
+ """--error-description=\
366
+ Code contributed to ExecuTorch open source repo should have \
367
+ BSD-license header \
368
+ """,
369
+ '--',
370
+ '@{{PATHSFILE}}',
371
0 commit comments