forked from speeduino/speeduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: parameterize the MISRA checking script (speeduino#507)
* refactor: parameterize the MISRA checking script The script contained hardcoded paths, which made it difficult to use as part of the development workflow. * ci!: use script relative path to pick source folder * ci!: default output folder within source tree * refactor: have cppcheck run the misra script * refactor: use "rm -f" - remove existence check * refactor: encapsulate into functions * ci!: merge git MISRA logic into check_misra.sh * ci!: count true errors, not style violations * ci: use common MISRA check script Co-authored-by: adbancroft <[email protected]>
- Loading branch information
1 parent
d77b305
commit 6905296
Showing
5 changed files
with
74 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ speeduino/board_samd21* | |
reference/doxygen | ||
speeduino.ino.cpp | ||
test/output_export.cpp | ||
misra/.results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"script": "misra.py","args": ["--rule-texts=./misra_2012_text.txt"]} |