-
Notifications
You must be signed in to change notification settings - Fork 357
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
Modernize the codebase - remove unused imports #2490
Modernize the codebase - remove unused imports #2490
Conversation
Can someone support me with the failing checks? Somehow no errors got reported and all checks pass, but still the pipeline exits with an error code of 1. |
The problem are the compiler warnings:
Known warnings that are to be ignored are defined here nest-simulator/build_support/parse_build_log.py Lines 372 to 376 in e1c80d0
with explicit line numbers. Since you removed one include line from |
…nest-simulator into refactoring-unused-imports
@JanVogelsang: Can you please fix the conflict? Thanks! |
Well, one of the checks failed because of an unstable connection, as it seems. Is there any way for me to rerun the checks? The tests pass on my branch, so they will also pass here. |
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.
Just one little fix, see inline.
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.
Have these changes been suggested by a tool? If so, could this be made into a static code check that runs on the CI to reject commits that are adding unused include
s? I'd be willing to wait for this PR until such a test is added.
Good point! Obviously, it needs to be a free open source tool. |
I didn't use an open-source tool for this task, however I found one on GitHub, that seems to do the same thing: include what you use |
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.
@heplesser: Does your approval mean that we skip the addition of the static test for now? @JanVogelsang: can you please create an issue to remind us of the addition of a such a test?
I'm approving now, as I'm fine with the changes in this PR.
@jougs Yes, I think it is better to get these changes in place and add the automated check later through a separate issue. I will merge now. |
This PR removes all unused imports in C/C++ files.