Skip to content

Commit c674c96

Browse files
committed
Test Linter
1 parent c857a54 commit c674c96

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.lintrunner.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,34 @@ init_command = [
122122
'--dry-run={{DRYRUN}}',
123123
'--requirement=requirements-lintrunner.txt',
124124
]
125+
126+
[[linter]]
127+
code = 'ETCAPITAL'
128+
include_patterns = [
129+
'**/*.py',
130+
'**/*.pyi',
131+
'**/*.h',
132+
'**/*.cpp',
133+
'**/*.md',
134+
'**/*.rst',
135+
]
136+
exclude_patterns = [
137+
'third-party/**',
138+
'**/third-party/**',
139+
]
140+
command = [
141+
'python',
142+
'-m',
143+
'lintrunner_adapters',
144+
'run',
145+
'grep_linter',
146+
'--pattern= Executorch\W+',
147+
'--linter-name=ExecuTorchCapitalization',
148+
'--error-name=Incorrect capitalization for ExecuTorch',
149+
"""--error-description=
150+
Please use ExecuTorch with capital T for consistency.
151+
https://fburl.com/workplace/nsx6hib2
152+
""",
153+
'--',
154+
'@{{PATHSFILE}}',
155+
]

0 commit comments

Comments
 (0)