Skip to content

Commit 0a25ace

Browse files
committed
tools: move cpplint configuration to .cpplint
PR-URL: nodejs#27098 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent cd2987f commit 0a25ace

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.cpplint

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set noparent
2+
filter=-build/include_alpha,-build/include_subdir,-build/include_what_you_use,-legal/copyright,-readability/nolint
3+
linelength=80

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
!.nycrc
1818
!.travis.yml
1919
!.eslintrc.yaml
20+
!.cpplint
2021

2122
core
2223
vgcore.*

tools/cpplint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6285,7 +6285,7 @@ def ProcessConfigOverrides(filename):
62856285
if not base_name:
62866286
break # Reached the root directory.
62876287

6288-
cfg_file = os.path.join(abs_path, "CPPLINT.cfg")
6288+
cfg_file = os.path.join(abs_path, ".cpplint")
62896289
abs_filename = abs_path
62906290
if not os.path.isfile(cfg_file):
62916291
continue

0 commit comments

Comments
 (0)