File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 142
142
filter=+filter1,-filter2,...
143
143
exclude_files=regex
144
144
linelength=80
145
+ root=subdir
145
146
146
147
"set noparent" option prevents cpplint from traversing directory tree
147
148
upwards looking for more .cfg files in parent directories. This option
157
158
158
159
"linelength" allows to specify the allowed line length for the project.
159
160
161
+ The "root" option is similar in function to the --root flag (see example
162
+ above).
163
+
160
164
CPPLINT.cfg has an effect on files in the same directory and all
161
165
sub-directories, unless overridden by a nested configuration file.
162
166
@@ -5886,6 +5890,9 @@ def ProcessConfigOverrides(filename):
5886
5890
_line_length = int (val )
5887
5891
except ValueError :
5888
5892
sys .stderr .write ('Line length must be numeric.' )
5893
+ elif name == 'root' :
5894
+ global _root
5895
+ _root = val
5889
5896
else :
5890
5897
sys .stderr .write (
5891
5898
'Invalid configuration option (%s) in file %s\n ' %
You can’t perform that action at this time.
0 commit comments