116 Commits

Author SHA1 Message Date
Clément Fournier
903383d7cf Merge branch 'master' into 7.0.x 2020-03-17 15:14:46 +01:00
Clément Fournier
138c0e3e86 Deprecate tokManagers for more module 2020-03-17 15:08:58 +01:00
Clément Fournier
ec1eb208eb Merge branch 'master' into 7.0.x 2020-01-24 23:48:22 +01:00
Clément Fournier
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00
Andreas Dangel
b02ab00e87 Merge remote-tracking branch 'origin/master' into pmd/7.0.x 2020-01-24 19:18:17 +01:00
Andreas Dangel
5feca7fd93 Exclude generated AST*.java files from internalization 2020-01-24 16:19:24 +01:00
Clément Fournier
60e97d0ec8 Deprecate javacc generated code 2020-01-22 17:19:29 +01:00
Clément Fournier
b5b0bcb921 Replace more direct usages of parser 2020-01-19 08:36:35 +01:00
Clément Fournier
7756ad9de0 Merge branch 'master' into 7.0.x 2020-01-17 16:09:45 +01:00
Andreas Dangel
4450d826f7 Merge branch 'pr-2225'
[core] CPD: report endLine / column informations for found duplications
2020-01-17 14:59:02 +01:00
Andreas Dangel
817c3d1127 CPD: Remove deprecations in Mark / TokenEntry
* Provide these values for more languages
2020-01-17 14:47:23 +01:00
Clément Fournier
ecef88aa0a Merge branch 'master' into 7.0.x 2020-01-17 12:10:51 +01:00
Clément Fournier
d9ad819dab Replace usages of node methods everywhere 2020-01-17 11:57:19 +01:00
Andreas Dangel
f53993427c Merge branch 'pr-2172'
[core] Deprecate jjtree methods from the Node interface
2020-01-17 08:18:50 +01:00
Clément Fournier
99700d7526 Extract changes from #2166 to 7.0.x
* Make Java nodes text-available
* Introduce shared JavaccToken in pmd-core
* Use factory to produce char streams

Tests are still on java-grammar,
since they use the DSL & newer
AST structure.

This is to prepare for other changes
that concern all javacc languages and
should not be done on java-grammar
2020-01-10 21:15:15 +01:00
Andreas Dangel
ea86a23b73 Merge branch 'master' into pmd/7.0.x 2020-01-10 14:41:27 +01:00
Andreas Dangel
c53d9508e9 Small changes from code review
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
Andreas Dangel
4269fd1b73 Refactor tests for javascript, jsp, plsql, scala, visualforce, xml
using BaseParsingHelper

Revert "REVERT ME Remove some diff"

This reverts commit f72810088d2c7f3c29fbde185b25cfc72fc1fbcc.
2020-01-10 12:12:34 +01:00
Clément Fournier
f72810088d REVERT ME Remove some diff 2019-12-20 18:32:47 +01:00
Clément Fournier
8afe5ae7a8 Abstract away parser utils
Convert a few pieces of code

Share with modelica

Remove yet another dup

Fix tests

Doc

Share with plsql

Fix tests

Fix build

Cleanup

Minimize diff

Share with JSP module

Share with JS module

Share with XML module

Share with VisualForce module

Share with Scala module

