pmd
pmd copied to clipboard
An extensible multilanguage static code analyzer.
Language: C PMD Version: 6.51.0 **Description**: When running CPD (with --language c) PMD raises a lexical error. The input file can be retrieved from: https://github.com/torvalds/linux/blob/master/arch/arc/include/asm/entry-arcv2.h **Exception Stacktrace**: ``` net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical...
**Affects PMD Version:** since 6.31.0 **Description:** When PMD is run under Windows, the URIs in the SARIF report look like ```json "artifactLocation": { "uri": "D:\\a\\pmd-github-action-test\\src\\classes\\UnusedLocalVariableSample.cls" }, ``` This is not...
**Affects PMD Version:** 7.0.0 **Description:** As found in #3645, currently we can't process [InputJavaParserNoFreezeOnDeeplyNestedLambdas](https://github.com/checkstyle/checkstyle/blob/checkstyle-9.1/src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/javaparser/InputJavaParserNoFreezeOnDeeplyNestedLambdas.java). > Type checking nested lambdas is exponential IIRC, here there should be 6^31 overload combinations to...
Html/Xml file does not parse unless we use --force-language flag with xml language **Affects PMD Version:** 6.36-38 **Description:** A clear and concise description of what the bug is. **Exception Stacktrace:**...
**Exception Stacktrace:** ``` net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file /Users/dfpo/hilifeCollege/hilifeElite/shiku_im/study/video/SJBaseVideoPlayer/SJBaseVideoPlayer/Tool/SJPrompt.m at line 47, column 30. Encountered: Lexical error at line 47, column 30. Encountered: "(" (40), after : "(void (^ _Nonnull)"...
**Affects PMD Version:** PMD 6.32 **Description:** With a class that contains code like this: ``` [...] if( processCasesMap.containsKey('C_RT_TakeoverEle') ) {} [...] ``` PMD will report 2 warnings, one for **]EmptyStatementBlock](https://pmd.github.io/latest/pmd_rules_apex_errorprone.html#emptystatementblock)**...
**Affects PMD Version:** 6.28.0 **Description:** I ran the PMD duplicate code detector on my source directory. Using C++ as language. This was on Windows 10. **Exception Stacktrace:** ``` net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical...
**Affects PMD Version:** 6.27.0 **Description:** PMD can't parse PL/SQL containing DML statement with [Error Logging](https://docs.oracle.com/database/121/SQLRF/statements_9015.htm#BGBEIACB). **Exception Stacktrace:** ``` net.sourceforge.pmd.PMDException: Error while parsing Z:\...\test.prc at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:110) at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:89) at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:51) at...
**Affects PMD Version:** 7.0.0 **Rule:** https://docs.pmd-code.org/latest/pmd_rules_java_design.html#avoidrethrowingexception **Description:** `AvoidRethrowingException` is meant to catch unnecessary catch blocks that simply rethrow the exception. However, there is an edge case that is not considered...
Affects PMD Version: 6.3+ 7.0.0 Rule: [ApexCRUDViolation](https://pmd.github.io/latest/pmd_rules_apex_security.html#apexcrudviolation) Description: Custom metadata types are getting flagged as needing CRUD checks. However, they are not objects and there is no way to define...