865 Commits

Author SHA1 Message Date
8d381daeb3 Merge branch 'pr-669' 2017-11-04 19:40:14 -03:00
5d6a03612e Rename builder method 2017-11-04 19:19:39 -03:00
e7e5e13a7d Merge branch 'pr-703' 2017-11-04 18:18:13 -03:00
e064efbad3 [apex] Move AvoidHardCodingId Rule to errorprone 2017-11-04 20:16:04 +01:00
d0b3845ba0 Consider renamed rule MisleadingVariableName in RuleSetFactoryCompatibility 2017-11-04 19:57:31 +01:00
e1a588f499 Merge branch 'master' into ruleset-categories 2017-11-04 19:53:21 +01:00
04c8d0a6c9 Merge branch 'pr-687' 2017-11-04 19:40:56 +01:00
e9425e34d8 [apex] Reorganize rules into categories 2017-11-03 14:05:40 +01:00
c9952e613c [core] fix references to new rules for v6.0.0 2017-11-03 12:04:45 +01:00
fc0cb45f49 Merge branch 'master' into properties-builder 2017-11-01 18:21:54 +01:00
6b50104cb5 Corrections for PR #669 2017-11-01 18:17:57 +01:00
63a35c2967 Merge branch 'master' of https://github.com/pmd/pmd into fx-designer 2017-11-01 15:29:32 +01:00
c466179c2a Handle SecurityErrors on bad auxclasspath entries 2017-10-31 01:53:03 -03:00
9348c54afb Fix PR - 1
- Remove unnecessary asserts for checking setup
- Improve `for` loop performance in AbstractNode.removeChildAtIndex method
- Remove unnecessary detachment of the node being removed children
2017-10-30 15:39:16 -03:00
42973c4291 [java] Reorganize rulesets into new categories
Best Practices, Code Style, Design, Documentation, Error Prone,
Multithreading, Performance, Security
2017-10-29 21:11:59 +01:00
2466ba7163 Add remove & removeChildAtIndex to Node interface
- Implement these methods at AbstractNode.
- Add AbstractNodeTest class with test cases for the implemented methods.
  - Add JUnitParams dependency: https://github.com/Pragmatists/JUnitParams
  - Implement these test cases using JUnitParams features
2017-10-29 13:18:06 -03:00
91b8a22b42 Update GenericToken specialToken method to obtain only comment tokens 2017-10-28 14:42:44 -03:00
e8fdbdbca4 Update GenericToken interface to expose directly region methods 2017-10-28 14:42:44 -03:00
26461e59c1 Simplify method name in GenericToken && improve ant task replacetoken 2017-10-28 14:42:44 -03:00
95835b8134 Update getter in GenericToken 2017-10-28 14:42:44 -03:00
00ed0a1eab Add RegionByLineImpl javadoc 2017-10-28 14:42:44 -03:00
2d01332635 Convert GenericToken from class to interface && Add RegionByLine 2017-10-28 14:42:44 -03:00
1308b2c7fa [core] Changes to execution classpath invalidate cache
- Resolves #603
2017-10-25 18:03:13 -03:00
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
42d965844f Avoid duplicate code 2017-10-23 17:46:21 -03:00
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
fc3da283bd Merge branch 'pr-666' 2017-10-17 13:43:52 -03:00
30aa7fca11 Add DoNotExtendJavaLangThrowable to release ruleset 2017-10-17 13:35:45 -03:00
2e3e884426 Merge branch 'pr-665' 2017-10-17 13:13:06 -03:00
4f2c7960e6 Update changelog, refs #668 2017-10-16 21:18:06 +02:00
a986e38b3d Merge branch 'master' of https://github.com/pmd/pmd into fx-designer 2017-10-16 13:54:30 +02:00
c50311bd85 Correct formatter 2017-10-16 00:08:56 +02:00
a47471f742 Replace IntegerProperty 2017-10-15 22:22:36 +02:00
d891fe048a Fix javadoc warnings on pmd-core 2017-10-15 22:07:34 +02:00
13f3651048 Cleanup 2017-10-15 21:56:09 +02:00
57631bfb30 Few PoCs 2017-10-15 19:59:58 +02:00
12855d3cf2 Fix tests 2017-10-15 18:02:24 +02:00
6295a96783 Refactored everything 2017-10-15 17:50:02 +02:00
2c16faff36 Refactor numeric properties 2017-10-15 16:45:26 +02:00
2d449dbef6 Full builder hierarchy 2017-10-15 16:30:14 +02:00
610cd21a9c Clarify design 2017-10-15 15:58:23 +02:00
2e272c3f7b More mature design w/ small PoC 2017-10-15 14:42:44 +02:00
aff5f20112 Draft of builders 2017-10-15 13:08:47 +02:00
944b2f448b [java] Move rule SignatureDeclareThrowsException from typeresolution to strictexception
Replace existing rule with the typeresolution-based implementation.
2017-10-13 14:04:27 +02:00
8470d32322 [java] Move rule UnusedImports from typeresolution to imports
Replace existing rule with the typeresolution-based implementation.
2017-10-13 12:54:26 +02:00
a89d449169 [java] Move rule CloneMethodMustImplementCloneable from typeresolution to clone
Replace existing rule with the typeresolution-based implementation.
2017-10-13 12:37:04 +02:00
2ef082ae19 [java] Move rule LooseCoupling from typeresolution to coupling
Replace existing rule with the typeresolution-based implementation.
2017-10-13 12:36:36 +02:00
a81d142317 [core] Avoid a phony warning about not using cache
- Avoid creating a NoopAnalysisCache by default to prevent a phony
warning about not using the cache being printed.
 - This way, we only produce a new instance lazily if not configured,
preserving the same behaviour bu without the warning.
2017-10-10 00:46:07 -03:00
6000bcb2e2 Merge branch 'pr-660' 2017-10-09 15:51:11 -03:00
4dcef95e43 Add new apex-performance/AvoidSoslInLoops rule to 600 ruleset 2017-10-09 15:44:20 -03:00