Commit Graph
366 Commits
Author SHA1 Message Date
Clément Fournier 1187b9e4e1 Add tests for logging behavior 2021-04-09 16:19:57 +02:00
Clément Fournier 9b51be7b21 Don't check for deprecations when loading a ruleset in tests
This happens when we have a deprecated rule in a category.
Every time a rule of the same category was being loaded for
a test, the deprecation warning would be output.

pmd-apex was barfing a wall of deprecation warnings during
its tests because of this.
2021-04-07 01:18:52 +02:00
Clément Fournier d6beac9e9c Merge branch '7.0.x' into core-parser-tasks 2021-01-27 16:08:48 +01:00
Andreas Dangel 3fcf339656 Rename local variable rsf -> rulesetLoader 2021-01-24 18:39:43 +01:00
Clément Fournier 2623efbc8a Delete ParserOptions 2020-12-13 00:39:05 +01:00
Clément Fournier 79def1b51d Reduce importance of parser options 2020-12-12 21:19:50 +01:00
Clément Fournier 83edce05c1 Merge branch 'pmd7-ruleset-loader' into core-parser-tasks 2020-12-12 20:53:50 +01:00
Clément Fournier 789e4aa730 Fix tests 2020-12-12 20:17:38 +01:00
Clément Fournier 14df02e3cf Cleanup more tests 2020-12-12 18:55:38 +01:00
Andreas Dangel 384d32ddd0 Merge branch 'master' into pmd/7.0.x 2020-12-11 19:48:54 +01:00
Andreas Dangel 1a4ca95f6c Merge pull request #2635 from oowekyala:ruleset-factory-builder
[core] New RuleSet API and deprecations for PMD's entry point APIs #2635
2020-12-11 19:03:41 +01:00
Clément Fournier a8d40342f7 Fix compil, remove dependency on xpath 2020-12-11 10:57:39 +01:00
Clément Fournier 823f78c425 Merge branch 'master' into 7.0.x
Refs #2864
2020-12-11 10:11:40 +01:00
Clément Fournier 6aef869a74 Merge branch 'ruleset-factory-builder' into core-parser-tasks 2020-12-11 00:38:31 +01:00
Clément Fournier f7829531c9 Add some doc 2020-12-10 20:17:51 +01:00
Clément Fournier 2d5781482e Fix tests 2020-11-24 12:22:32 +01:00
Clément Fournier fabf2cf6db Make the parser options properties private 2020-11-24 11:53:45 +01:00
Clément Fournier 21506cea85 Cleanup languages to skip 2020-11-24 11:39:59 +01:00
Jeff Bartolotta 86b5948f07 Update the way nodes with data are identified
Changed method for how the Visualforce strings are reconstructed from the AST. The previous implementation had incorrect assumptions about the structure of the AST. Added tests to more thoroughly test these situations.

Changed name of IdentifierType to DataType. This information can be stored on either ASTIdentifier or ASTLiteral nodes.

Changes based on PR feedgack:
- Restored ParserOptionsTest in order to avoid binary compatibilty issues.
- Changed ParserOptions to contain a PropertySource instead of extending AbtractPropertySource.
2020-11-20 11:59:23 -08:00
Clément Fournier d4ad2f5011 Fix compil 2020-11-15 18:47:23 +01:00
Clément Fournier 7c45eb0ca9 Use a wrapper 'AstInfo' 2020-11-15 17:35:10 +01:00
Clément Fournier 2fad9bf507 Changes to DataSource and test modules 2020-11-15 16:42:30 +01:00
Jeff Bartolotta e1c42a10ec Move visitor to VfParser#parse
LanguageVersionHandler#getTypeResolutionFacade is deprecated. Moved the VfExpressionTypeVisitor creation and execution to VfParser#parse instead.

ParsingOptionsTest located in pmd-test wasn't running previously because it was in the src/main hierarchy. Moved this test into the src/test hierarchy and consolidated the methods from the
similarly named class from pmd-core.
2020-11-12 20:13:19 -08:00
jbartolotta-sfdc 0348b2c0d2 Merge branch 'master' into issue1092-vf-escape-false-positives 2020-11-12 10:39:10 -08:00
Jeff Bartolotta ba2e91b3a0 Exclude languages in AbstractRuleSetFactoryTest
Allow subclasses of AbstractRuleSetFactoryTest to filter out languages
that show up in the classpath but should not be tested.

Change VFTestContstants to final instead of abstract.
2020-10-29 17:22:35 -07:00
Clément Fournier 6642f5d038 Isolate single rule pattern 2020-10-26 19:31:48 +01:00
Andreas Dangel 4837c8dbc8 [maven-release-plugin] prepare for next development iteration 2020-10-24 10:17:24 +02:00
Andreas Dangel 81f12d3e5d [maven-release-plugin] prepare release pmd_releases/6.29.0 2020-10-24 10:17:15 +02:00
Clément Fournier 649ad99755 Remove some changes to RuleTst 2020-10-17 16:37:04 +02:00
Clément Fournier 1089da7da2 Hide most methods of RuleTst
The supported API is now just the junit integration
2020-09-30 13:21:02 +02:00
Clément Fournier 020fa899d5 Fix tests 2020-09-28 20:12:04 +02:00
Clément Fournier 5c59de5d52 Checkout changes to test utils 2020-09-28 19:46:34 +02:00
Andreas Dangel aa245c6e1b [maven-release-plugin] prepare for next development iteration 2020-09-26 10:25:16 +02:00
Andreas Dangel 722f3ca997 [maven-release-plugin] prepare release pmd_releases/6.28.0 2020-09-26 10:25:05 +02:00
Clément Fournier 2e5de16cce Merge branch '7.0.x' into remove-more-deprecated-things 2020-09-01 18:32:14 +02:00
Clément Fournier a4d486f7d2 Improve ant test failure messages 2020-09-01 16:53:55 +02:00
Andreas Dangel c59af0aee6 [maven-release-plugin] prepare for next development iteration 2020-08-31 18:30:18 +02:00
Andreas Dangel 856950f0d2 [maven-release-plugin] prepare release pmd_releases/6.27.0 2020-08-31 18:30:09 +02:00
Clément Fournier bceee2b54f Disallow overriding language in rule reference 2020-08-25 16:13:22 +02:00
Clément Fournier 285e7f2e94 Merge branch 'master' into 7.0.x 2020-08-25 14:53:48 +02:00
Clément Fournier d945ee70e1 Merge branch 'master' into StringBuilder_issues 2020-08-25 14:48:23 +02:00
XenoAmess 90f53f892f StringBuilder issues 2020-08-25 03:06:56 +08:00
Clément Fournier b6531787d3 Merge branch 'use_StandardCharsets' into master
refs #2732
2020-08-24 20:30:30 +02:00
XenoAmess 33e4f98274 StringBuffer to StringBuilder 2020-08-24 16:45:11 +08:00
XenoAmess 327eaaedf6 use StandardCharsets 2020-08-24 16:30:04 +08:00
Clément Fournier 3d4f709009 Merge branch '7.0.x' into remove-old-stuff 2020-07-31 16:02:34 +02:00
Andreas Dangel 384dd20319 Merge branch 'master' into pmd/7.0.x 2020-07-30 11:51:53 +02:00
Andreas Dangel eb683569af Merge branch 'pr-2617'
[core] Deprecate missing language attribute on rule definition #2617
2020-07-30 10:19:03 +02:00
Clément Fournier 4c11082574 Cleanup report 2020-07-29 18:04:56 +02:00
Andreas Dangel 49ab75aeb7 [maven-release-plugin] prepare for next development iteration 2020-07-25 13:45:36 +02:00