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
[apex] Merge main (7.x) branch into experimental-apex-parser and fix tests #4479
[apex] Merge main (7.x) branch into experimental-apex-parser and fix tests #4479
Conversation
Generated by 🚫 Danger |
…able iteration order
This avoids having spaces in the possible values. E.g. MEDIUM_HIGH instead of Medium High.
- Update bootstrap, jquery, datatables - Optimize styling - Add param lines for cpdhtml.xslt
[cpd] New XML to HTML XLST report format for PMD CPD pmd#4426
[coco] CPD: Coco support for code duplication detection pmd#4431
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.
Sorry that it took so long...
I'm continuing later this week and see, whether it still builds...
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTMethod.java
Outdated
Show resolved
Hide resolved
pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextFileContent.java
Outdated
Show resolved
Hide resolved
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/AbstractApexNode.java
Show resolved
Hide resolved
...apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/design/ExcessiveParameterListRule.java
Show resolved
Hide resolved
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/ast/ApexParserTest.java
Show resolved
Hide resolved
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTApexFile.java
Outdated
Show resolved
Hide resolved
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTFormalComment.java
Outdated
Show resolved
Hide resolved
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/documentation/ApexDocRule.java
Outdated
Show resolved
Hide resolved
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ApexParser.java
Outdated
Show resolved
Hide resolved
...alforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/ApexClassPropertyTypesVisitorTest.java
Outdated
Show resolved
Hide resolved
- not for FragmentedTextDocuments Refs pmd#4479
I'm going to merge this now into the exeperimental-apex-parser branch. There are still some things to look at, as the regression tester shows some new errors and differences: Errors:
StacktraceCaused by: java.lang.NullPointerException at net.sourceforge.pmd.lang.apex.rule.errorprone.AvoidNonExistentAnnotationsRule.checkForNonExistentAnnotation(AvoidNonExistentAnnotationsRule.java:62) at net.sourceforge.pmd.lang.apex.rule.errorprone.AvoidNonExistentAnnotationsRule.visit(AvoidNonExistentAnnotationsRule.java:58) at net.sourceforge.pmd.lang.apex.ast.ASTField.acceptApexVisitor(ASTField.java:42) at net.sourceforge.pmd.lang.apex.ast.AbstractApexNode.acceptVisitor(AbstractApexNode.java:127) at net.sourceforge.pmd.lang.apex.ast.ApexParserVisitor.visitNode(ApexParserVisitor.java:17) at net.sourceforge.pmd.lang.apex.ast.ApexParserVisitor.visit(ApexParserVisitor.java:24) at net.sourceforge.pmd.lang.apex.ast.ApexParserVisitor.visitApexNode(ApexParserVisitor.java:29) at net.sourceforge.pmd.lang.apex.ast.ApexVisitor.visit(ApexVisitor.java:352) at net.sourceforge.pmd.lang.apex.rule.errorprone.AvoidNonExistentAnnotationsRule.visit(AvoidNonExistentAnnotationsRule.java:42) at net.sourceforge.pmd.lang.apex.ast.ASTUserEnum.acceptApexVisitor(ASTUserEnum.java:18) at net.sourceforge.pmd.lang.apex.ast.AbstractApexNode.acceptVisitor(AbstractApexNode.java:127) at net.sourceforge.pmd.lang.apex.ast.ApexParserVisitor.visitNode(ApexParserVisitor.java:17) at net.sourceforge.pmd.lang.apex.ast.ApexParserVisitor.visit(ApexParserVisitor.java:24) at net.sourceforge.pmd.lang.apex.ast.ApexParserVisitor.visitApexNode(ApexParserVisitor.java:29) at net.sourceforge.pmd.lang.apex.ast.ApexVisitor.visit(ApexVisitor.java:344) at net.sourceforge.pmd.lang.apex.rule.errorprone.AvoidNonExistentAnnotationsRule.visit(AvoidNonExistentAnnotationsRule.java:30) at net.sourceforge.pmd.lang.apex.ast.ASTUserClass.acceptApexVisitor(ASTUserClass.java:21) at net.sourceforge.pmd.lang.apex.ast.AbstractApexNode.acceptVisitor(AbstractApexNode.java:127) at net.sourceforge.pmd.lang.apex.ast.ApexParserVisitor.visitNode(ApexParserVisitor.java:17) at net.sourceforge.pmd.lang.apex.ast.ApexVisitor.visit(ApexVisitor.java:20) at net.sourceforge.pmd.lang.apex.ast.ASTApexFile.acceptApexVisitor(ASTApexFile.java:61) at net.sourceforge.pmd.lang.apex.ast.AbstractApexNode.acceptVisitor(AbstractApexNode.java:127) at net.sourceforge.pmd.lang.apex.rule.AbstractApexRule.apply(AbstractApexRule.java:17) at net.sourceforge.pmd.lang.rule.AbstractDelegateRule.apply(AbstractDelegateRule.java:232) at net.sourceforge.pmd.lang.rule.internal.RuleApplicator.applyOnIndex(RuleApplicator.java:75) ... 9 more Rule changes:
Otherwise it looks pretty promising to replace Jorje soon... |
Part of #3766
Merge main (7.x) branch into experimental-apex-parser and fix tests.
Conflict resolution and fixes include:
* Create root
ASTApexFile
nodes* Correct source locations
* Insert comments by offset rather than line/column, using more of the mainline code
* Removed some unused methods
* Suppress Summit logger INFO output
* Suppress some (but not all) ANTLR version mismatch output
* Replace
ASTFormalComment.getToken()
withgetImage()
* Remove deleted APIs:
getLocation
,hasSuppressWarningsAnnotationsFor
,getModifiers
* Remove code that was factored into
BaseApexClass
* Replace all references to Jorje in rules
* Passing
AbstractApexNode
instead ofApexNode
during tree building* Extending and using
TextFileContent
to convert line+column (as is native in Summit) to offset* Using the new visitor method and interface
* Replace
ApexRootNode
withBaseApexClass
* Remove
AbstractApexNodeBase