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

DataClassesRule shouldn't trigger when no property in constructor #671

Merged
merged 8 commits into from
Dec 29, 2020

Conversation

kentr0w
Copy link
Collaborator

@kentr0w kentr0w commented Dec 28, 2020

@kentr0w kentr0w added the bug Something isn't working label Dec 28, 2020
@codecov
Copy link

codecov bot commented Dec 28, 2020

Codecov Report

Merging #671 (ce02bfc) into master (ac8bcb0) will decrease coverage by 0.11%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #671      +/-   ##
============================================
- Coverage     79.17%   79.05%   -0.12%     
- Complexity     1811     1816       +5     
============================================
  Files            87       87              
  Lines          4724     4732       +8     
  Branches       1521     1525       +4     
============================================
+ Hits           3740     3741       +1     
- Misses          280      285       +5     
- Partials        704      706       +2     
Flag Coverage Δ Complexity Δ
unittests 79.05% <75.00%> (-0.12%) 0.00 <10.00> (ø)

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

Impacted Files Coverage Δ Complexity Δ
...fn/diktat/ruleset/rules/classes/DataClassesRule.kt 70.00% <75.00%> (-10.96%) 30.00 <10.00> (+5.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 ac8bcb0...ce02bfc. Read the comment docs.

### What's done:
Added logic for empty class and class with property
@kentr0w kentr0w merged commit e2df0c8 into master Dec 29, 2020
@kentr0w kentr0w deleted the bugfix/dataClassesRule-no-trigger branch December 29, 2020 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataClassesRule when class has non-properties in the constructor
2 participants