Skip to content

Commit

Permalink
tools: move cpplint configuration to .cpplint
Browse files Browse the repository at this point in the history
PR-URL: #27098
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
  • Loading branch information
refack committed Apr 8, 2019
1 parent cd2987f commit 0a25ace
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .cpplint
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
!.nycrc
!.travis.yml
!.eslintrc.yaml
!.cpplint

core
vgcore.*
Expand Down
2 changes: 1 addition & 1 deletion tools/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -6285,7 +6285,7 @@ def ProcessConfigOverrides(filename):
if not base_name:
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
if not os.path.isfile(cfg_file):
continue
Expand Down

0 comments on commit 0a25ace

Please sign in to comment.