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

Don't separate fully-qualified as a regular dot qualified expression #1411

Merged
merged 8 commits into from
Jun 29, 2022

Conversation

Arrgentum
Copy link
Member

@Arrgentum Arrgentum commented Jun 28, 2022

Whats added

Add analytic fully qualified - split long dot qualified expression and safe access expression and and their combinations after first call expression

This pull request closes #1403

Actions checklist

  • correct Warning message
  • Added tests on fixers - 5 last test in long dot qualified expression

 * add analytic fully-qualified
 * add test
 * correct warning message

## Issue (#1403)
 * add analytic fully-qualified
 * add test
 * correct warning message
 * run fix mode

## Issue (#1403)
@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #1411 (688dc31) into master (267be2d) will increase coverage by 0.01%.
The diff coverage is 80.00%.

@@             Coverage Diff              @@
##             master    #1411      +/-   ##
============================================
+ Coverage     83.38%   83.39%   +0.01%     
- Complexity     2552     2557       +5     
============================================
  Files           106      106              
  Lines          7570     7575       +5     
  Branches       2086     2087       +1     
============================================
+ Hits           6312     6317       +5     
  Misses          372      372              
  Partials        886      886              
Flag Coverage Δ
unittests 83.39% <80.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
...iktat/ruleset/rules/chapter3/files/NewlinesRule.kt 81.60% <80.00%> (+0.51%) ⬆️
...tlin/org/cqfn/diktat/ruleset/utils/AstNodeUtils.kt 82.75% <0.00%> (-0.29%) ⬇️

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 267be2d...688dc31. Read the comment docs.

@Arrgentum Arrgentum self-assigned this Jun 28, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 28, 2022

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v1)

1 270 tests   1 255 ✔️  9m 18s ⏱️
   157 suites       15 💤
   157 files           0

Results for commit 688dc31.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 28, 2022

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v1)

1 270 tests   1 255 ✔️  9m 32s ⏱️
   157 suites       15 💤
   157 files           0

Results for commit 688dc31.

♻️ This comment has been updated with latest results.

 * add analytic fully-qualified
 * add test
 * correct warning message
 * run fix mode

## Issue (#1403)
Arrgentum added 2 commits June 28, 2022 18:48
 * add analytic fully-qualified
 * add test
 * correct warning message
 * run fix mode

## Issue (#1403)
 * add analytic fully-qualified
 * add test
 * correct warning message
 * run fix mode

## Issue (#1403)
@Arrgentum Arrgentum enabled auto-merge (squash) June 28, 2022 16:06
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.

@Arrgentum please check #1411 (comment) and also please rename this PR to something more meaningful and pay attention to the text of merge commit

@Arrgentum Arrgentum changed the title Added fully-qualified analysis Don't separate fully-qualified as a regular dot qualified expression Jun 29, 2022
@Arrgentum Arrgentum disabled auto-merge June 29, 2022 08:27
@petertrr petertrr added this to the 1.2.1 milestone Jun 29, 2022
* Add logic fully-qualified: not split `dot qualified expression` before first `call expression`
* Add 1 fix test and 5 test examples
* Correct warning message
* run fix mode
@Arrgentum Arrgentum requested a review from nulls June 29, 2022 08:53
@Arrgentum Arrgentum merged commit e9476dc into master Jun 29, 2022
@Arrgentum Arrgentum deleted the bugfix/NotSplitFullyQualified branch June 29, 2022 09:12
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.

Add analysis of fully-qualified expression in NewLines rule
3 participants