Commit Graph
2080 Commits
Author SHA1 Message Date
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 e67ae457d9 Abstract over parsing contexts 2018-09-04 12:30:30 +02:00
Clément Fournier 4a3f85d40a Documentation 2018-09-04 12:30:30 +02:00
Clément Fournier 86a1a13dc6 Add Node extensions 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 f5582b057a Implement focus 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 1703dde463 Generate tests based on version range 2018-09-04 12:30:30 +02:00
Clément Fournier 9bb22f4ca6 FunSpec integration
Lots of redundancy until we make a choice
2018-09-04 12:30:29 +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
Clément Fournier 492f1798d8 Fix tests 2018-09-04 11:44:16 +02:00
Clément Fournier 16f0633193 Fix #1329 2018-09-04 11:34:34 +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 DoderoandGitHub dc19269491 Merge branch 'master' into issue-1323 2018-09-01 20:16:13 -03:00
Andreas Dangel 7ebcb30aaa No need to check for missing ':' 2018-09-01 21:41:05 +02:00
Andreas Dangel d0efb3cad7 Merge branch 'pr-1319' 2018-09-01 21:32:08 +02:00
Andreas Dangel 58b1985509 Merge branch 'pr-1324' 2018-09-01 21:32:03 +02:00
Andreas Dangel 2fb3cd13cb [java] AvoidUsingHardCodedIP false positive for ":bee"
"::bee" (two colons) is a valid IPv6 address, while ":bee"
is not.

Refs #1323
2018-09-01 21:12:29 +02:00
Juan Martín Sotuyo Dodero ded5c1ca51 Add 'as' a a valid transformation prefix 2018-09-01 16:07:13 -03:00
Andreas Dangel a30d23e587 [java] LinguisticNaming - make tranform method names configurable
Follow-up for #1252
2018-08-31 11:29:55 +02:00
Juan Martín Sotuyo Dodero 6ef3b5a583 [java] Remove no longer used property
- Fixes #1323
2018-08-30 13:54:59 -03:00
Clément Fournier af5130ab00 Improvements and planned updates around PropertySource 2018-08-28 00:25:06 +02:00
Juan Martín Sotuyo DoderoandGitHub df64d8bfce Merge branch 'master' into deprecate-old-naming-conventions-rules 2018-08-27 12:58:18 -03:00
Juan Martín Sotuyo Dodero 982effe744 Merge branch 'pr-1297' 2018-08-27 04:20:34 -03:00
Juan Martín Sotuyo Dodero 26f5a41c47 [java] OneDeclarationPerLine should check fields too 2018-08-27 04:12:39 -03:00
Clément Fournier 40ce9313ae Deprecate R[UN]SIGNEDSHIFT
No usages to report
2018-08-20 18:08:21 +02:00
Andreas Dangel 71ce6c2eae [java] use pmd-java:typeIs always with the prefix "pmd-java".
Jaxen ignores the prefix, Saxon will require it.
So, it's more consistent to use the prefix always.
2018-08-17 20:27:09 +02:00
Andreas Dangel 27ac0944b5 [java] Use typeresolution for various (J)Unit rules 2018-08-17 20:20:10 +02:00
Andreas Dangel b9b19ec3ab Merge branch 'pr-1256' 2018-08-17 19:12:53 +02:00
Clément FournierandGitHub e17a965e03 Merge branch 'master' into deprecate-old-naming-conventions-rules 2018-08-17 16:29:51 +02:00
Clément Fournier 101a2c4100 Merge branch 'master' into split-field-naming-conventions 2018-08-17 15:55:42 +02:00
Clément Fournier 5526cae376 Fix pr comments 2018-08-17 15:54:03 +02:00
Clément Fournier 944c1222d2 Separate treatment of public and non-public constants 2018-08-15 18:35:42 +02:00
Andreas Dangel 89f6ae5806 [java] InvalidSlf4jMessageFormat: Avoid using findDescendantsOfType
to limit the scope of searched nodes
2018-08-14 10:58:41 +02:00
Andreas Dangel 74ed544500 [java] InvalidSlf4jMessageFormat false positive: too many arguments with string concatenation operator
Fixes #1291

If there are multiple Literals for the first parameter, we assume,
they are concatenated together and sum up all placeholders.
Such String literals are concatenated already by the java compiler,
so splitting a String in that way has no negative impact.

This change also makes use of the RuleChain.
2018-08-14 10:58:41 +02:00
Juan Martín Sotuyo Dodero 62612dc507 Merge branch 'pr-1299' 2018-08-13 12:06:46 -03:00
Andreas Dangel f773581459 [core] PMD stops processing file completely, if one rule in a rule chain fails
Fixes #1300
2018-08-13 11:21:04 +02:00
Andreas Dangel f8bb0488d8 [java] RedundantFieldInitializer - NumberFormatException with Long
Fixes #1298
2018-08-13 09:55:02 +02:00
Clément FournierandGitHub 19b9c841dc Checkstyle 2018-08-13 09:09:26 +02:00
Clément Fournier c9cb88e55c Deprecate old rules 2018-08-13 05:55:30 +02:00
Clément Fournier 7bc0305835 Add tests 2018-08-13 01:09:48 +02:00
Clément Fournier e4566ea17a Add FieldNamingConventionsRule, document ast 2018-08-13 00:46:31 +02:00
Clément Fournier 44e23e7d2e Make classloaders final in JTypeQName 2018-08-12 23:16:31 +02:00
Clément Fournier eaabd8e646 Rename to quickstart.xml 2018-08-12 20:07:29 +02:00
Clément Fournier 142bf1a82e Merge branch 'master' into default-rset 2018-08-12 20:05:23 +02:00
Clément Fournier 0ae88f7cd0 Merge branch 'pr-1252' 2018-08-12 19:27:20 +02:00
Clément Fournier c3ea6de8e0 Move LinguisticNaming to 6.7.0 2018-08-12 19:25:13 +02:00