From 0a25ace9c35b62ece4d32fd90b326d8063265109 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Fri, 5 Apr 2019 08:31:47 -0400 Subject: [PATCH] tools: move cpplint configuration to .cpplint PR-URL: https://github.com/nodejs/node/pull/27098 Reviewed-By: Joyee Cheung Reviewed-By: Daniel Bevenius --- .cpplint | 3 +++ .gitignore | 1 + tools/cpplint.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .cpplint diff --git a/.cpplint b/.cpplint new file mode 100644 index 00000000000000..f6e10f03963405 --- /dev/null +++ b/.cpplint @@ -0,0 +1,3 @@ +set noparent +filter=-build/include_alpha,-build/include_subdir,-build/include_what_you_use,-legal/copyright,-readability/nolint +linelength=80 diff --git a/.gitignore b/.gitignore index 41b7beb222d5af..86664b41461a8e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ !.nycrc !.travis.yml !.eslintrc.yaml +!.cpplint core vgcore.* diff --git a/tools/cpplint.py b/tools/cpplint.py index 05c7923b350be4..2cc586ee5d9a2c 100755 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -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