Kugel Fuhr
c7096ab6d7
Fix an error that was introduced by me in a4a24280f2:
...
Using a pipe causes a subshell to be generated so the "exit" statements will
just leave the subshell. As a consequence, the sortedxxx.sh scripts produced
output but no error exit code. Which in turn caused an error in #2778 to slip
through undetected.
2025-07-13 17:56:31 +02:00
Kugel Fuhr
a4a24280f2
Do only check .c and .h files.
2025-06-30 20:50:30 +02:00
Kugel Fuhr
399f5aaab7
Check that there are no library modules that use the old "sp" symbol instead
...
of "c_sp".
2025-06-26 08:23:51 +02:00
Kugel Fuhr
fa81f14cbf
Add an explicit "exit 0" to the shell scripts. This worked more or less by
...
coincidence before since shell scripts return the exit code of the last
command run if there is no explicit exit statement.
2025-06-25 20:34:41 +02:00
Kugel Fuhr
1feeee9ce0
Do only check .c and .h files.
2025-06-25 09:37:58 +02:00
mrdudz
4daba00d47
don't make script choke with more than 9 tables
2025-06-18 00:28:53 +02:00
mrdudz
d1def100dd
use sort -c
2025-06-09 22:28:19 +02:00
mrdudz
aaa1058d32
use explicit markers (comments) for the bsearch table checking, simplifies the scripts and makes them more robust too :)
2025-06-09 21:48:20 +02:00
mrdudz
d368f3d0ea
simple script(s) to check if bsearch tables are sorted correctly
2025-06-09 18:26:41 +02:00
Kugel Fuhr
36a810cdb2
Make lastline.sh ignore empty files. Fixes #2514 .
2024-09-12 09:10:37 +02:00
mrdudz
0b077f561f
exclude test directory from some style checks - it makes no sense to enforce these things in the test bench, we need to be able to test all kinds of spaces and tabs :)
2023-12-10 22:43:47 +01:00
mrdudz
699ba1fbd6
when running on cmd.exe only print a message, the style tests
...
require bash
2022-11-05 16:42:01 +01:00
mrdudz
79fd078ae3
add check for line endings containing CR.
2022-11-03 18:27:10 +01:00
mrdudz
d30fc65dd5
add check for +x flag
2022-05-17 15:28:51 +02:00
mrdudz
0f291aee86
rename the actual checkstyle target too :)
2022-05-17 14:39:35 +02:00
Greg King
6ea1f8ee85
Made the style-check scripts send their file lists to stderr.
...
A complete list will be shown before make shows its error message. There will be less confusion about which lines are in the list.
2022-04-18 19:47:02 -04:00
Greg King
2cdccd5e8a
Oops, forgot to check macros.
2022-04-17 19:10:29 -04:00
Greg King
5839298203
Remove work directory paths _before_ checking for style errors.
2022-04-17 16:10:28 -04:00
Greg King
a4e1cf9a0a
Moved a constant expression out of a loop.
2022-04-17 15:08:42 -04:00
Greg King
86ca11222a
Fixed and tightenned the find commands' expressions.
2022-04-17 15:04:36 -04:00
Greg King
b2319f3578
Made all of the Makefile's rules be phony.
2022-04-17 15:04:16 -04:00
mrdudz
e9fec5e3fe
define CHECK_PATH rather than leaving it open
2022-04-17 17:12:52 +02:00
mrdudz
4e3bba0c3f
also check spaces at end of lines
2022-04-17 16:08:21 +02:00
mrdudz
eb04ce8190
add more style checks
2022-04-16 20:00:10 +02:00
mrdudz
4b492ed4e5
added TAB checker script, to be added to the PR checker action
2022-04-16 18:18:51 +02:00