1238 Commits

Author SHA1 Message Date
Andreas Dangel
f30eb4b5ff Use semantic lookahead for the module productions
The new keyword are only "restricted keywords" and can still be used
as identifiers.
2017-09-22 23:43:43 +02:00
Andreas Dangel
07eede38db Fix unit test after changing return type to String (for XPath attributes) 2017-09-22 23:39:38 +02:00
Andreas Dangel
1020bf73db Enhance grammar to parse Java 9 module-info.java 2017-09-22 21:35:24 +02:00
Andreas Dangel
cb772167bb Simplify Java Language Module 2017-09-22 15:37:23 +02:00
Andreas Dangel
fa44c405bd Interface methods can be private now 2017-09-22 15:32:24 +02:00
Andreas Dangel
672f9216dd Simplify grammar: TypeArguments is not used here, it's resolved
as a child by ClassOrInterfaceType already
2017-09-22 15:32:24 +02:00
Andreas Dangel
77222904de Check for diamond operator for anonymous classes 2017-09-22 15:32:19 +02:00
Andreas Dangel
722b2b1657 Allow nested private methods 2017-09-22 13:33:08 +02:00
Andreas Dangel
cfa4b5b85c Add Java9 Language Module, Update grammar
* Java8 mode now rejects private methods in interfaces
* Java9 mode now rejects "_" as identifier
2017-09-22 12:19:38 +02:00
Andreas Dangel
16eb55d0c8 Merge branch 'pr-596' 2017-09-16 16:09:45 +02:00
Clément Fournier
0349ad74c1 Forgot stuff in n.s.pmd 2017-09-14 15:28:40 +02:00
Clément Fournier
6a162c238c Moved properties to n.s.pmd.properties 2017-09-14 00:05:55 +02:00
Andreas Dangel
ee727c4504 Fix remaining tests after merge 2017-09-11 22:08:32 +02:00
Andreas Dangel
54423d05a6 Merge branch 'master' into junit-rule-pmd-test-runner 2017-09-11 22:04:55 +02:00
Andreas Dangel
4f5cae32d9 Apply schema for java rules tests 2017-09-11 21:55:50 +02:00
Juan Martín Sotuyo Dodero
1600891562 Merge branch 'pr-598' 2017-09-09 18:56:30 -03:00
Andreas Dangel
41b4eed58f Merge remote-tracking branch 'origin/master' into pr-566 2017-09-09 09:53:17 +02:00
oowekyala
443f73b744 Fix #388 2017-09-07 17:21:11 +02:00
Clément Fournier
d1a311fe7b Merge branch 'master' of https://github.com/pmd/pmd into xpath-metrics 2017-09-06 10:55:18 +02:00
Andreas Dangel
a887393d29 Merge branch 'pr-591' 2017-09-05 18:28:17 +02:00
Andreas Dangel
fa86d073af Merge branch 'pr-585' 2017-09-05 18:03:47 +02:00
Andreas Dangel
a41df604e5 Update release notes, refs #585 2017-09-05 18:03:15 +02:00
Juan Martín Sotuyo Dodero
c6acda64f2 Update changelog, refs #565 2017-09-04 11:47:48 -03:00
Juan Martín Sotuyo Dodero
02c016d95f [java] java-basic/DontCallThreadRun false negative
- Use type resolution to determine when we are using a `Thread`
 - Fixes #565
2017-09-04 11:35:36 -03:00
Juan Martín Sotuyo Dodero
de506f35ae Improve java-design/MissingStaticMethodInNonInstantiatableClass
- Remove false positives
 - Simplify xpath expression
 - Don't use count for checking for `= 0` or `> 0`
 - Fixes #590
2017-09-03 18:52:19 -03:00
Clément Fournier
e751992761 XPath function for metrics 2017-08-29 23:04:20 +02:00
Andreas Dangel
d301e99737 Merge branch 'pr-583' 2017-08-29 19:55:11 +02:00
Clément Fournier
cc362d764f Moved NcssCountRule to codesize.xml 2017-08-28 22:01:11 +02:00
Juan Martín Sotuyo Dodero
ef91d41680 Merge branch 'pr-579' 2017-08-28 16:18:42 -03:00
Andreas Dangel
6fccc0c2eb Merge branch 'pr-518' 2017-08-28 20:31:08 +02:00
Bendegúz Nagy
599f91a796 Java, typeres: rename JavaTypeDefinitionSpecial to JavaTypeDefinitionUpper 2017-08-28 19:27:17 +02:00
Bendegúz Nagy
e1892944ff Java, typeres: make java type definition lower bound into a subclass 2017-08-28 13:59:30 +02:00
Clément Fournier
c1459ab4f9 Added version info to the API 2017-08-26 21:58:52 +02:00
Andreas Dangel
23a936e654 Merge branch 'pr-580' 2017-08-26 11:06:33 +02:00
Andreas Dangel
d31d0dd7cd Merge branch 'pr-578' 2017-08-26 10:57:34 +02:00
Niklas Baudy
f0d5f9392a Address comments. 2017-08-25 08:34:09 +02:00
Clément Fournier
5a2fc3e2c3 Checkstyle 2017-08-25 00:20:45 +02:00
Clément Fournier
f5530660af Corrections for PR #578 2017-08-24 23:57:16 +02:00
Niklas Baudy
cfa99e291e Relax AbstractClassWithoutAnyMethod when class is annotated by @AutoValue. 2017-08-24 23:27:04 +02:00
Clément Fournier
9d5b2a5e7c Add AbstractMetric to topple the class hierarchy of metrics 2017-08-24 22:28:43 +02:00
Bendegúz Nagy
186d0edd91 Java, typeres: update generics parsing to produce upper and lower bounds 2017-08-24 22:10:17 +02:00
Juan Martín Sotuyo Dodero
d544c7f122 Merge branch 'pr-570' 2017-08-24 11:15:57 -03:00
Bendegúz Nagy
2126517563 Java, typeres: fix PR comments 2017-08-24 16:06:51 +02:00
Bendegúz Nagy
a61ca6b2b3 Java, typeres: fix PR comments 2017-08-24 12:16:55 +02:00
Clément Fournier
f631abc6d3 Fix tests 2017-08-24 09:53:30 +02:00
Clément Fournier
9f1e520ee9 Data class rule displays metric values 2017-08-24 09:24:07 +02:00
Clément Fournier
925be17be3 Merge upstream 2017-08-24 09:09:21 +02:00
Andreas Dangel
1008f7ef70 Merge branch 'pr-573' 2017-08-23 20:40:08 +02:00
Marcel Möhring
dbf3adb770 [doc][java] Add hint for Guava users in InefficientEmptyStringCheck
Fixes issue #571.
2017-08-22 22:51:43 +02:00
Clément Fournier
e45061962e Corrections for PR #573 2017-08-22 22:23:11 +02:00