Juan Martín Sotuyo Dodero
932ad7dd2b
Reduce memory allocations during symbol table
2017-01-03 12:07:30 +01:00
Juan Martín Sotuyo Dodero
b950929b7c
Improve symboltable codebase
...
- Move shared code to pmd-core
- Allow search methods to stop searching when they want to
- If we are looking for a variable declaration, just search among those and not all name declarations
- This is roughtly another 10% improvement on symbol table performance
2017-01-03 11:22:42 +01:00
Juan Martín Sotuyo Dodero
b937ebd80f
Add new rule to release
2017-01-02 15:28:11 -03:00
Juan Martín Sotuyo Dodero
2aacbca341
Add ApexDangerousMethods to releases/553.xml
2016-12-13 10:04:33 -03:00
Andreas Dangel
220a1f98a8
Update releases/553.xml ruleset
2016-12-03 19:08:34 +01:00
Juan Martín Sotuyo Dodero
c296560921
Make ClasspathClassLoader parallel capable
...
- It's just a bunch of static methods with no state on a URLClassLoader
- We should probably review if this class makes sense at all, or should
be replaced with helper methods on top of PMDASMClassLoader
2016-12-03 19:00:32 +01:00
Juan Martín Sotuyo Dodero
268c62e772
Symbol table can now handle inner classes
...
- Types are now attempted to be resolved as inner classes if public attempt fails
- ClassScope offers a `resolveType` method that qualifies the name as per local rules
before resolution
2016-11-26 19:53:53 +01:00
Andreas Dangel
987ba1931c
Merge branch 'pr-130' into pmd/5.5.x
2016-11-26 17:15:58 +01:00
Juan Martín Sotuyo Dodero
eca1f7c8ef
Remove synchronization from RuleContext
2016-11-26 17:07:05 +01:00
Juan Martín Sotuyo Dodero
87f26e57e7
Use a LRU cache in SaxonXPathRuleQuery
2016-11-26 17:07:05 +01:00
Juan Martín Sotuyo Dodero
49e3de4a06
Allow concurrency in AttributeAxisIterator
2016-11-26 17:03:32 +01:00
Andreas Dangel
f3c919bf6e
Add the new apex rules to the releases ruleset for 5.5.3
2016-11-21 21:24:24 +01:00
Andreas Dangel
8e0effd917
Merge branch 'bug-1518' into pmd/5.5.x
2016-11-20 18:04:48 +01:00
Juan Martín Sotuyo Dodero
e4dc70c5d5
[java] Properly handle enums with ignore identifiers
...
- Right now it throws an NPE
- Having fixed the NPE, it threw an ArrayIndexOutOfBounds
- Finally, it was just not working as expected
- Fixes https://sourceforge.net/p/pmd/bugs/1542/
2016-11-14 20:06:41 +01:00
Andreas Dangel
5f13cc20e9
[maven-release-plugin] prepare for next development iteration
2016-11-05 11:02:08 +01:00
Andreas Dangel
96fffcaadd
[maven-release-plugin] prepare release pmd_releases/5.5.2
2016-11-05 11:02:08 +01:00
Andreas Dangel
e78f80416a
[maven-release-plugin] prepare for next development iteration
2016-11-04 21:01:18 +01:00
Andreas Dangel
5019eb11e4
[maven-release-plugin] prepare release pmd_releases/5.4.3
2016-11-04 21:01:18 +01:00
Andreas Dangel
cec3e1a2ad
plsql: add new rule "MisplacedPragma"
...
#1539 [plsql] Create new rule for strict syntax checking: MisplacedPragma
2016-11-04 11:19:52 +01:00
Andreas Dangel
9be65ef2eb
Add unit test for #1537 Implement strict ruleset parsing
2016-11-01 18:30:39 +01:00
Andreas Dangel
c6680e2f66
Merge branch 'better-collections' of https://github.com/Monits/pmd into pr-116
2016-10-30 18:25:35 +01:00
Juan Martín Sotuyo Dodero
42277d7b8d
Simplify collection expressions
2016-10-13 17:17:17 -03:00
Juan Martín Sotuyo Dodero
df9893099f
No PMD version supports running on JRE5 anymore
...
- Remove dead code to guard against JRE5 issues
2016-10-13 01:59:19 -03:00
Juan Martín Sotuyo Dodero
61b55bd7e5
Minor improvements
...
- Use `Deque` and `ArrayDeque` instead of `Stack`
- Use presized `ArrayList` instead of a dynamic `LinkedList` when possible
- Don't create empty `HashSet` when `Collections.emptySet()` suffices
- User `Collections.singletonList()` were apropriate
2016-10-13 01:53:47 -03:00
Andreas Dangel
2fc01fedb5
Add readme
2016-09-06 21:10:56 +02:00
Andreas Dangel
3e43fd8eb1
Update (old) changelog for new rules with PMD 5.5.1
2016-07-28 19:44:04 +02:00
Andreas Dangel
6746b7522c
[maven-release-plugin] prepare for next development iteration
2016-07-27 20:40:56 +02:00
Andreas Dangel
cc3ad9aeb7
[maven-release-plugin] prepare release pmd_releases/5.5.1
2016-07-27 20:40:56 +02:00
Andreas Dangel
20c4f168c1
Merge branch 'close-read-files' of https://github.com/wolfs/pmd into pr-104
2016-07-26 22:10:15 +02:00
Andreas Dangel
39a9d99710
#1508 - Only close the classloader if its ours
2016-07-26 21:59:15 +02:00
Andreas Dangel
a491cef61c
Merge branch 'bug-1508'
2016-07-26 21:56:14 +02:00
Andreas Dangel
7578875cbd
#1508 - Only close the classloader if its ours
2016-07-26 21:49:33 +02:00
Andreas Dangel
42a5c6a537
Merge branch 'bug-1508' into pmd/5.4.x
2016-07-26 21:42:55 +02:00
Andreas Dangel
d76b689c07
Fixes #1508 [core] [java] PMD is leaking file handles
...
Closes class loader after PMD has processed all files
2016-07-25 21:42:21 +02:00
Andreas Dangel
293731f009
Fixes #1508 [core] [java] PMD is leaking file handles
...
Closes class loader after ant task is finished
2016-07-25 21:34:40 +02:00
Andreas Dangel
88d1823c2e
Fixes #1508 [core] [java] PMD is leaking file handles
...
Fixes InputStreams and Readers
2016-07-25 21:25:34 +02:00
Stefan Wolf
23bee1cad1
Close the created URLClassLoader
when finishing the Ant task
2016-07-25 14:08:04 +02:00
Stefan Wolf
aafceb8d89
Close InputStreams for rule sets
...
When having a long running process like the Gradle daemon,
then not closing read resources makes it impossible to delete
files on Windows.
2016-07-25 13:20:56 +02:00
Andreas Dangel
e95faa9f28
Merge branch 'bug-1499'
2016-07-02 17:00:43 +02:00
Andreas Dangel
e25bd5e9c1
Merge branch 'bug-1499' into pmd/5.4.x
2016-07-02 16:54:50 +02:00
Andreas Dangel
553cafff6e
Fixes #1499 [core] CPD test break PMD 5.5.1 build on Windows
2016-07-02 16:48:46 +02:00
Andreas Dangel
ef2a97d267
[maven-release-plugin] prepare for next development iteration
2016-06-25 17:53:11 +02:00
Andreas Dangel
64d9ef96fc
[maven-release-plugin] prepare release pmd_releases/5.5.0
2016-06-25 17:53:10 +02:00
Andreas Dangel
8ab06f3f9e
core - CSVRenderer: add unit test for escaping filenames ( #100 )
2016-06-25 09:07:21 +02:00
Michael Sive
3810074e69
escape filenames with commas in csvrenderer
2016-06-15 01:18:58 +00:00
Andreas Dangel
bee5991121
Add unit test for inputfilepath parameter
2016-06-12 19:38:54 +02:00
mrb
363d066f23
Update docs and use better File functions
2016-06-09 15:57:04 -04:00
mrb
c2b8e1872d
Add option for PMD command line for a comma delimited list of files
2016-06-09 13:57:03 -04:00
Andreas Dangel
0e105af2c0
Extend unit test for #1491 with quotes
2016-06-08 20:13:28 +02:00
Andreas Dangel
fb5e59cc23
Formatting, whitespace
2016-06-08 20:04:19 +02:00