4 Commits

Author SHA1 Message Date
Michał Kopeć
981a540d2d scripts/lint/02-clang-format.sh: print error message on fail
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2023-08-29 12:51:23 +02:00
Tim Crawford
7205f1a49e Add shellcheck lint
Run shellcheck [1] on the bash files.

[1]: https://www.shellcheck.net/

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-01-18 13:52:14 -07:00
Tim Crawford
1aadc68257 scripts: Rewrite lint scripts
Rewrite lint scripts to report what they do and if they pass. In the
case they fail list the files that caused the failure, except for
clang-format, which will be slow to run of every file individually
(should just run `make fmt` anyway). Also add a script to run all the
lints in order with a single command.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-01-18 13:52:14 -07:00
Tim Crawford
8bdcf243ec Add lint to ensure spaces are used for indentation 2021-05-07 12:44:48 -06:00