238 Commits

Author SHA1 Message Date
Andreas Dangel
3c50db2439 [maven-release-plugin] prepare for next development iteration 2018-10-28 16:49:09 +01:00
Andreas Dangel
7e4e859c5f [maven-release-plugin] prepare release pmd_releases/6.9.0 2018-10-28 16:48:57 +01:00
Andreas Dangel
77d392c30d Followup on #1399 2018-10-28 09:25:21 +01:00
Clément Fournier
b62b216b29 Merge branch 'pr-1399' 2018-10-27 22:55:10 +02:00
Clément Fournier
39f87ca5f3 Update schema location in rulesets 2018-10-27 21:02:16 +02:00
Will Herrmann
377baf7caf Replacing IOUtils.closeQuietly(foo) with try-with-resources statements 2018-10-19 14:23:51 -05:00
Clément Fournier
3dc9edaa7b Port group tests 2018-10-15 16:51:42 +02:00
Andreas Dangel
1f7c827323 Merge branch 'master' into unit-test-split 2018-10-05 20:39:22 +02:00
Andreas Dangel
a28657d8dd [test] Add a PMD specific PmdRuleTst base class for PMD's own tests.
Restore SimpleAggregatorTst to be general again.
2018-10-05 19:47:40 +02:00
Andreas Dangel
d8586382f6 [maven-release-plugin] prepare for next development iteration 2018-09-30 10:10:21 +02:00
Andreas Dangel
161d9cd6d6 [maven-release-plugin] prepare release pmd_releases/6.8.0 2018-09-30 10:10:12 +02:00
Clément Fournier
387e794116 Split pmd-test to isolate kotlin dependencies 2018-09-24 15:02:19 +02:00
Andreas Dangel
aaabd20173 [test] Provide a default implementation for test setUp 2018-09-09 12:38:25 +02:00
Clément Fournier
20901cf787 Move node extensions into pmd-test 2018-09-04 12:30:30 +02:00
Clément Fournier
d98b91263d Prototype a junit syntax
Inherently less powerful, because we can't generate tests
for several language versions
2018-09-04 12:30:30 +02:00
Clément Fournier
7284a08779 Add expectParseException for parser crash tests
The generated JavaParser should be added to coveralls
2018-09-04 12:30:30 +02:00
Clément Fournier
fd83625e73 Allow to return any return value from childRet 2018-09-04 12:30:30 +02:00
Clément Fournier
1eb5b7a7c9 Commit to FunSpec style
* Move everything inside ParsingCtx. It's extensible and can accommodate more
configuration options without breaking clients/ dealing with many optional parameters.
* Create tests for CatchStatement.
* Child calls now return the matched node.
* Change behaviour of ignoreChildren: it throws an exception if 'child' is called.
This is to be consistent with the previous item.
2018-09-04 12:30:30 +02:00
Clément Fournier
84ac91b373 Better error messages 2018-09-04 12:30:30 +02:00
Clément Fournier
0ea7707d4c Better error messages 2018-09-04 12:30:30 +02:00
Clément Fournier
0eba746afb Add string matchers 2018-09-04 12:30:29 +02:00
Clément Fournier
ce25568664 Allow to write tests in Kotlin 2018-09-04 12:30:29 +02:00
Andreas Dangel
291d36d841 [maven-release-plugin] prepare for next development iteration 2018-09-02 14:27:42 +02:00
Andreas Dangel
b98bd0bb96 [maven-release-plugin] prepare release pmd_releases/6.7.0 2018-09-02 14:27:33 +02:00
Juan Martín Sotuyo Dodero
5ca1f7438c Merge branch 'pr-1269' 2018-08-04 15:14:06 -03:00
Andreas Dangel
d859f6e0e3 Test Framework: Only show "Unit Tests" node, if there are unit tests 2018-08-04 18:54:00 +02:00
Andreas Dangel
dd99a35aaa [core] Test Framework: Sort violations by line/column
Fixes #1191
2018-07-30 20:49:15 +02:00
Andreas Dangel
20f52700b4 [maven-release-plugin] prepare for next development iteration 2018-07-29 12:07:05 +02:00
Andreas Dangel
868f262c21 [maven-release-plugin] prepare release pmd_releases/6.6.0 2018-07-29 12:06:56 +02:00
Andreas Dangel
444beeb220 [maven-release-plugin] prepare for next development iteration 2018-06-26 09:34:01 +02:00
Andreas Dangel
211002bb34 [maven-release-plugin] prepare release pmd_releases/6.5.0 2018-06-26 09:07:11 +02:00
Andreas Dangel
5a7bbe19a2 dogfood: fix missing override
Note: the rule is disabled for pmd-xml, refs #1074
2018-06-16 17:48:36 +02:00
Juan Martín Sotuyo Dodero
a788d4b586 [maven-release-plugin] prepare for next development iteration 2018-05-29 13:58:54 -03:00
Juan Martín Sotuyo Dodero
e9d78ede3c [maven-release-plugin] prepare release pmd_releases/6.4.0 2018-05-29 13:58:44 -03:00
Andreas Dangel
787d62420c Fix unit test, handle Pattern special 2018-05-17 21:00:05 +02:00
Andreas Dangel
85874e7e9c [maven-release-plugin] prepare for next development iteration 2018-04-29 09:54:45 +02:00
Andreas Dangel
10c66fbf38 [maven-release-plugin] prepare release pmd_releases/6.3.0 2018-04-29 09:54:36 +02:00
Andreas Dangel
f3ab54d6da [maven-release-plugin] prepare for next development iteration 2018-03-26 09:23:23 +02:00
Andreas Dangel
59b360a60a [maven-release-plugin] prepare release pmd_releases/6.2.0 2018-03-26 09:23:14 +02:00
Andreas Dangel
f335e83043 Cleanup pom.xml files 2018-03-23 10:21:16 +01:00
Juan Martín Sotuyo Dodero
451815bf0a Merge branch 'pr-954' 2018-03-11 02:23:26 -03:00
Juan Martín Sotuyo Dodero
5ead2eda16 Use TemporaryFolder instead 2018-03-11 02:16:01 -03:00
Andreas Dangel
8bd1e3b486 Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +01:00
Andreas Dangel
cf88117820 Fix PMD dogfood: UnusedFormalParameter, UselessParentheses and UselessOverridingMethod 2018-03-09 12:52:20 +01:00
Andreas Dangel
f3a358c419 Fix PMD dogfood: EmptyCatchBlock 2018-03-09 09:58:04 +01:00
Andreas Dangel
7aaa9966c2 Fix PMD dogfood: AvoidCatchingThrowable
Refs #361
2018-03-09 09:57:15 +01:00
Clément Fournier
3d5a0aa4c6 Cleanup 2018-03-05 22:14:57 +01:00
Clément Fournier
f8864e9060 Make real Ant test cases 2018-03-05 21:58:05 +01:00
Clément Fournier
e2c6f1e467 Add '-no-cache' CLI switch, to disable incremental analysis
- The switch discards the argument provided to '-cache' if any
- Using the switch disables the suggestion to use incremental analysis
- Rule tests use that option to avoid the warning, which clutters build logs
- Refs #946
2018-03-05 13:47:48 +01:00
Andreas Dangel
098b0dcac0 [maven-release-plugin] prepare for next development iteration 2018-02-25 09:53:26 +01:00