Skip to content

Commit

Permalink
Fix clang-tidy scan.
Browse files Browse the repository at this point in the history
  • Loading branch information
ASxa86 committed Aug 12, 2024
1 parent a3063ef commit 6847f36
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
27 changes: 23 additions & 4 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ Checks: '-*,
bugprone-*,
cert-*,
cppcoreguidelines-*,
misc-*,
-misc-include-cleaner,
modernize-*,
-modernize-use-trailing-return-type,
readability-*,
-readability-identifier-length,
-readability-simplify-boolean-expr
-readability-simplify-boolean-expr,
performance-*
'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
HeaderFilterRegex: '^.*emit/(app|module)/.*\.h$'
FormatStyle: file
UseColor: 'true'
CheckOptions:
Expand All @@ -34,5 +37,21 @@ CheckOptions:
modernize-loop-convert.NamingStyle: CamelCase
llvm-else-after-return.WarnOnUnfixable: 'false'
google-readability-function-size.StatementThreshold: '800'
readability-identifier-naming.ClassCase: 'CamelCase'
readability-identifier-naming.ClassMemberCase: 'camelBack'
readability-identifier-naming.ClassMethodCase: 'camelBack'
readability-identifier-naming.ConceptCase: 'CamelCase'
readability-identifier-naming.EnumCase: 'CamelCase'
readability-identifier-naming.FunctionCase: 'CamelCase'
readability-identifier-naming.GlobalConstantCase: 'CamelCase'
readability-identifier-naming.GlobalFunctionCase: 'CamelCase'
readability-identifier-naming.GlobalVariableCase: 'CamelCase'
readability-identifier-naming.LocalConstantCase: 'camelBack'
readability-identifier-naming.MemberCase: 'camelBack'
readability-identifier-naming.MethodCase: 'camelBack'
readability-identifier-naming.NamespaceCase: 'camelBack'
readability-identifier-naming.ParameterCase: 'camelBack'
readability-identifier-naming.ParameterPackCase: 'camelBack'
readability-identifier-naming.StructCase: 'CamelCase'
readability-identifier-naming.VariableCase: 'camelBack'
...

2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ build-clang-tidy:
- ${CMAKE_COMMAND} --build --preset clang-debug

# Run Clang Tidy
- find src/ app/ -type f -name "*.cpp" -print0 | xargs -0 -P $(nproc --all) clang-tidy-17 -p build
- find module/ app/ -type f -name "*.cpp" -print0 | xargs -0 -P $(nproc --all) clang-tidy-17 -p build

.build-base:
image: $CI_REGISTRY/asxa86/images/ubuntu-dev:latest
Expand Down

0 comments on commit 6847f36

Please sign in to comment.