GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [java] Make ConfusingTernary != null configurable · Issue #6004 · pmd/pmd Closed Labels an:enhancementAn improvement on existing features / rules Milestone DescriptionFor the rule https://docs.pmd-code.org/latest/pmd_rules_java_codestyle.html#confusingternary this issue #278 made a comparison with != null a positive condition. I think this should rather be made configurable: <rule ref="category/java/codestyle.xml/ConfusingTernary"> <properties> <property name="ignoreElseIf" value="false" /> <property name="ignoreNulls" value="true" /> </properties> </rule> The reason is that I don't want null guards being performed by my if statements. I don't need this change to do that (I can just search for all cases of != null AND == null) but until I have refactored, I want this rule to work for both cases. In Modern Java we have the I want to push null checks into the background and not have them part of my control flow statements, clogging up my coverage metrics, etc. PMD 3.27.0 Activity
MetadataMetadataAssigneesLabelsan:enhancementAn improvement on existing features / rules TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |