-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #482 from imperialCHEPI/remove_prettier_hook
pre-commit: Replace prettier hook with separate JSON and YAML formatters
- Loading branch information
Showing
9 changed files
with
245 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,44 @@ | ||
--- | ||
Checks: > | ||
# Checks to include | ||
clang-diagnostic-*, | ||
clang-analyzer-*, | ||
bugprone-*, | ||
readability-*, | ||
modernize-*, | ||
performance-*, | ||
misc-*, | ||
cppcoreguidelines-*, | ||
# Checks to include | ||
clang-diagnostic-*, | ||
clang-analyzer-*, | ||
bugprone-*, | ||
readability-*, | ||
modernize-*, | ||
performance-*, | ||
misc-*, | ||
cppcoreguidelines-*, | ||
# Checks to exclude | ||
-*, | ||
-clang-analyzer-osx.*, | ||
-clang-analyzer-fuchsia.*, | ||
-clang-analyzer-optin.osx.*, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-narrowing-conversions, | ||
-modernize-use-trailing-return-type, | ||
-modernize-use-nodiscard, | ||
-readability-identifier-length, | ||
-readability-implicit-bool-conversion, | ||
-readability-uppercase-literal-suffix, | ||
-readability-magic-numbers, | ||
-readability-isolate-declaration, | ||
-misc-const-correctness, | ||
-misc-include-cleaner, | ||
-misc-no-recursion, | ||
-misc-non-private-member-variables-in-classes, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-cppcoreguidelines-narrowing-conversions, | ||
-cppcoreguidelines-init-variables, | ||
-cppcoreguidelines-non-private-member-variables-in-classes, | ||
-cppcoreguidelines-avoid-non-const-global-variables, | ||
-cppcoreguidelines-avoid-c-arrays, | ||
-cppcoreguidelines-avoid-do-while, | ||
-cppcoreguidelines-pro-bounds-constant-array-index, | ||
-cppcoreguidelines-special-member-functions, | ||
-cppcoreguidelines-macro-usage, | ||
# Checks to exclude | ||
-*, | ||
-clang-analyzer-osx.*, | ||
-clang-analyzer-fuchsia.*, | ||
-clang-analyzer-optin.osx.*, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-narrowing-conversions, | ||
-modernize-use-trailing-return-type, | ||
-modernize-use-nodiscard, | ||
-readability-identifier-length, | ||
-readability-implicit-bool-conversion, | ||
-readability-uppercase-literal-suffix, | ||
-readability-magic-numbers, | ||
-readability-isolate-declaration, | ||
-misc-const-correctness, | ||
-misc-include-cleaner, | ||
-misc-no-recursion, | ||
-misc-non-private-member-variables-in-classes, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-cppcoreguidelines-narrowing-conversions, | ||
-cppcoreguidelines-init-variables, | ||
-cppcoreguidelines-non-private-member-variables-in-classes, | ||
-cppcoreguidelines-avoid-non-const-global-variables, | ||
-cppcoreguidelines-avoid-c-arrays, | ||
-cppcoreguidelines-avoid-do-while, | ||
-cppcoreguidelines-pro-bounds-constant-array-index, | ||
-cppcoreguidelines-special-member-functions, | ||
-cppcoreguidelines-macro-usage, | ||
CheckOptions: | ||
- key: readability-function-cognitive-complexity.IgnoreMacros | ||
value: true | ||
- key: readability-function-cognitive-complexity.IgnoreMacros | ||
value: true | ||
FormatStyle: LLVM | ||
WarningsAsErrors: "*" | ||
WarningsAsErrors: '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,8 @@ jobs: | |
is_main: true | ||
|
||
env: | ||
VCPKG_ROOT: "vcpkg" | ||
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
VCPKG_ROOT: vcpkg | ||
VCPKG_BINARY_SOURCES: clear;x-gha,readwrite | ||
|
||
# Update when there is a new version of gcc available | ||
LATEST_GCC_VERSION: 13 | ||
|
@@ -85,7 +85,7 @@ jobs: | |
with: | ||
build_dir: out/build/linux-debug | ||
config_file: .clang-tidy | ||
lgtm_comment_body: "" | ||
lgtm_comment_body: '' | ||
|
||
# Uploads an artefact containing clang_fixes.json | ||
- uses: ZedThree/clang-tidy-review/[email protected] | ||
|
@@ -98,12 +98,12 @@ jobs: | |
|
||
- uses: ammaraskar/gcc-problem-matcher@master | ||
- name: Build HealthGPS (debug) | ||
if: "!cancelled()" # Run this step, even if the previous one fails | ||
if: '!cancelled()' # Run this step, even if the previous one fails | ||
run: | | ||
cmake --build --preset=debug-build-${{ matrix.platform }} --target=install | ||
- name: Build HealthGPS (release) | ||
if: "!cancelled()" # Run this step, even if the previous one fails | ||
if: '!cancelled()' # Run this step, even if the previous one fails | ||
run: | | ||
# Build documentation so we can show Doxygen warnings | ||
cmake --preset=${{ matrix.platform }}-release -DWARNINGS_AS_ERRORS=ON -DBUILD_DOC=ON | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"recommendations": ["ms-vscode.cpptools", "davidanson.vscode-markdownlint"] | ||
"recommendations": [ | ||
"ms-vscode.cpptools", | ||
"davidanson.vscode-markdownlint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.