🧹 tui: refactor a bit #96
checks.yml
on: push
cpp-linter
54s
Check C++ style
18s
Annotations
10 errors, 2 warnings, and 1 notice
/src/tui.cpp:25:1 [google-build-using-namespace:
src/tui.cpp#L25
do not use namespace using-directives; use using-declarations instead
|
/src/tui.cpp:54:6 [modernize-use-trailing-return-type:
src/tui.cpp#L54
use a trailing return type for this function
|
/src/tui.cpp:92:6 [bugprone-exception-escape:
src/tui.cpp#L92
an exception may be thrown in function 'btrfs_subvolumes' which should not throw exceptions
|
/src/tui.cpp:120:6 [bugprone-exception-escape:
src/tui.cpp#L120
an exception may be thrown in function 'generate_fstab' which should not throw exceptions
|
/src/tui.cpp:178:31 [cppcoreguidelines-avoid-magic-numbers:
src/tui.cpp#L178
95 is a magic number; consider replacing it with a named constant
|
/src/tui.cpp:185:69 [cppcoreguidelines-avoid-magic-numbers:
src/tui.cpp#L185
10 is a magic number; consider replacing it with a named constant
|
/src/tui.cpp:185:101 [cppcoreguidelines-avoid-magic-numbers:
src/tui.cpp#L185
40 is a magic number; consider replacing it with a named constant
|
/src/tui.cpp:201:27 [cppcoreguidelines-avoid-magic-numbers:
src/tui.cpp#L201
86 is a magic number; consider replacing it with a named constant
|
/src/tui.cpp:212:68 [cppcoreguidelines-avoid-magic-numbers:
src/tui.cpp#L212
10 is a magic number; consider replacing it with a named constant
|
/src/tui.cpp:212:100 [cppcoreguidelines-avoid-magic-numbers:
src/tui.cpp#L212
40 is a magic number; consider replacing it with a named constant
|
Check C++ style
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
cpp-linter
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run clang-format on src/tui.cpp:
src/tui.cpp#L1
File src/tui.cpp does not conform to Custom style guidelines. (lines 1011, 1012)
|