-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add error-prone.picnic.tech/bugpatterns/NonStaticImport
#5191
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 error-prone.picnic.tech/bugpatterns/NonStaticImport
#5191
Conversation
...-platform-launcher/src/main/java/org/junit/platform/launcher/tagexpression/ShuntingYard.java
Show resolved
Hide resolved
...main/java/org/junit/platform/commons/support/conversion/FallbackStringToObjectConverter.java
Show resolved
Hide resolved
NonStaticImportpicnic.tech/bugpatterns/NonStaticImport
picnic.tech/bugpatterns/NonStaticImporterror-prone.picnic.tech/bugpatterns/NonStaticImport
error-prone.picnic.tech/bugpatterns/NonStaticImportNonStaticImport
NonStaticImporterror-prone.picnic.tech/bugpatterns/NonStaticImport
838d0fe to
6b02a14
Compare
6b02a14 to
09fc8a9
Compare
- https://error-prone.picnic.tech/bugpatterns/StaticImport Signed-off-by: Vincent Potucek <[email protected]>
09fc8a9 to
27418df
Compare
|
kindly asking, if this is any good? |
✅ All tests passed ✅🏷️ Commit: 27418df Learn more about TestLens at testlens.app. |
rickie
left a comment
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.
Apart from the changes in the gradle file, they changes LGTM!
gradle/plugins/common/src/main/kotlin/junitbuild.java-errorprone-conventions.gradle.kts
Show resolved
Hide resolved
|
We explicitly decided against using |
|
yes this recipe is quite questionable therefore disabled in gradle as well. But the counterpart is quite impressive. Is this something to reconsider, please? |
|
To me, deciding whether to use a static import is a stylistic choice with pros and cons that can be weighed as part of PR reviews. I'd rather focus on ErrorProne rules that can help prevent actual bugs. |
|
yes but having easy code access helps to read the code better to then prevent or quicker fix some issues or create new (features or course). |
|
of course i dont demand any style but for me its overwelaming to read and avoid all the nonsens overhead i dont need and want to conider when dealing with the bare business logic. |
Add
error-prone.picnic.tech/bugpatterns/NonStaticImportrelated to:
UnnecessarilyFullyQualified#5189disablewarning leftovers to finalize convention principle #5190StaticImport,NonStaticImportdiffplug/spotless#2743org.junit.openrewrite.SanityCheck#5193I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations