Run a CI job linting/parsing the CMake files in cmake/*#222
Draft
j-rivero wants to merge 14 commits intoign-cmake2from
Draft
Run a CI job linting/parsing the CMake files in cmake/*#222j-rivero wants to merge 14 commits intoign-cmake2from
j-rivero wants to merge 14 commits intoign-cmake2from
Conversation
added 10 commits
April 1, 2022 22:09
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
mjcarroll
reviewed
Apr 20, 2023
Contributor
mjcarroll
left a comment
There was a problem hiding this comment.
This looks great. What are next steps to getting in landed? Addressing the remaining outstanding issues?
Contributor
Author
I think so yes. |
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎉 New feature
Summary
There is no current check on very broken CMake syntax in our cmake modules (see #221 as an example). Looking for some tools I found cmakelang that provides a parser and linter that was able to find parsing problems on the error present in #221.
The tool is not perfect and sometimes just crash on the presence of errors but serves well as smoke testing. It also brings all kind of conventions that is some nice to have and define in the ign-cmake project.
The PR consists in two parts:
Still a Draft until I finish with other PRs affecting OGRE2. We need to include documentation about what conventions we want to follow.
Test it
The github action should take care of test the whole setup.
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-bymessages.