tools: move cpplint configuration to .cpplint

PR-URL: https://github.com/nodejs/node/pull/27098
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
Refael Ackermann 2019-04-05 08:31:47 -04:00
parent cd2987f83f
commit 0a25ace9c3
3 changed files with 5 additions and 1 deletions

3
.cpplint Normal file
View File

@ -0,0 +1,3 @@
set noparent
filter=-build/include_alpha,-build/include_subdir,-build/include_what_you_use,-legal/copyright,-readability/nolint
linelength=80

1
.gitignore vendored
View File

@ -17,6 +17,7 @@
!.nycrc !.nycrc
!.travis.yml !.travis.yml
!.eslintrc.yaml !.eslintrc.yaml
!.cpplint
core core
vgcore.* vgcore.*

2
tools/cpplint.py vendored
View File

@ -6285,7 +6285,7 @@ def ProcessConfigOverrides(filename):
if not base_name: if not base_name:
break # Reached the root directory. break # Reached the root directory.
cfg_file = os.path.join(abs_path, "CPPLINT.cfg") cfg_file = os.path.join(abs_path, ".cpplint")
abs_filename = abs_path abs_filename = abs_path
if not os.path.isfile(cfg_file): if not os.path.isfile(cfg_file):
continue continue