Andreas Dangel
10590a27c4
[test] Refactor SimpleAggregatorTst to also use dynamic tests
2022-04-29 17:05:47 +02:00
Andreas Dangel
c23d88da27
[test] Deprecate PMDTestRunner and RuleTestRunner
...
They were only needed for JUnit4
2022-04-29 17:04:59 +02:00
Andreas Dangel
ac3f152dcd
[test] Migrate PmdRuleTst to JUnit5 dynamic tests
2022-04-29 16:49:25 +02:00
Andreas Dangel
5c3afd881f
[test] Add JUnit5 dependencies
2022-04-29 16:48:09 +02:00
Andreas Dangel
4c45d6125e
Merge branch 'master' into pmd/7.0.x
2022-04-29 13:40:05 +02:00
Andreas Dangel
efcc583086
[test] Improve test method name, display test method
2022-04-29 12:22:44 +02:00
Andreas Dangel
6ec5fe1073
Fix pmd
2022-04-24 22:44:05 +02:00
Andreas Dangel
1f9c7c5765
[test] Print Test Method Name for failed rule tests
...
This helps to select just this failed test to
rerun it within the IDE.
Also replace parenthesis in the test case description.
2022-04-24 22:29:36 +02:00
Clément Fournier
e4627fb841
Move trimBlankLines
2022-04-24 19:38:01 +02:00
Clément Fournier
0d10425aac
Pull some trimming logic into pmd-core
2022-04-24 14:56:58 +02:00
Clément Fournier
b3818954ac
Doc
2022-04-24 13:12:34 +02:00
Clément Fournier
f2708f4b4e
Make Node#getTextRegion non-default
...
Now implementors of Node need an implementation.
Implementation of #getReportLocation can be shared
2022-04-24 12:28:05 +02:00
Clément Fournier
fa60ad9317
Cleanup tests
...
Make DummyNode use offset/length coordinates
2022-04-24 11:56:56 +02:00
Clément Fournier
26bdab4da4
WIP: Merge branch 'abort-on-semantic-errors' into text-utils-simple
2022-04-22 20:24:54 +02:00
Andreas Dangel
5e9402bfe1
Merge branch 'master' into pmd/7.0.x
2022-04-21 18:42:08 +02:00
Clément Fournier
367c6cf54a
Update JS module
2022-04-15 19:54:31 +02:00
Clément Fournier
715442b66b
Update java/PMDTaskTest to use mocked rules
2022-04-15 19:31:56 +02:00
Clément Fournier
9f163ed9a1
WIP needs xml messages PR
2022-04-10 09:10:53 +02:00
Clément Fournier
7e8b5e37fc
Merge branch 'text-utils-simple' into lang-registry-non-static
2022-04-09 21:45:22 +02:00
Clément Fournier
407ffeaf74
Merge branch '7.0.x' into lang-registry-non-static
2022-04-09 20:11:52 +02:00
Clément Fournier
15d98409db
Add TextRange2d
2022-04-02 22:54:15 +02:00
Clément Fournier
fa635e226e
Merge branch '7.0.x' into text-utils-simple
2022-04-01 23:36:14 +02:00
Andreas Dangel
be3e941a08
[maven-release-plugin] prepare for next development iteration
2022-03-27 17:01:59 +02:00
Andreas Dangel
6859f8db36
[maven-release-plugin] prepare release pmd_releases/6.44.0
2022-03-27 17:01:54 +02:00
Andreas Dangel
819e6236c4
Fix tests and compile errors
2022-03-24 15:52:16 +01:00
Andreas Dangel
644bd3ab39
Merge branch 'master' into pmd/7.0.x
2022-03-24 15:15:55 +01:00
Andreas Dangel
5f9e9d1066
Merge pull request #3818 from adangel:fix-abstract-ruleset-factory-test
...
[core] Fix abstract ruleset factory test #3818
2022-03-24 14:34:43 +01:00
Clément Fournier
df0508610e
Merge branch 'pmd/7.0.x' into cannot-resolve-ambiguous-dollar
2022-03-10 13:52:54 +02:00
Clément Fournier
99425d53ff
Fix OutOfMemory in tests
...
This did not show up earlier because
we used soft class references, which
reduces the memory footprint of unused
TypeSystems. However, they still remain
in old gen and are a large memory hog.
Since e97e2cd
we don't use SoftReference
anymore as parsing the same class several
times may have unintended side-effects.
This revealed the out of memory error.
This will be fixed when we have proper
language lifecycle and resources like the
classloader can be reclaimed later.
2022-03-06 19:00:13 +01:00
Clément Fournier
dee330293f
Fix pmd-core compil
2022-03-05 19:16:13 +01:00
Clément Fournier
af5aceeff8
Merge branch 'pmd7-merge-master' into text-utils-simple
2022-03-05 18:16:49 +01:00
Clément Fournier
f4f7f4b65d
Move nspmd.util.document -> lang.document
2022-03-05 18:05:04 +01:00
Clément Fournier
e414e2119c
Merge branch 'pmd6-improve-pmd-analysis' into pmd7-merge-master
2022-03-05 15:34:50 +01:00
Clément Fournier
b806954d88
Add deprecations
2022-03-05 14:28:25 +01:00
Andreas Dangel
e63858269b
[test] Fix AbstractRuleSetFactoryTest - check category/.../ as well
2022-03-03 21:55:56 +01:00
Clément Fournier
9d1c1860cb
Merge branch 'master' into 7.0.x
2022-03-03 19:55:10 +01:00
Andreas Dangel
2aebcbd1de
Fix PMD CloseResource - BaseCLITest has actually setup/tearDown
...
which deals with restoring System.out/err already
2022-03-03 11:11:57 +01:00
Clément Fournier
af576dbf78
PR review
2022-02-27 19:00:50 +01:00
Clément Fournier
b46dcb48aa
Remove source incompatibility
2022-02-27 18:22:08 +01:00
Clément Fournier
532c81ce7e
Merge branch 'master' into pmd6-file-collector
2022-02-27 18:15:30 +01:00
Andreas Dangel
6719156669
Add simplelogger.properties in pmd-test
...
This provides a default configuration that will be used
when resetting the logger configuration in CLITests or
PMDTaskTest. Without this, slf4j-simple will keep
the last configured default level. Now it will use the
default level configured in simplelogger.
Since pmd-test is not part of the distribution, this
configuration file has no effect for the binaries.
2022-02-26 20:34:58 +01:00
Andreas Dangel
69fb502883
[maven-release-plugin] prepare for next development iteration
2022-02-26 10:01:08 +01:00
Andreas Dangel
dd0ee6190b
[maven-release-plugin] prepare release pmd_releases/6.43.0
2022-02-26 10:01:03 +01:00
Andreas Dangel
a7e2a8eb52
Merge branch 'master' into pr-3785
2022-02-20 16:34:07 +01:00
Andreas Dangel
d1cc05e4d5
[test] Supress JavaUtilLoggingRule for now
2022-02-18 16:12:07 +01:00
Andreas Dangel
f6378d17ea
Merge branch 'pmd/7.0.x' into pmd7-896-slf4j
2022-02-18 14:22:10 +01:00
Andreas Dangel
116cb766aa
Merge branch 'master' into pmd/7.0.x
2022-02-18 12:45:04 +01:00
Andreas Dangel
7733be75ff
[core] More deprecations around PMD/Report/RuleContext ( #3762 )
2022-02-18 11:33:05 +01:00
Andreas Dangel
e1d66e2f42
[core] Use slf4j-api and slf4j-simple
...
Support "--debug" flag for slf4j-simple
2022-02-17 18:54:36 +01:00
Clément Fournier
c3aa845a6a
Fix js & xml tests
2022-02-14 00:15:51 +01:00