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

Bugfix. Unhandled ArrayStoreException when string template has [] operator inside #513

Merged
merged 4 commits into from
Nov 16, 2020

Conversation

aktsay6
Copy link
Collaborator

@aktsay6 aktsay6 commented Nov 11, 2020

What's done:

  • Fixed bugs

This pull request closes #406

@aktsay6 aktsay6 added the bug Something isn't working label Nov 11, 2020
@codecov
Copy link

codecov bot commented Nov 11, 2020

Codecov Report

Merging #513 (c4a6985) into master (a78c847) will decrease coverage by 0.02%.
The diff coverage is 57.14%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #513      +/-   ##
============================================
- Coverage     81.90%   81.88%   -0.03%     
- Complexity     1633     1635       +2     
============================================
  Files            78       78              
  Lines          4118     4123       +5     
  Branches       1300     1302       +2     
============================================
+ Hits           3373     3376       +3     
  Misses          219      219              
- Partials        526      528       +2     
Flag Coverage Δ Complexity Δ
unittests 81.88% <57.14%> (-0.03%) 0.00 <0.00> (ø)

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

Impacted Files Coverage Δ Complexity Δ
...n/diktat/ruleset/rules/StringTemplateFormatRule.kt 82.05% <57.14%> (-3.25%) 14.00 <0.00> (+2.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 a78c847...c4a6985. Read the comment docs.

@aktsay6 aktsay6 marked this pull request as ready for review November 16, 2020 08:20
Copy link
Member

@orchestr7 orchestr7 left a comment

Choose a reason for hiding this comment

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

lgtm

|| node.treeNext.elementType == CLOSING_QUOTE
} else {
|| node.treeNext.elementType == CLOSING_QUOTE)
} else if(!isArrayAccessExpression) {
Copy link
Member

Choose a reason for hiding this comment

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

you will need to check for more corner cases - this can be not the only problem here

Copy link
Member

@orchestr7 orchestr7 left a comment

Choose a reason for hiding this comment

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

lgtm

@aktsay6 aktsay6 merged commit fe2ad6f into master Nov 16, 2020
@aktsay6 aktsay6 deleted the bugfix/string-template-array-store-exception(#406) branch November 16, 2020 14:14
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.

Unhandled ArrayStoreException when string template has [] operator inside
2 participants