-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix NPE in NewLineRule #792
Conversation
### What's done: * Fixed NPE in NewLineRule for lambda list argument
b5592bd
to
f03adbd
Compare
Codecov Report
@@ Coverage Diff @@
## master #792 +/- ##
============================================
- Coverage 80.92% 80.91% -0.01%
- Complexity 2203 2204 +1
============================================
Files 98 98
Lines 5666 5670 +4
Branches 1753 1756 +3
============================================
+ Hits 4585 4588 +3
Misses 285 285
- Partials 796 797 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add tests and fix null issues :)
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/files/NewlinesRule.kt
Outdated
Show resolved
Hide resolved
### What's done: * Fixed NPE in NewLineRule for lambda list argument
diktat-rules/src/test/resources/test/paragraph3/newlines/ListArgumentLambdaTest.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just fix code style
### What's done: * Fixed NPE in NewLineRule for lambda list argument
c98ed21
to
4fdb427
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What's done:
closes NPE: Internal error has occurred in newlines #789