11717 Commits

Author SHA1 Message Date
gonzalo
0e011767ce Change ant tasks over (VM) Token class 2017-10-28 14:42:44 -03:00
gonzalo
c606d409f4 Change ant tasks over (Python) Token class 2017-10-28 14:42:44 -03:00
gonzalo
1c0d762a37 Change ant tasks over (PL/SQL) Token class 2017-10-28 14:42:44 -03:00
gonzalo
da902d658f Change ant tasks over (Objective-C) Token class 2017-10-28 14:42:44 -03:00
gonzalo
026576e266 Change ant tasks over (Matlab) Token class 2017-10-28 14:42:44 -03:00
gonzalo
f29e3f0408 Change ant tasks over (CPP) Token class 2017-10-28 14:42:44 -03:00
gonzalo
647a17f060 Change ant tasks over (Ecmascript5) Token class 2017-10-28 14:42:44 -03:00
gonzalo
26461e59c1 Simplify method name in GenericToken && improve ant task replacetoken 2017-10-28 14:42:44 -03:00
gonzalo
95835b8134 Update getter in GenericToken 2017-10-28 14:42:44 -03:00
gonzalo
00ed0a1eab Add RegionByLineImpl javadoc 2017-10-28 14:42:44 -03:00
gonzalo
00ce16c177 [Not Working] Change ant tasks over (VisualForce) Token class 2017-10-28 14:42:44 -03:00
gonzalo
020abafeab Change ant tasks over (JSP) Token class 2017-10-28 14:42:44 -03:00
gonzalo
490b34fea3 Change ant tasks over (Java) Token class 2017-10-28 14:42:44 -03:00
gonzalo
2d01332635 Convert GenericToken from class to interface && Add RegionByLine 2017-10-28 14:42:44 -03:00
Andreas Dangel
591737b2d9 Merge branch 'pr-688' 2017-10-28 19:41:28 +02:00
Andreas Dangel
c728db039e Merge branch 'pr-683' 2017-10-28 19:31:49 +02:00
Andreas Dangel
6d846af07e Merge branch 'pr-680' 2017-10-28 19:27:39 +02:00
Andreas Dangel
20f16762f2 Update release notes, refs #680 2017-10-28 19:19:27 +02:00
Juan Martín Sotuyo Dodero
d1d9c6f3c6 [java] Fix NPE in type resolution
- The resolution of `GenericArrayType` was broken, so we caused NPEs.
 - Those types are now properly resolved, but the test case is still
incomplete due to missing pieces in type inference
2017-10-27 23:53:17 -03:00
Juan Martín Sotuyo Dodero
71d94b4ccd [java] Avoid runtime errors on incomplete classpath 2017-10-27 02:27:32 -03:00
Juan Martín Sotuyo Dodero
83d513edca Fix specificity test for varargs vs fixed
- We used to fail upon mixing varargs with fixed arity instead of
treating the vararg as a fixed arity as per the spec
2017-10-27 00:57:21 -03:00
Juan Martín Sotuyo Dodero
1d02c24b34 Consider only direct children 2017-10-27 00:08:26 -03:00
Juan Martín Sotuyo Dodero
b3dea3240c Generalize test 2017-10-26 22:38:40 -03:00
Juan Martín Sotuyo Dodero
b76945bbbb Be consistent on naming 2017-10-26 22:33:31 -03:00
Juan Martín Sotuyo Dodero
05927af574 [java] Properly resolve array types
- Honor dimensions of arrays
 - Resolve types for allocations as well as declarations of arrays
