Skip to content

Commit

Permalink
cpplintをアップグレード (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Jul 1, 2024
1 parent 7ee5486 commit bf1ba83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ repos:
types_or: [c++, c, cuda]

- repo: https://github.com/cpplint/cpplint
rev: 1.6.1
rev: 80e97a67b2a10643d764dad98cde723f8dd1f1cf # NOLINTBEGIN/NOINTENDサポート
hooks:
- id: cpplint
args: [--quiet]
Expand Down
4 changes: 4 additions & 0 deletions CPPLINT.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ set noparent
linelength=100
includeorder=standardcfirst
filter=-build/c++11 # we do allow C++11
filter=-build/c++14 # we do allow C++14
filter=-build/c++17 # we do allow C++17
filter=-build/c++20 # we do allow C++20
filter=-build/namespaces_literals # we allow using namespace for literals
filter=-runtime/references # we consider passing non-const references to be ok
filter=-whitespace/braces # we wrap open curly braces for namespaces, classes and functions
Expand All @@ -12,4 +15,5 @@ filter=-whitespace/semicolon # we allow the developer to decide about white
filter=-build/header_guard # we automatically fix the names of header guards using pre-commit
filter=-build/include_order # we use the custom include order
filter=-build/include_subdir # we allow the style of "foo.hpp"
filter=-build/include_what_you_use # we allow the developer to decide about the includes
filter=-readability/alt_tokens # we want to use not instead of !

0 comments on commit bf1ba83

Please sign in to comment.