-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lint as the first class, separate target to CMake #952
Conversation
CI MESSAGE: [773772]: BUILD STARTED |
CI MESSAGE: [773772]: BUILD FAILED |
cmake/lint.cmake
Outdated
add_custom_target(${LINT_FILENAME} | ||
DEPENDS ${LINT_STAMP_PATH}) | ||
add_dependencies(lint ${LINT_FILENAME}) | ||
endforeach(LINT_FILE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could wrap this in function that takes the list of files, root and additional arguments to lint (linelenght).
And just call it twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refactor the common code.
I also wonder how much time do we save when we do not run the whole lint (probably in parallel), vs checking all the dependencies.
CI MESSAGE: [773913]: BUILD STARTED |
CI MESSAGE: [773913]: BUILD FAILED |
- adds separate build step with lint - removes lint test Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
CI MESSAGE: [774213]: BUILD STARTED |
CI MESSAGE: [774213]: BUILD FAILED |
CI MESSAGE: [774701]: BUILD STARTED |
CI MESSAGE: [774701]: BUILD FAILED |
CI MESSAGE: [774701]: BUILD PASSED |
- adds separate build step with lint - removes lint test Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com