-
-
Notifications
You must be signed in to change notification settings - Fork 779
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
Add UseIfEmptyOrIfBlank rule #3186
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3186 +/- ##
============================================
+ Coverage 79.55% 79.83% +0.27%
+ Complexity 2631 2630 -1
============================================
Files 440 440
Lines 7964 8010 +46
Branches 1521 1538 +17
============================================
+ Hits 6336 6395 +59
+ Misses 818 791 -27
- Partials 810 824 +14
Continue to review full report at Codecov.
|
dc41576
to
33615b4
Compare
f0a1749
to
23b0e3c
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.
Nice!
...les-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlankSpec.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.
Great addition 🚀
...t-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlank.kt
Outdated
Show resolved
Hide resolved
...les-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlankSpec.kt
Outdated
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.
Great PR! Thank you very much! 🙂
Please allow me to have a few questions. Please see my attached comments.
...t-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlank.kt
Outdated
Show resolved
Hide resolved
...t-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlank.kt
Outdated
Show resolved
Hide resolved
...les-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlankSpec.kt
Outdated
Show resolved
Hide resolved
...t-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlank.kt
Outdated
Show resolved
Hide resolved
...t-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseIfEmptyOrIfBlank.kt
Show resolved
Hide resolved
The compile-test-snippets pre-merge check fails. This weird error can be mitigated by using different class or package names for the test-snippets. |
aef9ea9
to
52b48e7
Compare
Fixed in 9aa30b5. |
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.
Thanks
* Add UseIfEmptyOrIfBlank rule * Fix typo * Fix description * Fix code style * Add tests * Report even if condition has negate operator * Fix SpacingBetweenPackageAndImportsSpec
* Add UseIfEmptyOrIfBlank rule * Fix typo * Fix description * Fix code style * Add tests * Report even if condition has negate operator * Fix SpacingBetweenPackageAndImportsSpec
* Add UseIfEmptyOrIfBlank rule * Fix typo * Fix description * Fix code style * Add tests * Report even if condition has negate operator * Fix SpacingBetweenPackageAndImportsSpec
* Add UseIfEmptyOrIfBlank rule * Fix typo * Fix description * Fix code style * Add tests * Report even if condition has negate operator * Fix SpacingBetweenPackageAndImportsSpec
Fixes #2840