Skip to content

[nasa/cryptolib#373] Formatted Code #110

[nasa/cryptolib#373] Formatted Code

[nasa/cryptolib#373] Formatted Code #110

Triggered via pull request January 13, 2025 20:54
Status Success
Total duration 33s
Artifacts

cpp-linter.yml

on: pull_request
cpp-linter
23s
cpp-linter
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 10 warnings, and 10 notices
support/standalone/standalone.c:29:25 [cppcoreguidelines-avoid-non-const-global-variables]: support/standalone/standalone.c#L29
variable 'keepRunning' is non-const and globally accessible, consider making it const
support/standalone/standalone.c:30:25 [cppcoreguidelines-avoid-non-const-global-variables]: support/standalone/standalone.c#L30
variable 'tc_seq_num' is non-const and globally accessible, consider making it const
support/standalone/standalone.c:31:25 [cppcoreguidelines-avoid-non-const-global-variables]: support/standalone/standalone.c#L31
variable 'tc_vcid' is non-const and globally accessible, consider making it const
support/standalone/standalone.c:32:25 [cppcoreguidelines-avoid-non-const-global-variables]: support/standalone/standalone.c#L32
variable 'tc_debug' is non-const and globally accessible, consider making it const
support/standalone/standalone.c:33:25 [cppcoreguidelines-avoid-non-const-global-variables]: support/standalone/standalone.c#L33
variable 'tm_debug' is non-const and globally accessible, consider making it const
support/standalone/standalone.c:57:5 [readability-redundant-control-flow]: support/standalone/standalone.c#L57
redundant return statement at the end of a function with a void return type
support/standalone/standalone.c:113:9 [readability-function-cognitive-complexity]: support/standalone/standalone.c#L113
function 'crypto_standalone_process_command' has cognitive complexity of 32 (threshold 25)
Run clang-format on support/standalone/standalone.c: support/standalone/standalone.c#L1
File support/standalone/standalone.c does not conform to Custom style guidelines. (lines 224, 339, 340, 575, 576)
Run clang-format on src/core/crypto_config.c: src/core/crypto_config.c#L1
File src/core/crypto_config.c does not conform to Custom style guidelines. (lines 38, 191)
Run clang-format on src/core/crypto_key_mgmt.c: src/core/crypto_key_mgmt.c#L1
File src/core/crypto_key_mgmt.c does not conform to Custom style guidelines. (lines 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 219, 338, 402)
Run clang-format on src/core/crypto_tc.c: src/core/crypto_tc.c#L1
File src/core/crypto_tc.c does not conform to Custom style guidelines. (lines 620, 621, 810, 943, 944, 949, 955, 1756, 1760, 1761)
Run clang-format on src/core/crypto_aos.c: src/core/crypto_aos.c#L1
File src/core/crypto_aos.c does not conform to Custom style guidelines. (lines 912)
Run clang-format on src/core/crypto_tm.c: src/core/crypto_tm.c#L1
File src/core/crypto_tm.c does not conform to Custom style guidelines. (lines 1705, 1710, 1711)
Run clang-format on src/sa/mariadb/sa_interface_mariadb.template.c: src/sa/mariadb/sa_interface_mariadb.template.c#L1
File src/sa/mariadb/sa_interface_mariadb.template.c does not conform to Custom style guidelines. (lines 76, 549, 550)
Run clang-format on src/sa/internal/sa_interface_inmemory.template.c: src/sa/internal/sa_interface_inmemory.template.c#L1
File src/sa/internal/sa_interface_inmemory.template.c does not conform to Custom style guidelines. (lines 77, 171)
Run clang-format on src/crypto/kmc/cryptography_interface_kmc_crypto_service.template.c: src/crypto/kmc/cryptography_interface_kmc_crypto_service.template.c#L1
File src/crypto/kmc/cryptography_interface_kmc_crypto_service.template.c does not conform to Custom style guidelines. (lines 35, 41, 91, 99, 100, 163, 345, 396, 397, 419, 427, 482, 540, 586, 639, 669, 784, 836, 850, 851, 854, 903, 1009, 1032, 1093, 1119, 1202, 1282, 1361, 1362, 1385, 1393, 1448, 1575, 1606, 1612, 1683, 1742, 1772, 2015, 2087, 2309)
Run clang-format on src/crypto/libgcrypt/cryptography_interface_libgcrypt.template.c: src/crypto/libgcrypt/cryptography_interface_libgcrypt.template.c#L1
File src/crypto/libgcrypt/cryptography_interface_libgcrypt.template.c does not conform to Custom style guidelines. (lines 138, 219, 220, 221, 245, 328, 329, 330, 331, 395, 598, 728, 814)