Fix last tests
2019-12-20 18:30:17 +01:00
Clément Fournier
1aabc53fa2 Deprecate childrenAccept in all modules 2019-12-17 17:39:13 +01:00
Clément Fournier
eb6ceef085 Add comments and update release notes 2019-12-05 15:23:07 +01:00
Clément Fournier
bb7478cd0a Deprecate RuleViolationFactory impls
Internal APIs
2019-12-05 15:18:35 +01:00
Clément Fournier
3d6f660700 Checkstyle 2019-10-09 19:51:01 +02:00
Clément Fournier
d0a3174f20 Remove useless violation factories 2019-10-07 00:03:09 +02:00
Clément Fournier
c29f1a6b84 Remove suppress map 2019-10-07 00:03:00 +02:00
Clément Fournier
6b3e4f1b34 WIP3 2019-10-07 00:02:01 +02:00
Clément Fournier
2d74ec4012 Merge branch 'wire-processing-stages' into 7.0.x 2019-10-05 15:58:47 +02:00
Clément Fournier
4890905699 Remove Parser#canParse 2019-09-24 09:13:15 +02:00
Clément Fournier
713d09190e Merge branch '7.0.x' into wire-processing-stages 2019-09-06 15:20:12 +02:00
Clément Fournier
6f4123afcc Annotated overriding #getDumpFacade as Deprecated 2019-05-02 16:22:04 +02:00
Clément Fournier
113ad74ddb refactor: Make the children array never null 2019-05-01 12:40:11 +02:00
Andreas Dangel
1c9a73426c deprecate: DumpFacade will be removed in PMD 7
Refs #1801
2019-05-01 11:38:35 +02:00
Clément Fournier
7d6a6dd146 Fix some root nodes not being RootNode 2019-04-30 01:01:39 +02:00
Juan Martín Sotuyo Dodero
f21f5c8bd6 Remove unused imports 2019-04-28 20:36:35 -03:00
Clément Fournier
038ca21376 Remove dump façade 2019-04-27 15:47:54 +02:00
Clément Fournier
6d84530d52 Merge branch 'master' into 7.0.x 2019-02-18 19:32:55 +01:00
Andreas Dangel
89c8f47b2b Move JavaCCTokenizer to internal package 2019-01-26 19:19:46 +01:00
Andreas Dangel
08b7dd49dd [core] Add a generic JavaCCTokenizer for CPD 2019-01-26 11:24:32 +01:00
Andreas Dangel
b745f331b8 CPD: Fix error handling for lexical errors
* TokenMgrError must not be caught by the tokenizer. This is handled
  by CPD itself
* The token managers need to know the filename for proper error messages
2019-01-20 10:18:56 +01:00
Clément Fournier
12b647c548 Merge branch 'master' into 7.0.x
Conflicts:
	pmd-apex-jorje/pom.xml
	pmd-apex/pom.xml
	pmd-core/pom.xml
	pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageVersionHandler.java
	pmd-core/src/main/java/net/sourceforge/pmd/util/designer/Designer.java
	pmd-cpp/pom.xml
	pmd-cpp/src/main/java/net/sourceforge/pmd/lang/cpp/CppHandler.java
	pmd-cs/pom.xml
	pmd-dist/pom.xml
	pmd-doc/pom.xml
	pmd-fortran/pom.xml
	pmd-go/pom.xml
	pmd-groovy/pom.xml
	pmd-java/pom.xml
	pmd-java8/pom.xml
	pmd-javascript/pom.xml
	pmd-jsp/pom.xml
	pmd-kotlin/pom.xml
	pmd-lang-test/pom.xml
	pmd-matlab/pom.xml
	pmd-matlab/src/main/java/net/sourceforge/pmd/lang/matlab/MatlabHandler.java
	pmd-objectivec/pom.xml
	pmd-objectivec/src/main/java/net/sourceforge/pmd/lang/objectivec/ObjectiveCHandler.java
	pmd-perl/pom.xml
	pmd-php/pom.xml
	pmd-plsql/pom.xml
	pmd-python/pom.xml
	pmd-python/src/main/java/net/sourceforge/pmd/lang/python/PythonHandler.java
	pmd-ruby/pom.xml
	pmd-scala/pom.xml
	pmd-swift/pom.xml
	pmd-test/pom.xml
	pmd-ui/pom.xml
	pmd-visualforce/pom.xml
	pmd-vm/pom.xml
	pmd-xml/pom.xml
	pom.xml
2018-12-13 18:53:10 +01:00
Clément Fournier
4962bc2831 Remove usages of EnumeratedProperty 2018-12-06 15:21:00 +01:00
Clément Fournier
81c9d39bd8 Remove most usages of BooleanProperty 2018-12-04 13:49:35 +01:00
Clément Fournier
725f8d7039 Merge branch 'master' into 7.0.x 2018-11-27 18:09:31 +01:00
Andreas Dangel
e735ee0f84 Dogfood - IdenticalCatchBranches, AvoidFileStream 2018-11-25 16:00:47 +01:00
Clément Fournier
5eb1d23a38 Create system to declare processing stages in an extensible fashion 2018-11-02 07:39:16 +01:00
Clément Fournier
b62b216b29 Merge branch 'pr-1399' 2018-10-27 22:55:10 +02:00
Clément Fournier
39f87ca5f3 Update schema location in rulesets 2018-10-27 21:02:16 +02:00
Will Herrmann
377baf7caf Replacing IOUtils.closeQuietly(foo) with try-with-resources statements 2018-10-19 14:23:51 -05:00
Andreas Dangel
1f7c827323 Merge branch 'master' into unit-test-split 2018-10-05 20:39:22 +02:00