mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 22:30:04 +00:00
Use unique .clang-tidy for test, ignoring checks for magic numbers
This commit is contained in:
parent
7e9895e002
commit
3998f0fe36
3 changed files with 19 additions and 3 deletions
|
|
@ -6,10 +6,10 @@ Checks:
|
|||
- 'misc-*'
|
||||
- 'modernize-*'
|
||||
- 'performance-*'
|
||||
- '-bugprone-easily-swappable-parameters'
|
||||
- '-cppcoreguidelines-pro-type-reinterpret-cast'
|
||||
- '-misc-include-cleaner'
|
||||
- '-misc-non-private-member-variables-in-classes'
|
||||
- '-modernize-use-trailing-return-type'
|
||||
- '-bugprone-easily-swappable-parameters'
|
||||
- '-modernize-return-braced-init-list'
|
||||
- '-modernize-use-trailing-return-type'
|
||||
FormatStyle: 'file'
|
||||
|
|
|
|||
2
.github/workflows/clang-tidy-review.yml
vendored
2
.github/workflows/clang-tidy-review.yml
vendored
|
|
@ -126,7 +126,7 @@ jobs:
|
|||
--build_dir='../build' \
|
||||
--base_dir='${{ github.workspace }}/source' \
|
||||
--clang_tidy_checks='' \
|
||||
--config_file='.clang-tidy' \
|
||||
--config_file='' \
|
||||
--include='*.[ch],*.[ch]xx,*.[chi]pp,*.[ch]++,*.cc,*.hh' \
|
||||
--exclude='' \
|
||||
--apt-packages='' \
|
||||
|
|
|
|||
16
test/.clang-tidy
Normal file
16
test/.clang-tidy
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Checks:
|
||||
- '-*'
|
||||
- 'bugprone-*'
|
||||
- 'clang-analyzer-*'
|
||||
- 'cppcoreguidelines-*'
|
||||
- 'misc-*'
|
||||
- 'modernize-*'
|
||||
- 'performance-*'
|
||||
- '-bugprone-easily-swappable-parameters'
|
||||
- '-cppcoreguidelines-avoid-magic-numbers'
|
||||
- '-cppcoreguidelines-pro-type-reinterpret-cast'
|
||||
- '-misc-include-cleaner'
|
||||
- '-misc-non-private-member-variables-in-classes'
|
||||
- '-modernize-return-braced-init-list'
|
||||
- '-modernize-use-trailing-return-type'
|
||||
FormatStyle: 'file'
|
||||
Loading…
Add table
Add a link
Reference in a new issue