github action: enable clippy::cognitive_complexity

This commit is contained in:
Sylvestre Ledru 2023-10-08 17:32:03 +02:00
parent 4ed58718a8
commit 6d24549156

View file

@ -231,7 +231,7 @@ jobs:
run: | run: |
## `cargo clippy` lint testing ## `cargo clippy` lint testing
unset fault unset fault
CLIPPY_FLAGS="-W clippy::default_trait_access -W clippy::manual_string_new" CLIPPY_FLAGS="-W clippy::default_trait_access -W clippy::manual_string_new -W clippy::cognitive_complexity"
fault_type="${{ steps.vars.outputs.FAULT_TYPE }}" fault_type="${{ steps.vars.outputs.FAULT_TYPE }}"
fault_prefix=$(echo "$fault_type" | tr '[:lower:]' '[:upper:]') fault_prefix=$(echo "$fault_type" | tr '[:lower:]' '[:upper:]')
# * convert any warnings to GHA UI annotations; ref: <https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message> # * convert any warnings to GHA UI annotations; ref: <https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message>