2017-10-26 22:31:29 -03:00
Juan Martín Sotuyo Dodero
d8f203a859 Chesktyle 2017-10-26 18:03:54 -03:00
Juan Martín Sotuyo Dodero
8fe2befbbc Add a proper test case 2017-10-26 13:11:39 -03:00
Juan Martín Sotuyo Dodero
ae2898e238 [java] Properly handle 0-arg calls
- We no longer take all methods as applicable for a 0-arg method call
during type resolution.
2017-10-26 12:23:44 -03:00
Juan Martín Sotuyo Dodero
71200e6a67 Default to reduce to false for the time being 2017-10-26 10:06:18 -03:00
Juan Martín Sotuyo Dodero
92cc66a8cd Checkstyle fixes 2017-10-26 01:13:04 -03:00
Juan Martín Sotuyo Dodero
9d59c0317c [java] Fix boxing rules
- Boolean types were not considered since we were using the
subtypability set which deals exclusively with numeric types
 - Fixes #650
2017-10-26 00:54:47 -03:00
Juan Martín Sotuyo Dodero
eb22ab194c Update changelog, refs #603 2017-10-25 18:06:34 -03:00
Juan Martín Sotuyo Dodero
1308b2c7fa [core] Changes to execution classpath invalidate cache
- Resolves #603
2017-10-25 18:03:13 -03:00
Juan Martín Sotuyo Dodero
ebeab0f445 [java] Simplify ForLoopShouldBeWhileLoop
- Remove checks that will always be true (a node can't be a Type and
a Statement and an Expression at the same time)
 - Simplify count(*) > 1 checks (expensive) for an Expression check (the one
node we actually care about)
2017-10-25 12:57:35 -03:00
Juan Martín Sotuyo Dodero
20093c809a Rework ruleset loading
- ResourceLoader is now instantiable, and we can tell which classloader
to use to get resources
 - We will always use the execution classloader, or just add the paths
added by ant, but *never* the auxclasspath
 - The classpath added by Ant won't get into the auxclasspath either
2017-10-24 18:07:09 -03:00
Juan Martín Sotuyo Dodero
042b1bda02 [java] Handle properly reduction incompatibilities
- When a reduce operation return null (it's incompatible), we should
handle it properly instead of producing a NPE.
2017-10-24 00:13:01 -03:00
Juan Martín Sotuyo Dodero
42d965844f Avoid duplicate code 2017-10-23 17:46:21 -03:00
Juan Martín Sotuyo Dodero
96bb1f4bc7 [core] Support parent-last classloading
- We will now always load classes from auxclasspath during
typeresolution, even if we have a class with the same name in PMD's
classpath
 - This prevents conflicts when using different versions of the same
dependencies
2017-10-23 14:23:05 -03:00
Juan Martín Sotuyo Dodero
2d15c6dba6 Merge branch 'pr-661' 2017-10-19 00:42:27 -03:00
Juan Martín Sotuyo Dodero
91bf92fe26 Update changelog, refs #661 2017-10-18 23:59:07 -03:00
Juan Martín Sotuyo Dodero
8ef0d6989c Move AvoidHardcodingIdRule to style ruleset 2017-10-18 23:58:44 -03:00
Juan Martín Sotuyo Dodero
e3f9c728d7 content update 2017-10-18 23:51:01 -03:00
Juan Martín Sotuyo Dodero
b9e76ab28f Merge branch 'pr-675' 2017-10-18 11:45:41 -03:00
Juan Martín Sotuyo Dodero
fded4f140f Update changelog, refs #675 2017-10-18 11:45:26 -03:00
gonzalo
c00400ef77 Fix try with final resource 2017-10-18 08:50:06 -03:00
Travis CI (pmd-bot)
53210842c8 Update documentation 2017-10-17 16:59:20 +00:00
Juan Martín Sotuyo Dodero
fc3da283bd Merge branch 'pr-666' 2017-10-17 13:43:52 -03:00
Juan Martín Sotuyo Dodero
92f1cdd923 Update changelog, refs #666 2017-10-17 13:42:28 -03:00
Juan Martín Sotuyo Dodero
30aa7fca11 Add DoNotExtendJavaLangThrowable to release ruleset 2017-10-17 13:35:45 -03:00
Juan Martín Sotuyo Dodero
2e3e884426 Merge branch 'pr-665' 2017-10-17 13:13:06 -03:00