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

Rule 6.1.5: Explicit supertype qualification should not be used if there is not clash between called methods #458

Merged
merged 15 commits into from
Nov 16, 2020

Conversation

kentr0w
Copy link
Collaborator

@kentr0w kentr0w commented Oct 26, 2020

What's done:

Implemented rule 6.1.5

Actions checklist

### What's done:
   Implemented rule 6.1.5
@kentr0w kentr0w added the enhancement New feature or request label Oct 26, 2020
### What's done:
   Added empty line
### What's done:
   Added empty line
@codecov
Copy link

codecov bot commented Oct 26, 2020

Codecov Report

Merging #458 (80fd3f3) into master (d296add) will decrease coverage by 0.08%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #458      +/-   ##
============================================
- Coverage     81.90%   81.81%   -0.09%     
- Complexity     1576     1596      +20     
============================================
  Files            75       76       +1     
  Lines          3974     4026      +52     
  Branches       1259     1277      +18     
============================================
+ Hits           3255     3294      +39     
- Misses          212      214       +2     
- Partials        507      518      +11     
Flag Coverage Δ Complexity Δ
unittests 81.81% <75.00%> (-0.09%) 0.00 <20.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...at-rules/src/main/kotlin/generated/WarningNames.kt 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../org/cqfn/diktat/ruleset/rules/UselessSupertype.kt 74.00% <74.00%> (ø) 20.00 <20.00> (?)
...tlin/org/cqfn/diktat/ruleset/constants/Warnings.kt 98.29% <100.00%> (+0.01%) 10.00 <0.00> (ø)
...cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt 97.18% <100.00%> (+0.04%) 8.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d296add...80fd3f3. Read the comment docs.

### What's done:
   added suppress
@petertrr petertrr changed the title rule 6.1.5 Rule 6.1.5: Explicit supertype qualification should not be used if there is not clash between called methods Oct 27, 2020
Copy link
Member

@petertrr petertrr left a comment

Choose a reason for hiding this comment

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

You are checking not quite what is written in the rule. If it has been discussed, please update rule text.

### What's done:
   Changed rule's logic.
### What's done:
   Changed rule's logic.
…pertype-qualification

# Conflicts:
#	diktat-analysis.yml
#	diktat-rules/src/main/kotlin/generated/WarningNames.kt
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt
#	diktat-rules/src/main/resources/diktat-analysis-huawei.yml
#	diktat-rules/src/main/resources/diktat-analysis.yml
#	info/available-rules.md
### What's done:
    Fixed after review
### What's done:
    Fixed after review
### What's done:
    Fixed after review
Copy link
Member

@petertrr petertrr left a comment

Choose a reason for hiding this comment

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

Looks more or less fine, some more suggestions about documentation and style.

@@ -62,6 +62,8 @@ class DiktatRuleSetProvider(private val diktatConfigFile: String = "diktat-analy
::PackageNaming,
::IdentifierNaming,
// code structure
::UselessSupertype,
::LocalVariablesRule,
Copy link
Member

Choose a reason for hiding this comment

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

So, github shows it's still there

diktat-analysis.yml Outdated Show resolved Hide resolved
### What's done:
  Fixed after review
…pertype-qualification

# Conflicts:
#	diktat-analysis.yml
#	diktat-rules/src/main/kotlin/generated/WarningNames.kt
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt
#	diktat-rules/src/main/resources/diktat-analysis-huawei.yml
#	diktat-rules/src/main/resources/diktat-analysis.yml
@@ -62,6 +62,8 @@ class DiktatRuleSetProvider(private val diktatConfigFile: String = "diktat-analy
::PackageNaming,
::IdentifierNaming,
// code structure
::UselessSupertype,
::LocalVariablesRule,
Copy link
Member

Choose a reason for hiding this comment

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

Please move LocalVariablesRule back if it's unintended move, the rest seems fine.

### What's done:
   Fixed after review
…pertype-qualification

# Conflicts:
#	diktat-analysis.yml
#	diktat-rules/src/main/kotlin/generated/WarningNames.kt
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt
#	diktat-rules/src/main/resources/diktat-analysis-huawei.yml
#	diktat-rules/src/main/resources/diktat-analysis.yml
@kentr0w kentr0w merged commit 1e019c0 into master Nov 16, 2020
@petertrr petertrr deleted the feature/explicit-supertype-qualification branch November 18, 2020 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule 6.1.5: Explicit supertype qualification should not be used if there is not clash between called methods
2 participants