aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* check_code_style_conversion.py: also check files that are not the revision rangeDenis 'GNUtoo' Carikli2020-06-251-7/+10
| | | | | | | | | | | | | | | | | | | | This checks the files that aren't modified by any of the commits that are in the revision range. This is not completely failsafe as checkpatch.pl tend to check better what's touched by a patch, in the case of modifications that do not touch C code: - Checking for scripts/spelling.txt with checkpatch.pl -f doesn't raise any errors or warnings. - Checking the patch that adds scripts/spelling.txt raise a lot of warnings. However checkpatch.pl seem to find issues in C code regardless of whether the code is checked as part of individual files or as part of a patch. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* check_code_style_conversion.py: make sure we don't miss any filesDenis 'GNUtoo' Carikli2020-06-251-6/+28
| | | | | | | | | This adds an option to check if all the repository files were "converted" by checking if they all have been modified by a patch in the git revision range given. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Add a tool to help check the conversion to Linux code styleDenis 'GNUtoo' Carikli2020-06-251-0/+83
| | | | | | | | | | | | | | | | | | | When sending a patch for Linux, and running checkpatch.pl, you typically only need to check the patch with it. However since we're doing an initial conversion to the Linux code style, we also need to check all the content of the files as well, as otherwise the parts that are not being touched by the patches won't be checked at all. We also need to get it right, as otherwise running checkpatch.pl on subsequent patches could trigger some errors that would not come from the patches being checked, but that would instead come from previous code style errors, that were left unfixed. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Import checkpatch.pl from Linux v5.6 and configure it.Denis 'GNUtoo' Carikli2020-06-253-0/+8352
This will be used to check if the patches match Linux code style. The configuration is needed because otherwise the this tool has defaults parameters which are made for Linux. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>