-
Notifications
You must be signed in to change notification settings - Fork 68
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
Adding ament_lint_common #120
Conversation
So it seems like we have two problems still
|
I guess I don't understand the problem here; can't we just add the
This is almost certainly the whitespace and other formatting concerns. Our copyright linter is very dumb, and if the copyright statement doesn't exactly match what it expects, it fails. I have a branch somewhere where I update the copyrights in |
All right, beff090 fixes the copyright problems. But there is another problem here, and that is that Where that leaves us is that we have to pull in the linters by hand, so we can properly tell uncrustify that this is a C++ package. I've done that in f921062, but that causes a whole host of new issues. This PR is getting out of hand, and because it is so large, it is going to be harder later to figure out whether it caused regressions. My suggestion here is that we step back, and actually add in the linters one-by-one in separate PRs. For each linter we add in, we only fix the issues corresponding to that linter. So, for example, we could open up one PR just enabling the copyright linter, and the fixes for that. And another for uncrustify. And another for cpplint. And one for lint_cmake. And finally, one that deprecates the @CursedRock17 What do you think? |
Yeah this would be the latter, I've tried plugging different things into constructors which have the
@clalancette This works well for me, it'll be a lot easier to break down these issues. I can submit a PR for the copyright if that's the direction we want to head and work from there, is there a certain order we need to progress in, or can I just go in the order that you listed in that last comment? Unless you already have a branch for the copyright you want me to work off of, I can create brand new PRs for these and just link them back to this PR and the main issue. |
I don't think we need to go in any particular order, so whatever you think is best. There is no separate branch with copyright, so I'll suggest you split those changes out of here and submit them as one of those PRs. |
I think we should cleanup this PR. There are still one things that I would like to change:
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies() And fix the pep257 and flake8 linters issues. |
Signed-off-by: CursedRock17 <mtglucas1@gmail.com> Beginning tests Signed-off-by: CursedRock17 <mtglucas1@gmail.com> Fixing linting erros Signed-off-by: CursedRock17 <mtglucas1@gmail.com> CMakeLists adjustment Signed-off-by: CursedRock17 <mtglucas1@gmail.com> Resolving flake8 Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
f921062
to
72a56fb
Compare
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
@@ -33,6 +33,8 @@ | |||
<test_depend>ament_cmake_copyright</test_depend> | |||
<test_depend>ament_cmake_uncrustify</test_depend> | |||
<test_depend>ament_cmake_lint_cmake</test_depend> | |||
<test_depend>ament_lint_auto</test_depend> |
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.
remove ament_cmake_lint_cmake
, ament_cmake_cpplint,
ament_cmake_copyright,
ament_cmake_uncrustify`
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.
As per the second section here: https://github.com/ament/ament_lint/blob/rolling/ament_lint_auto/doc/index.rst
Is it not correct to keep them in the test_dependencies or am I reading the documentation wrong?
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.
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.
Makes sense now, I'll have it updated in about 4 hours.
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
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.
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.
Some more linters issues https://ci.ros2.org/job/ci_linux/21546/
unrelated warnning on windows |
That warning is not unrelated; it is directly related to what was merged here. The reason we don't see it on Linux is because cppcheck is disabled there, because it is too slow. What we'll need here is a follow-up PR to force cppcheck to consider this package C++ instead of C. @ahcorde can you look into that? |
Sure, #138 |
This pull request is meant to fix #29 because
ament_lint_common
is currently not in thepackage.xml
but it should be.