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

sort checks #1487

Merged
merged 1 commit into from
Jun 13, 2018
Merged

sort checks #1487

merged 1 commit into from
Jun 13, 2018

Conversation

guwirth
Copy link
Collaborator

@guwirth guwirth commented Jun 6, 2018

First step for #1410. Please have a look to this. Is a first proposal how to sort the checks.

For my understanding checks below are static code analysis and can be removed:

  • BooleanEqualityComparisonCheck.java
  • CollapsibleIfCandidateCheck.java
  • CommentedCodeCheck.java
  • HardcodedAccountCheck.java
  • HardcodedIpCheck.java
  • MagicNumberCheck.java
  • MissingCurlyBracesCheck.java
  • NestedStatementsCheck.java
  • ReservedNamesCheck.java
  • SafetyTagCheck.java
  • StringLiteralDuplicatedCheck.java
  • SwitchLastCaseIsDefaultCheck.java
  • UnnamedNamespaceInHeaderCheck.java
  • UseCorrectIncludeCheck.java
  • UseCorrectTypeCheck.java
  • UselessParenthesesCheck.java
  • UsingNamespaceInHeaderCheck.java

Some of the regex checks are duplicates:

  • CommentRegularExpressionCheck.java & CommentContainsPatternChecker.java
  • FileRegularExpressionCheck.java & FileHeaderCheck.java
  • CommentRegularExpressionCheck.java
    • FixmeTagPresenceCheck.java
    • NoSonarCheck.java
    • TodoTagPresenceCheck.java

How should we continue?


This change is Reviewable

- first step for #1410
@guwirth guwirth added this to the 1.1 milestone Jun 6, 2018
@guwirth guwirth self-assigned this Jun 6, 2018
@Bertk
Copy link
Contributor

Bertk commented Jun 9, 2018

@guwirth This cleanup will remove some checks which are useful and I do not know a replacement e.g. for „SafetyTagCheck.java". The other tools do not provide all of these checkers but I am not aware of the latest version of some commercial tools.

@guwirth
Copy link
Collaborator Author

guwirth commented Jun 10, 2018

... and I do not know a replacement e.g. for „SafetyTagCheck.java"

@Bertk SafetyTagCheck looks like a very company specific check and not a general check? Is the plugin really the right place for it or shouldn’t it be better moved to a custom check?

@guwirth guwirth changed the title clean-up checks sort checks Jun 12, 2018
@guwirth
Copy link
Collaborator Author

guwirth commented Jun 12, 2018

@ALL I will add this PR to sort the checks in subfolders.
Let's solve the "static code analysis" problem in another PR.

@guwirth guwirth merged commit f1e7706 into SonarOpenCommunity:master Jun 13, 2018
@guwirth guwirth deleted the clean-up-checks branch June 25, 2018 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants