1
0
forked from phoedos/pmd

375 Commits

Author SHA1 Message Date
Clément Fournier
a11f45e511 Cleanup spec 2020-09-17 22:54:59 +02:00
Clément Fournier
155a895a93 Move charstream 2020-09-17 22:54:20 +02:00
Clément Fournier
e93e5b0a4c Move into .io package 2020-09-17 22:43:29 +02:00
Clément Fournier
1f8c5b65b3 Better implementation for appendSuffix 2020-09-17 22:41:16 +02:00
Clément Fournier
95bac5eb95 Convert CharStream to class 2020-09-17 22:41:16 +02:00
Clément Fournier
316efda06f Fix some things 2020-09-17 22:36:18 +02:00
Clément Fournier
13879c9b94 Make RootNode have a text document 2020-09-17 22:33:00 +02:00
Clément Fournier
959b70fabd Cleanup javascript builder 2020-09-17 22:31:12 +02:00
Clément Fournier
7ac1e1478e Fix tests 2020-09-17 22:31:10 +02:00
Clément Fournier
8df0f9c1e4 Make getReportLocation abstract 2020-09-17 22:30:50 +02:00
Clément Fournier
a79f984390 Rename to avoid conflict with dom API 2020-09-17 22:28:59 +02:00
Clément Fournier
7d242718bd Merge branch '7.0.x' into analysis-listener 2020-09-14 15:09:54 +02:00
Andreas Dangel
9cfe485888 Merge branch 'pr-2746' into pmd/7.0.x
[core, ...] Finish generic visitors 

Fixes 
2020-09-13 09:49:14 +02:00
Andreas Dangel
7605a669a7 Merge branch 'pr-2742' into pmd/7.0.x
[core] Remove deprecated things about rules 
2020-09-13 09:22:02 +02:00
Clément Fournier
f5e4a0f81c Merge branch 'master' into 7.0.x 2020-09-13 01:49:45 +02:00
Clément Fournier
a43dea916d Fix JS tests
Rewrite assertions for better error messages
The difference is 32 tokens instead of 30;
this is because previously, AnyTokenizer
tokenized `window.alert` as a single token. Now
it tokenizes it a `window`, `.`, `alert`.
2020-09-03 11:40:03 +02:00
Andreas Dangel
c59af0aee6 [maven-release-plugin] prepare for next development iteration 2020-08-31 18:30:18 +02:00
Andreas Dangel
856950f0d2 [maven-release-plugin] prepare release pmd_releases/6.27.0 2020-08-31 18:30:09 +02:00
Clément Fournier
6e36a20dd1 Better error handling
Checkstyle + pmd
2020-08-31 08:35:07 +02:00
Clément Fournier
df9f53afa9 Cleanup 2020-08-31 08:34:25 +02:00
Clément Fournier
c7d88ec506 Some sugar 2020-08-31 08:34:25 +02:00
Clément Fournier
094ce26227 Make nodes have access to file name 2020-08-31 08:34:14 +02:00
Clément Fournier
e7e6793eb3 Make nodes have access to their language version 2020-08-31 08:34:14 +02:00
Clément Fournier
c66b3e8fa9 Remove report listeners 2020-08-31 08:34:14 +02:00
Clément Fournier
dafe49f84a Analysis listener
Big cleanup of RuleContext, RuleViolationFactory API

Somewhat depends on text documents (FileLocation actually)
2020-08-31 08:34:13 +02:00
Clément Fournier
08b19dbcdd Simplify source code processor, change Parser
Remove some stuff with parser options

Get rid of SourceCodeProcessor

Seal processor hierarchy
2020-08-31 08:34:13 +02:00
Clément Fournier
80e9f48ed9 Add a hook for nodes to callback if the visitor is incorrect 2020-08-26 19:10:32 +02:00
Clément Fournier
5f8e5fc1ff Remove ImmutableLanguage 2020-08-25 15:23:22 +02:00
Clément Fournier
37bd0db6b0 Merge branch 'remove-old-stuff' into 7.0.x 2020-08-23 17:59:27 +02:00
Clément Fournier
d5f48c4741 Merge branch '7.0.x' into update-saxon-version 2020-08-23 17:45:21 +02:00
Clément Fournier
9c82dd11ef Fix merge (build passes) 2020-08-23 16:53:40 +02:00
Clément Fournier
b2c8892d26 Merge branch 'generic-visitor-js' into 7.0.x 2020-08-23 16:44:27 +02:00
Andreas Dangel
2b1d071930 Fix tests due to endColumn changes 2020-08-21 12:38:37 +02:00
Andreas Dangel
ab489832fe Merge branch 'master' into pmd/7.0.x 2020-08-21 11:51:54 +02:00
Andreas Dangel
89140d86ce Merge branch 'master' into pr-2656 2020-08-20 09:47:16 +02:00
Clément Fournier
37b9bfabaf Remove other specific XPath rules 2020-08-10 11:59:38 +02:00
Clément Fournier
1e85519045 Merge branch '7.0.x' into update-saxon-version 2020-08-08 02:54:04 +02:00
Clément Fournier
daa51685ec Make JS visitor generic 2020-08-07 03:00:49 +02:00
Clément Fournier
cbef6a8b7e Merge branch '7.0.x' into remove-old-stuff 2020-08-03 23:25:42 +02:00
Clément Fournier
c554aceba6 Merge branch 'master' into 7.0.x 2020-08-03 23:06:21 +02:00
Andreas Dangel
40f954f81a Merge branch 'pr-2675'
[core] Deprecate parser options 
2020-08-02 16:53:24 +02:00
Clément Fournier
3d4f709009 Merge branch '7.0.x' into remove-old-stuff 2020-07-31 16:02:34 +02:00
Andreas Dangel
384dd20319 Merge branch 'master' into pmd/7.0.x 2020-07-30 11:51:53 +02:00
Andreas Dangel
eb683569af Merge branch 'pr-2617'
[core] Deprecate missing language attribute on rule definition 
2020-07-30 10:19:03 +02:00
Clément Fournier
4c11082574 Cleanup report 2020-07-29 18:04:56 +02:00
Clément Fournier
25d59beb37 Revert changes to apex rules
Someone may be using those properties, this would
be a breaking change
2020-07-28 14:26:06 +02:00
Clément Fournier
151a56cfa0 Deprecate other custom XPath rules 2020-07-28 14:26:06 +02:00
Andreas Dangel
49ab75aeb7 [maven-release-plugin] prepare for next development iteration 2020-07-25 13:45:36 +02:00
Andreas Dangel
a9632e2a06 [maven-release-plugin] prepare release pmd_releases/6.26.0 2020-07-25 13:45:27 +02:00
Maikel Steneker
6fb5ac59b9 Ensure CPD uses tab width of 1 for tabs consistently
The columns that are reported by CPD were inconsistent across languages
before. A language like Java (using a JavaCC-based tokenizer) would use
a width of 8 for tabs, whereas a language like C# (using an Antlr-based
tokenizer) would use 1 instead.

This includes unit tests for most languages to ensure a tab character is
counted as 1. The configuration for JavaCC has been adjusted to respect
this as well.
2020-07-20 10:42:21 +02:00