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
Enable checks from Error Prone Support #14137
Comments
Here are a few of my comments on some of the checks:
So this one is probably not interesting.
Just to clarify, in this check we statically import these members. It is a list of carefully reviewed members that are statically imported as doing so doesn't result in a loss of context. So mostly to remove "duplicate words". |
@Vyom-Yadav, FYI |
Please activate: DirectReturn we can try in separate PR, to see a scope of violations, I remember in some cases it was benefitials to use not direct return. please activate: FormatStringConcatenation we can try in separate PR, to see a scope of violations, I remember in some cases it was benefitials to use concatenation as compact syntax. please activate: ImmutablesSortedSetComparator we can try in separate PR. I have concern on extra dependency, we are library, we care about less transitive dependencies. please activate: lets suppress: please activate: lets suppress: lets try: |
@rickie, please send each activation in separate PR, AND isf there is bunch of udpates required, it is completely OK to split fixes( before activation) in separate PRs. |
I agree with prioritization and selection of bug patterns at #14137 (comment), @rickie please feel free to start sending PRs :) |
I agree with the discussion above. @romani This can be a good third/fourth issue. Please convert the issue description to a checklist, I too can send a few PRs to have some examples. |
This is not good for junior contributors as it might be controversial and tricky. |
Bumps [com.google.truth:truth](https://github.com/google/truth) from 1.2.0 to 1.3.0. - [Release notes](https://github.com/google/truth/releases) - [Commits](google/truth@v1.2.0...v1.3.0) --- updated-dependencies: - dependency-name: com.google.truth:truth dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Issue checkstyle#6207: Enale XpathRegressionTest for IlegalTokenText dependency: bump org.pitest:pitest-maven from 1.15.3 to 1.15.4 Bumps [org.pitest:pitest-maven](https://github.com/hcoles/pitest) from 1.15.3 to 1.15.4. - [Release notes](https://github.com/hcoles/pitest/releases) - [Commits](hcoles/pitest@1.15.3...1.15.4) --- updated-dependencies: - dependency-name: org.pitest:pitest-maven dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Issue checkstyle#13213: removed //ok metrics,design Issue checkstyle#13213: Removed //ok from leftout files Issue checkstyle#13999: Resolve pitest suppression for throwAst.getParent() of JavadocMethod Issue checkstyle#13213: Removed //ok noncompilable/naming dependency: bump org.pitest:pitest-maven from 1.15.4 to 1.15.6 Bumps [org.pitest:pitest-maven](https://github.com/hcoles/pitest) from 1.15.4 to 1.15.6. - [Release notes](https://github.com/hcoles/pitest/releases) - [Commits](hcoles/pitest@1.15.4...1.15.6) --- updated-dependencies: - dependency-name: org.pitest:pitest-maven dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Issue checkstyle#11163: Enforced file size inputs Issue checkstyle#6207: Add XPath IT Regression test for CatchParameterName Issue checkstyle#11163: Enforced filesize commentsindentation Issue checkstyle#13213: removed //ok noncompilable/sizes Issue checkstyle#13213: Removed //ok from methodcount Issue checkstyle#11163: enforced filesize MissingJavadocTypeTags Issue checkstyle#6207: Enable XpathRegressiontest for EqualsHashCode Issue checkstyle#13213: Removed //ok from nolinewrap Issue checkstyle#13213: Removed //ok from declarationorder Issue checkstyle#14137: Enable `MockitoStubbing` check Issue checkstyle#13213: removed //ok noncompilable/whitespace Issue checkstyle#13345: Enable StaticVariableNameCheckExamplesTest Issue checkstyle#14137: Enable `TimeZoneUsage` check Issue checkstyle#11163: Enforced filesize TypeNoJavadoc1 doc: release notes for 10.13.0 [maven-release-plugin] prepare release checkstyle-10.13.0 [maven-release-plugin] prepare for next development iteration doc: fix releasenotes.xml line length violation Issue# 13999: RemoveConditionalMutator_EQUAL_IF on if (child.getType() == TokenTypes.PARAMETER_DEF)
In PR #14136 I added Error Prone Support to Checkstyle. As @romani suggested in #14129, I'd like to create this issue to discuss which checks from Error Prone Support are useful for the Checkstyle project to enable.
The full list of checks can be found here: https://error-prone.picnic.tech/.
I omitted some of the checks from the list as they are definitely not applicable to this project (for example they are Spring or Reactor focused).
Let me know if this is the right approach, or if we should change something.
I'm curious to hear your thoughts on the checks!
The text was updated successfully, but these errors were encountered: