Skip to content
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

fix: sonarqube remove commented code #2248

Merged
merged 10 commits into from
Jul 19, 2018
Merged

fix: sonarqube remove commented code #2248

merged 10 commits into from
Jul 19, 2018

Conversation

zielint0
Copy link
Contributor

SonarQube rationale

Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
MISRA C:2004, 2.4 - Sections of code should not be "commented out".
MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"

Commented code is always availabe in repository.
There is no need to keep it (waiting for better times).

@@ -62,10 +62,6 @@ public static TobeMatched create(ImmutableMap parameters, ContainerKind containe
}

private TobeMatched(ImmutableMap parameters, Object target) {
//It is correct to put whole container as single value in cases when ParameterNode matches agains whole attribute value
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this comment please. I am OK to remove next commented code

@pvojtechovsky
Copy link
Collaborator

This PR is OK for me. Just with exception of one comment mentioned above

@pvojtechovsky pvojtechovsky merged commit 79980e9 into INRIA:master Jul 19, 2018
@monperrus monperrus mentioned this pull request Sep 20, 2018
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants