Comments (3)
@pnatashap can you try to help?
from qulice.
@yegor256 thanks for the report, but here some unclear moments:
- The bug report title is not descriptive enough. It only mentions "diamond operator check gives false positive" but doesn't specify where or in what context. A more descriptive title would be "False positive on diamond operator check in MapOf class".
- The report lacks essential details such as the software version, the operating system, and the development environment. Including these details can help to reproduce the bug and understand if it's a localized issue or a more general one.
- The report is missing steps to reproduce the bug. Even though the code snippet is provided, it would be helpful to outline the steps leading to the issue.
- The bug report doesn't mention the expected result and the actual result. The author should clarify what they expected to happen and what actually happened.
- The report does not include any error messages or logs. These can provide valuable context and clues about what is causing the bug.
- The report does not include any screenshots or screen recordings, which can be helpful to visualize the problem.
- The report doesn't mention if this bug is consistent or if it happens intermittently. This information can help to understand the severity and the impact of the bug.
- The author should avoid using phrases like "Can we do something about this?" and instead use a more formal language, such as "Suggesting to review the DiamondOperatorCheck for potential improvements".
Please fix the bug report in order it to get resolved faster.
Analyzed with gpt-4
from qulice.
@yegor256 looks like this issue is solved in PMD 7 (they move rule to java code from XSL) https://github.com/pmd/pmd/blob/master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/codestyle/UseDiamondOperatorRule.java
not sure that it is enough functionality in version 6 to just copy it, they have really change a lot. Will check migration guide.
from qulice.
Related Issues (20)
- IllegalArgumentException leads to execution failure HOT 7
- Java 17 record type not supported HOT 6
- JUnit test class must be final HOT 1
- method parameter must not hide field of the class HOT 1
- this qualifier must be required even inside lambda HOT 1
- How to Choose Google checks instead of Sun Checks (Checkstyle)? HOT 1
- BranchContains.java:44: Avoid branchContains usages in...
- EqualsTree.java:46: Avoid equalsTree usages in checks and... HOT 1
- PmdListener.java:88-89: If was added to avoid failing...
- PmdValidatorTest.java:130-131: Replace not+empty() with...
- Rebuild GitHub Pages HOT 4
- PMD.AvoidAccessToStaticMembersViaThis check works incorrectly HOT 4
- `java.lang.NullPointerException` at `com.qulice.checkstyle.DiamondOperatorCheck.isDiamondOperatorUsed` HOT 3
- check failed: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Failed to process files for 0.22.1 HOT 1
- add a rule to check that affirm is used for Assertion HOT 9
- PMD UseUnderscoresInNumericLiterals rule gives false positives on non-divisible number into even 3 digit parts HOT 3
- prohibit private constructors if they are not used in the class HOT 4
- ignore binary files automatically HOT 1
- PMD exception in Java source with variables or methods named with unicode characters for Windows workflow HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qulice.