File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -122,3 +122,34 @@ init_command = [
122
122
' --dry-run={{DRYRUN}}' ,
123
123
' --requirement=requirements-lintrunner.txt' ,
124
124
]
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
+ ]
You can’t perform that action at this time.
0 commit comments