Matthias Grob
2716ce7a56
pre-commit hook: clear output with error, file name, diff, instructions
3 years ago
Matthias Grob
4454fe9770
pre-commit hook: don't unstage the entire file containing a style issue
3 years ago
Lorenz Meier
2e7221cd22
Style check commit hook: Ensure that formatted files need to be re-added.
5 years ago
Matthias Grob
2c56ceec93
astyle: switch condition to empty string check
...
Thanks to @bkueang 's review comment I switched to an explicit check for
an empty sting instead of a condition that could be theoretically true
in other cases and is less readable.
Type "man test" on your terminal to read up what -n stands for.
7 years ago
Matthias Grob
72db7d3396
astyle: fix display language dependency
...
The shell script which checks the style relies on greping for the
keyword "Formatted" in the output of astyle. But the program has
localization support and will output in other languages e.g. german.
This leads to all style checks always succeeding. I only tested this
on Windows in Cygwin but I can imagine the problem also exists in
non-english Ubuntu installations.
Solution is the parameter --formatted of astyle which only produces
any output if there was something to fix. This allows for a display
language independent condition for an empty string inside the shell
script.
7 years ago
Daniel Agar
9f15c572a3
astyle scripting move to Tools/astyle
8 years ago
Andreas Antener
cbbf5e2e7c
filtering files for code check seperately to enable fast use of git pre-commit hook to check code style
...
ask user to install pre-commit hook when code style is checked
9 years ago
Daniel Agar
968a3d499b
add make format (check_code_style_all.sh --fix)
9 years ago
Daniel Agar
a2b1269b27
check_code_style don't paginate output ( #4952 )
...
- fixes #4943
9 years ago
Daniel Agar
b65291579f
show bad formatting diff
9 years ago
Daniel Agar
05b7dd0046
check_code_style don't create tmp files
9 years ago
Daniel Agar
875dbb92e5
check code style parallel
9 years ago
James Goppert
afcc5b4695
Moved control library.
9 years ago
James Goppert
d02abf2cc0
Removed CMSIS.
9 years ago
Lorenz Meier
cb2c8a1390
Fix list of files to check for code style
9 years ago
Lorenz Meier
7fcf2d9733
Add FW attitude controller to code check regime
9 years ago
jgoppert
0106be3e89
Added local position estimator.
9 years ago
Lorenz Meier
3ac5b3b84e
Controllib: Enforce code style
9 years ago
Lorenz Meier
16b6b3caa2
Enable enforcement
9 years ago
Lorenz Meier
59ee7b23ee
Enforce style check on platforms and drivers
9 years ago
Daniel Agar
5865dc6434
cmake add libuavcan as subdirectory
...
-move uavcan submodule to src/modules/uavcan/libuavcan
-adding libuavcan as a subdirectory simplifies inheriting all compile
flags and include paths
9 years ago
Lorenz Meier
0b4f88a490
Enforce code style for more modules
10 years ago
Lorenz Meier
28bbbd1563
Enforce code style for src/include
10 years ago
Lorenz Meier
e809571841
Enable code style enforcement for more modules
10 years ago
Lorenz Meier
aa88888c6a
Enabled code style enforcement for passing modules
10 years ago
Daniel Agar
0145f95e7d
check_code_style only enforce src/systemcmds and src/examples
10 years ago
Daniel Agar
3b0390d432
cleanup 'make check_format and exclude directories not ready for formatting
...
-uORB, sdlog2, vtol_att_control, ekf_att_pos_estimator
10 years ago
Daniel Agar
5cc1a5dfda
check_code_style exclude eigen
10 years ago
Daniel Agar
0eaf41a048
check_code_style.sh properly ignore src/modules/attitude_estimator_ekf/codegen/*
10 years ago
Daniel Agar
265147ce7f
make check_format ignore src/modules/attitude_estimator_ekf/codegen
10 years ago
Daniel Agar
8de2b8af14
check_code_style.sh ignore mathlib/CMSIS
10 years ago
Daniel Agar
b5a2c8708c
check_code_style.sh ignore unittests/build directory
10 years ago
Daniel Agar
b1dcb10f25
add make check_format to check astyle code formatting
10 years ago