516 Commits

Author SHA1 Message Date
Clément Fournier
57112e4f4d Pass language registry in configuraiton 2020-07-29 15:35:37 +02:00
Clément Fournier
1ce585aafb Remove many static usages of LanguageRegistry 2020-07-29 15:35:16 +02:00
Clément Fournier
d650c87d8d Remove more utils 2020-07-28 12:51:55 +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
Andreas Dangel
a84c83adea Merge branch 'master' into pmd/7.0.x 2020-07-24 12:03:28 +02:00
Andreas Dangel
6464b349cf [jsp] Remove usage of deprecated ImportWrapper (#2658) 2020-07-24 11:38:37 +02:00
Andreas Dangel
a9996ab45c Merge branch 'pr-2589' into pmd/7.0.x
[core] Add generic visitor interface in pmd-core #2589
2020-07-19 18:07:55 +02:00
Andreas Dangel
dcaa8a1167 Merge branch 'master' into pmd/7.0.x 2020-07-17 16:13:02 +02:00
Andreas Dangel
7b3d31246e Merge branch 'master' into pr-2624 2020-07-17 15:16:24 +02:00
Andreas Dangel
7ae424a35b Add deprecation javadocs 2020-07-17 14:43:43 +02:00
Andreas Dangel
94afdb117d Add test engines as surefire plugin dependencies
This removes junit-vintage-engine as a test dependency
as well as kotlintest-runner-junit5.
The engines are only needed during test execution, but should
not be available for test compilation.

For this to work, the latest surefire plugin is required.
2020-07-17 12:03:45 +02:00
Clément Fournier
8add323403 Fix other offenders 2020-07-06 14:02:21 +02:00
Andreas Dangel
370c0b0b6d Remove unused dependency, explicitly declare used dependencies 2020-07-02 15:12:31 +02:00
Andreas Dangel
c7ccb8a087 javacc is only needed during parser generation 2020-07-02 10:27:26 +02:00
Clément Fournier
49635c2a66 Deprecate Rulechain visitors 2020-07-01 11:27:38 +02:00
Clément Fournier
659066ee02 Deprecate BaseLanguageModule constructor 2020-07-01 11:27:38 +02:00
Clément Fournier
d7f96e08d9 Uniformize apply across languages 2020-07-01 11:27:38 +02:00
Clément Fournier
25beb215fc Throw on incompatible visitor type 2020-07-01 11:16:03 +02:00
Clément Fournier
feeb1f0a87 Fix swift module 2020-07-01 11:09:12 +02:00
Andreas Dangel
95d8e80c1b [maven-release-plugin] prepare for next development iteration 2020-06-27 11:31:27 +02:00
Andreas Dangel
a219b2e1be [maven-release-plugin] prepare release pmd_releases/6.25.0 2020-06-27 11:31:16 +02:00
Clément Fournier
c6457ab9fc Merge branch '7.0.x' into generic-visitor2 2020-06-26 23:10:19 +02:00
Clément Fournier
ad3e8b1fd5 Merge branch '7.0.x' into update-saxon-version 2020-06-26 23:08:50 +02:00
Andreas Dangel
00dbe08282 Merge branch 'pmd/7.0.x' into pr-2490 2020-06-26 10:58:18 +02:00
Clément Fournier
18f5c7f624 Remove xpath version properties in category xmls
Update default version to 3.1
2020-06-25 23:50:43 +02:00
Clément Fournier
847c4de68b Merge branch '7.0.x' into generic-visitor2 2020-06-25 14:30:46 +02:00
Clément Fournier
74f88ace4e Merge branch '7.0.x' into update-saxon-version 2020-06-21 18:07:15 +02:00
Clément Fournier
5b7ed588ea Make CPD end column exclusive
This is to align it with PMD columns,
which in 7.0 are already exclusive.
2020-06-19 02:21:45 +02:00
Clément Fournier
c49d9e315f Merge branch 'master' into 7.0.x 2020-06-19 01:32:32 +02:00
Clément Fournier
88b34feb22 Use wildcards for acceptVisitor 2020-06-17 21:21:00 +02:00
Clément Fournier
47667a0e35 Merge branch '7.0.x' into type-heap 2020-06-14 21:42:38 +02:00
Clément Fournier
b71adce5b9 Merge branch '7.0.x' into update-saxon-version 2020-06-14 14:09:15 +02:00
Clément Fournier
f7b1c375c1 Fix scala compilation 2020-06-14 13:02:30 +02:00
Clément Fournier
b88ddf41c0 Add generic visitor interface in pmd-core
Replace SideEffectingVisitor with JavaVisitor

The new visitor is generic. We don't actually need the
old Object->Object visitor, this could just be the new
generic visitor but erased

Port language level checker

Move delegators

Remove old accept methods

Remove reduced adapter

Cleanup some visitor

Make ant wrapper replace old visitor completely

Doc

Add DeprecatedUntil700 annotation

Add top interface for visitors

Convert JSP visitors

Checkstyle

Fix java module
2020-06-14 11:43:24 +02:00
Clément Fournier
87797f7621 Port JSP tests 2020-06-14 05:27:46 +02:00
Andreas Dangel
c3219b91c5 Merge branch 'master' into pmd/7.0.x 2020-06-12 14:21:10 +02:00
Andreas Dangel
8defb2fde2 Add missing relativePath configuration in all pom modules 2020-06-07 12:36:58 +02:00
Andreas Dangel
510d5c633a Merge branch 'master' into pmd/7.0.x 2020-05-24 17:47:30 +02:00
Andreas Dangel
ab04bdacdd [maven-release-plugin] prepare for next development iteration 2020-05-24 17:34:34 +02:00
Andreas Dangel
229cb2bdca [maven-release-plugin] prepare release pmd_releases/6.24.0 2020-05-24 17:34:25 +02:00
Andreas Dangel
a3a292d591 Remove unnecessary source-type tags in rule tests
source-type is actually only needed if
* the language supports more than one version
* the parser behaves differently with different versions
  (this has to do with compatibility, e.g. assert/enum keywords
  in java)
* the test needs a newer version than the default version
  (e.g. to test new language features)
* the test needs an older version than the default version
  (e.g. the rule has a maximumLanguageVersion specified)
* the rule behaves differently for different versions
  (e.g. BigIntegerInstantiation)
2020-05-23 14:16:13 +02:00
Andreas Dangel
2dae9c085f Merge branch 'master' into pmd/7.0.x 2020-05-23 11:42:20 +02:00
Clément Fournier
8f13dd82f0 Replace Node#apply(List<Node>) with apply(Node) 2020-05-18 14:57:54 +02:00
Clément Fournier
60d276c2a0 Remove old rulechain impl 2020-05-18 14:57:53 +02:00
Andreas Dangel
7de968a5c9 [jsp] Cleanup rule test xml files
Avoid unnecessary CDATA for description
Use 4 space indentation instead of tabs
Remove trailing whitespace
End file with a newline
2020-05-16 18:56:05 +02:00
Clément Fournier
d39378eb71 Merge branch '7.0.x' into update-saxon-version 2020-05-08 03:43:40 +02:00
Clément Fournier
1a6d7b393c Add a type parameter to AbstractNode 2020-04-26 19:04:31 +02:00
Clément Fournier
cda02a2754 Update saxon version
Remove Jaxen, port function defs

Use enum to represent XPath version

Move to internal package

Fix style

Refactor functions
2020-04-24 13:59:08 +02:00
Andreas Dangel
4308c545e5 [maven-release-plugin] prepare for next development iteration 2020-04-24 10:53:12 +02:00
Andreas Dangel
921c65f5ab [maven-release-plugin] prepare release pmd_releases/6.23.0 2020-04-24 10:53:00 +02:00
Clément Fournier
81c3743430 Hide setImage 2020-04-23 21:15:52 +02:00
Clément Fournier
11d7aeb10f Add GenericNode & JjtreeNode interfaces 2020-04-23 19:59:52 +02:00
Andreas Dangel
1c8c631637 Merge branch 'master' into pmd/7.0.x 2020-04-19 21:06:32 +02:00
Andreas Dangel
08d31c62a9 Merge branch 'master' into pr-2377 2020-04-16 17:52:03 +02:00
Clément Fournier
bcf90ceb8a Externalize creator for XPath rule 2020-04-08 21:35:34 +02:00
Clément Fournier
0d65c2e6e6 Add relevant property tag 2020-03-20 18:47:40 +01:00
Clément Fournier
96feed7b83 Do it for the other languages 2020-03-20 18:07:56 +01:00
Clément Fournier
e9b65823bf Cleanup TokenMgrError 2020-03-20 18:07:56 +01:00
Clément Fournier
3cdcba2299 Fix file name for token manager error 2020-03-20 18:07:56 +01:00
Clément Fournier
ee4257d8fc Fix JSP CPD tests
CPD "normalizes" line separators to the
platform-specific separator. This should
be fixed later when we move to TextDocument
2020-03-20 02:58:43 +01:00
Clément Fournier
e577169862 Cleanup some usages of CollectionUtil 2020-03-20 01:32:55 +01:00
Clément Fournier
9a62a662c1 Remove track-tokens for vf, jsp 2020-03-19 17:57:30 +01:00
Clément Fournier
242432237c Use base JJTree class for the JSP parser 2020-03-19 16:45:24 +01:00
Andreas Dangel
02595f846a [jsp] OpenTagRegister is package-private 2020-03-19 15:22:40 +01:00
Andreas Dangel
8268e479dd [jsp] Remove deprecated annotation 2020-03-19 15:16:48 +01:00
Andreas Dangel
8baaef915b [jsp] License headers 2020-03-19 15:16:32 +01:00
Clément Fournier
f767903b0c Checkstyle 2020-03-17 17:25:57 +01:00
Clément Fournier
affb0461c9 Skip bom 2020-03-17 15:53:37 +01:00
Clément Fournier
7108a166d4 Make setters package-private 2020-03-17 15:51:22 +01:00
Clément Fournier
5fe9fb8f52 Make JSP nodes final 2020-03-17 15:47:51 +01:00
Clément Fournier
fd0d53b590 Merge branch '7.0.x' into port-jsp-vf-modules 2020-03-17 15:46:41 +01:00
Clément Fournier
903383d7cf Merge branch 'master' into 7.0.x 2020-03-17 15:14:46 +01:00
Clément Fournier
3ac135640a Merge deprecation sections for all ASTs
Also deprecate JSP token manager
2020-03-17 15:01:56 +01:00
Clément Fournier
e1069b4a33 Fix *ParserVisitor itf being deprecated
refs #2239
2020-03-17 14:42:29 +01:00
Andreas Dangel
4c020bfbf7 [maven-release-plugin] prepare for next development iteration 2020-03-12 15:15:18 +01:00
Andreas Dangel
eb93aaeca7 [maven-release-plugin] prepare release pmd_releases/6.22.0 2020-03-12 15:15:09 +01:00
Andreas Dangel
16cb7767b7 Merge branch 'master' into pmd/7.0.x 2020-03-12 14:03:20 +01:00
Andreas Dangel
ff7dfd9eb6 [jsp] Deprecate AST constructors and setters
Also remove useless javadoc comments and fix license header
2020-03-05 20:13:14 +01:00
Clément Fournier
a9b6e78cfc Normalise line endings in test 2020-02-17 16:59:14 +01:00
Clément Fournier
a69fa93a32 Remove whitespace changes 2020-02-17 08:31:47 +01:00
Clément Fournier
8060e37da4 Restrict visibility of node ctors 2020-02-17 08:06:11 +01:00
Clément Fournier
b5bc047b21 Fix jsp node class visibility 2020-02-17 08:06:11 +01:00
Clément Fournier
c96f9b1734 Fix tests 2020-02-17 08:06:11 +01:00
Clément Fournier
f914319bcb Port JSP module 2020-02-17 08:06:11 +01:00
Clément Fournier
7cd64e4374 Merge branch '7.0.x' into cleanup-language-version-handlers 2020-01-27 10:28:48 +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
Clément Fournier
c27481f815 Trim trailing spaces in XML 2020-01-24 23:08:52 +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
d994700617 [maven-release-plugin] prepare for next development iteration 2020-01-24 17:20:47 +01:00
Andreas Dangel
a28e9e22e5 [maven-release-plugin] prepare release pmd_releases/6.21.0 2020-01-24 17:20:38 +01:00
Andreas Dangel
5feca7fd93 Exclude generated AST*.java files from internalization 2020-01-24 16:19:24 +01:00
Clément Fournier
14a8eeec76 Remove typeres/dfa/multifile stuff 2020-01-23 18:27:29 +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
aa9a9c2bed Merge branch 'master' into 7.0.x 2020-01-19 05:59:09 +01:00
Clément Fournier
27d7a6c02c Accomodate children iterable for specialization 2020-01-19 05:57:39 +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
bb8d612256 Checkstyle 2020-01-15 11:51:41 +01:00
Clément Fournier
820edada4f Add 'children' iterable method to Node interface 2020-01-12 18:18:38 +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
398b683565 Merge branch 'pr-2177'
[lang-test] Factorize parsing logic for tests
2020-01-10 14:07:29 +01:00
Andreas Dangel
cf89b742b0 Merge branch 'pr-2177'
[lang-test] Factorize parsing logic for tests
2020-01-10 12:29:38 +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
e335e069f8 Merge branch 'master' into deprecate-jjtree-methods 2020-01-05 23:17:25 +01:00
Clément Fournier
0ff87229ff Remove TokenBasedNode
I don't think we should expose tokens as an API
yet. They're an implementation detail, not used
much, and the AST should be able to reflect all
the information that can be found in the tokens.

The methods of AbstractNode can be pulled down
to AbstractJjtreeNode and made protected.
2020-01-05 23:13:04 +01:00
Clément Fournier
0459d0379c Merge branch 'master' into 7.0.x 2020-01-05 20:31:39 +01:00
Clément Fournier
86086bc04a Factorize javacc jar property 2020-01-02 17:41:27 +01:00
Clément Fournier
05870c98cc Deprecate RulesetFactory constructors 2019-12-24 14:39:20 +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
627e258458 Revert 2019-12-17 17:49:01 +01:00
Clément Fournier
86b274c681 Make generic visitor superclass
Use raw supertype to avoid conflicts
2019-12-17 17:39:13 +01:00
Clément Fournier
2f37e1c256 Deprecate jjt* methods 2019-12-17 17:39:13 +01:00
Clément Fournier
1aabc53fa2 Deprecate childrenAccept in all modules 2019-12-17 17:39:13 +01:00
Clément Fournier
98df6bda1c Add TokenBasedNode, AbstractJjtreeNode 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
Andreas Dangel
00392cefc2 [maven-release-plugin] prepare for next development iteration 2019-11-29 19:46:14 +01:00
Andreas Dangel
78da370fb8 [maven-release-plugin] prepare release pmd_releases/6.20.0 2019-11-29 19:46:05 +01:00
Andreas Dangel
deec9c44b2 [maven-release-plugin] prepare for next development iteration 2019-10-31 18:36:51 +01:00
Andreas Dangel
2881b6f585 [maven-release-plugin] prepare release pmd_releases/6.19.0 2019-10-31 18:36:42 +01:00
Clément Fournier
3d6f660700 Checkstyle 2019-10-09 19:51:01 +02:00
Clément Fournier
12d04beb9b Fix some pr comments 2019-10-07 00:03:17 +02:00
Clément Fournier
b270076e13 Remove useless violation factories 2019-10-07 00:03:00 +02:00
Clément Fournier
6b3e4f1b34 WIP3 2019-10-07 00:02:01 +02:00
Clément Fournier
4890905699 Remove Parser#canParse 2019-09-24 09:13:15 +02:00
Andreas Dangel
e536ca1947 [maven-release-plugin] prepare for next development iteration 2019-09-15 10:14:14 +02:00
Andreas Dangel
3f42cca200 [maven-release-plugin] prepare release pmd_releases/6.18.0 2019-09-15 10:14:05 +02:00
Andreas Dangel
7a7971f64d [maven-release-plugin] prepare for next development iteration 2019-07-28 10:24:51 +02:00
Andreas Dangel
365e1c9e8b [maven-release-plugin] prepare release pmd_releases/6.17.0 2019-07-28 10:24:43 +02:00
Andreas Dangel
73a8e4cc69 [maven-release-plugin] prepare for next development iteration 2019-06-30 10:33:08 +02:00
Andreas Dangel
45facbd323 [maven-release-plugin] prepare release pmd_releases/6.16.0 2019-06-30 10:32:58 +02:00
Andreas Dangel
5ac687918a [maven-release-plugin] prepare for next development iteration 2019-05-26 11:02:26 +02:00
Andreas Dangel
ba2d795f59 [maven-release-plugin] prepare release pmd_releases/6.15.0 2019-05-26 11:02:18 +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
Andreas Dangel
ca9c859c0b [maven-release-plugin] prepare for next development iteration 2019-04-28 10:35:44 +02:00
Andreas Dangel
cd8b2e3217 [maven-release-plugin] prepare release pmd_releases/6.14.0 2019-04-28 10:35:36 +02:00
Clément Fournier
038ca21376 Remove dump façade 2019-04-27 15:47:54 +02:00
Andreas Dangel
5818abc0c7 [maven-release-plugin] prepare for next development iteration 2019-03-31 12:07:07 +02:00
Andreas Dangel
4ed549f0b2 [maven-release-plugin] prepare release pmd_releases/6.13.0 2019-03-31 12:06:56 +02:00
Andreas Dangel
4bb1d9327d [maven-release-plugin] prepare for next development iteration 2019-02-24 08:57:18 +01:00
Andreas Dangel
41e77bc34b [maven-release-plugin] prepare release pmd_releases/6.12.0 2019-02-24 08:57:10 +01:00
Andreas Dangel
63cd6d0f5c [maven-release-plugin] prepare for next development iteration 2019-01-27 13:25:00 +01:00
Andreas Dangel
ea2776f70c [maven-release-plugin] prepare release pmd_releases/6.11.0 2019-01-27 13:24:51 +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
Andreas Dangel
dcb8bb42a2 [maven-release-plugin] prepare for next development iteration 2018-12-09 10:42:20 +01:00
Andreas Dangel
27374d8592 [maven-release-plugin] prepare release pmd_releases/6.10.0 2018-12-09 10:42:09 +01:00
Andreas Dangel
d7f5b0b536 Remove clean configuration from (very) old site generation 2018-12-02 10:30:36 +01:00
Clément Fournier
847f2944c0 Checkstyle 2018-11-02 08:40:14 +01:00
Clément Fournier
5eb1d23a38 Create system to declare processing stages in an extensible fashion 2018-11-02 07:39:16 +01:00
Andreas Dangel
38ab2abc46 Merge branch 'master' into pmd/7.0.x 2018-10-28 19:39:32 +01:00
Andreas Dangel
3c50db2439 [maven-release-plugin] prepare for next development iteration 2018-10-28 16:49:09 +01:00
Andreas Dangel
7e4e859c5f [maven-release-plugin] prepare release pmd_releases/6.9.0 2018-10-28 16:48:57 +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
Andreas Dangel
1d48c49c81 Merge branch 'pr-1401' 2018-10-26 18:29:06 +02:00
Andreas Dangel
a5a189b2f3 [jsp] JspTokenManager has a problem about jsp scriptlet
Refs #1402

Add unit test
2018-10-25 20:02:22 +02:00
justprv
7cf231bd01 #1402 ignore quoted jsp end tag 2018-10-23 12:58:25 +04: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
Andreas Dangel
6d00e74142 Use new base class PmdRuleTst for rule tests 2018-10-05 20:33:38 +02:00
Andreas Dangel
d8586382f6 [maven-release-plugin] prepare for next development iteration 2018-09-30 10:10:21 +02:00
Andreas Dangel
161d9cd6d6 [maven-release-plugin] prepare release pmd_releases/6.8.0 2018-09-30 10:10:12 +02:00
Andreas Dangel
52be023f80 Simplify rule tests, directly inherit from SimpleAggregatorTst
for apex, javascript, jsp, plsql, visualforce, vm, xml
2018-09-09 13:10:44 +02:00
Andreas Dangel
8b4cdb83da [jsp] Split the rule tests 2018-09-09 12:01:36 +02:00
Andreas Dangel
291d36d841 [maven-release-plugin] prepare for next development iteration 2018-09-02 14:27:42 +02:00
Andreas Dangel
b98bd0bb96 [maven-release-plugin] prepare release pmd_releases/6.7.0 2018-09-02 14:27:33 +02:00
Andreas Dangel
a2d0b41388 [jsp] add test for jspx extension
Refs #1276
2018-08-06 09:44:06 +02:00
Andreas Dangel
2d87f575d3 Merge branch 'pr-1275' 2018-08-06 09:41:42 +02:00
Juan Martín Sotuyo Dodero
919aa21761 Merge branch 'pr-1277' 2018-08-04 17:59:46 -03:00
jordillachmrf
57cba95386 #1276 add support for jspf and tag extensions 2018-08-01 17:22:43 +02:00
jordillachmrf
543aadad20 #1274 Support EL in tag attributes
Adding support to EL in tag attributes

<font size="2" ${something ? 'class=\"red\"' : ''}>
	<c:out value="some value" />
</font>
2018-08-01 16:27:40 +02:00
Andreas Dangel
20f52700b4 [maven-release-plugin] prepare for next development iteration 2018-07-29 12:07:05 +02:00
Andreas Dangel
868f262c21 [maven-release-plugin] prepare release pmd_releases/6.6.0 2018-07-29 12:06:56 +02:00
Andreas Dangel
444beeb220 [maven-release-plugin] prepare for next development iteration 2018-06-26 09:34:01 +02:00
Andreas Dangel
211002bb34 [maven-release-plugin] prepare release pmd_releases/6.5.0 2018-06-26 09:07:11 +02:00
Andreas Dangel
48d54b0af2 Set version to 7.0.0-SNAPSHOT 2018-06-17 11:08:05 +02:00
Andreas Dangel
5a7bbe19a2 dogfood: fix missing override
Note: the rule is disabled for pmd-xml, refs #1074
2018-06-16 17:48:36 +02:00
Juan Martín Sotuyo Dodero
a788d4b586 [maven-release-plugin] prepare for next development iteration 2018-05-29 13:58:54 -03:00
Juan Martín Sotuyo Dodero
e9d78ede3c [maven-release-plugin] prepare release pmd_releases/6.4.0 2018-05-29 13:58:44 -03:00
Andreas Dangel
85874e7e9c [maven-release-plugin] prepare for next development iteration 2018-04-29 09:54:45 +02:00
Andreas Dangel
10c66fbf38 [maven-release-plugin] prepare release pmd_releases/6.3.0 2018-04-29 09:54:36 +02:00
Andreas Dangel
f3ab54d6da [maven-release-plugin] prepare for next development iteration 2018-03-26 09:23:23 +02:00
Andreas Dangel
59b360a60a [maven-release-plugin] prepare release pmd_releases/6.2.0 2018-03-26 09:23:14 +02:00
Andreas Dangel
f335e83043 Cleanup pom.xml files 2018-03-23 10:21:16 +01:00
Andreas Dangel
8bd1e3b486 Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +01:00
Andreas Dangel
098b0dcac0 [maven-release-plugin] prepare for next development iteration 2018-02-25 09:53:26 +01:00
Andreas Dangel
101b71a13e [maven-release-plugin] prepare release pmd_releases/6.1.0 2018-02-25 09:53:19 +01:00
Clément Fournier
b1c5e3dfc0 Revert making AbstractVFNode and AbstractJspNode abstract
Revert me for 7.0.0

see #881, #879
2018-01-25 12:14:22 +01:00
Clément Fournier
6a3b332aee Abstract toString into AbstractNode, deprecate the implementation
Log that the default implementation will be removed
2018-01-25 03:02:44 +01:00
Clément Fournier
3c0bb45a60 Add getXPathNodeName to the Node interface
A default implementation is available in AbstractNode
to preserve compatibility with the previous way, which
used Object.toString.

Fixes #569
2018-01-24 19:22:36 +01:00
Andreas Dangel
8fbb156fd9 [maven-release-plugin] prepare for next development iteration 2018-01-21 16:42:50 +01:00
Andreas Dangel
0e460317e4 [maven-release-plugin] prepare release pmd_releases/6.0.1 2018-01-21 16:42:42 +01:00
Andreas Dangel
0ce2939c6b Change version to 6.0.1-SNAPSHOT 2017-12-23 09:54:03 +01:00
Andreas Dangel
a975048655 [maven-release-plugin] prepare for next development iteration 2017-12-15 16:01:22 +01:00
Andreas Dangel
9b6fe90225 [maven-release-plugin] prepare release pmd_releases/6.0.0 2017-12-15 16:01:14 +01:00
Andreas Dangel
d6a9be55a8 Unify rule category names 2017-12-15 11:22:33 +01:00
Andreas Dangel
6bba28acbe Add categories.properties files 2017-11-07 22:23:17 +01:00
Andreas Dangel
15526591d4 [jsp] Move rules and tests to new packages 2017-11-03 15:31:00 +01:00
Andreas Dangel
f05c865a24 [jsp] Reorganize rules into categories 2017-11-03 15:20:42 +01:00
gonzalo
91b8a22b42 Update GenericToken specialToken method to obtain only comment tokens 2017-10-28 14:42:44 -03:00
gonzalo
e8fdbdbca4 Update GenericToken interface to expose directly region methods 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
020abafeab Change ant tasks over (JSP) Token class 2017-10-28 14:42:44 -03:00
Andreas Dangel
577ef1ff71 Declaring used dependencies explicitly
as determined by dependency:analyze
2017-09-24 10:39:49 +02:00
Andreas Dangel
c903294c61 Apply schema for jsp rules tests 2017-09-11 21:56:05 +02:00
Andreas Dangel
f29dcd549f Remove remaining references to pmd-build-tools-plugin 2017-08-15 14:31:03 +02:00
Andreas Dangel
69267eebdd [doc] [jsp] Adjust externalInfoUrl properties to new site - Part 7
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
3d9511a0e5 [doc] Remove old maven site 2017-08-15 14:31:03 +02:00
Andreas Dangel
7f1292b212 Update version to 6.0.0-SNAPSHOT 2017-06-24 22:29:36 +02:00
Andreas Dangel
f3b9231b69 [maven-release-plugin] prepare for next development iteration 2017-06-24 22:26:42 +02:00
Andreas Dangel
6dd0bc8bfd [maven-release-plugin] prepare release pmd_releases/5.8.0 2017-06-24 22:26:34 +02:00
Juan Martín Sotuyo Dodero
e1f33504b9 [jsp] Update grammar to accept boolean attributes 2017-06-21 16:45:32 -03:00
Andreas Dangel
1e64c0d864 [maven-release-plugin] prepare for next development iteration 2017-05-20 22:35:55 +02:00
Andreas Dangel
9b70c1a0d1 [maven-release-plugin] prepare release pmd_releases/5.7.0 2017-05-20 22:35:46 +02:00
Oowekyala
3b7c956596 Fixed unrecognised headers 2017-05-06 02:56:10 +02:00
Andreas Dangel
0d0134b4fd Change version to 5.7.0-SNAPSHOT 2017-04-29 20:27:03 +02:00
Andreas Dangel
7373b040c9 [maven-release-plugin] prepare for next development iteration 2017-04-29 20:20:16 +02:00
Andreas Dangel
65a18787e9 [maven-release-plugin] prepare release pmd_releases/5.6.1 2017-04-29 20:20:07 +02:00
Andreas Dangel
379f8bc5ec Fix artifact name for pmd-build-tools-plugin
Fixes #363
2017-04-24 20:15:40 +02:00
Andreas Dangel
d4edeefa63 [maven-release-plugin] prepare for next development iteration 2017-04-22 13:20:12 +02:00
Andreas Dangel
38fb34dc17 [maven-release-plugin] prepare release pmd_releases/5.6.0 2017-04-22 13:20:03 +02:00
Andreas Dangel
9e77578408 Merge branch 'pmd/5.5.x' 2017-02-25 20:59:21 +01:00
Andreas Dangel
12fb1c2d7f [maven-release-plugin] prepare for next development iteration 2017-02-25 20:44:32 +01:00
Andreas Dangel
765a542604 [maven-release-plugin] prepare release pmd_releases/5.5.4 2017-02-25 20:44:24 +01:00
Andreas Dangel
e5a126c9d6 Merge branch 'pmd/5.4.x' into pmd/5.5.x 2017-02-25 20:31:17 +01:00
Andreas Dangel
4c7774ebf0 [maven-release-plugin] prepare for next development iteration 2017-02-25 19:03:45 +01:00
Andreas Dangel
0eec906467 [maven-release-plugin] prepare release pmd_releases/5.4.5 2017-02-25 19:03:37 +01:00
Andreas Dangel
d5d485f47a Fix javadoc. Since jdk8u121 no <script> tags are allowed by default.
See Release Notes of jdk8u121:
> tools/javadoc(tool)
> New --allow-script-in-comments option for javadoc
> The javadoc tool will now reject any occurrences of JavaScript code in
> the javadoc documentation comments and command-line options, unless the
> command-line option, --allow-script-in-comments is specified.
>
> With the --allow-script-in-comments option, the javadoc tool will
> preserve JavaScript code in documentation comments and command-line
> options. An error will be given by the javadoc tool if JavaScript
> code is found and the command-line option is not set.
> JDK-8138725 (not public)
2017-02-25 09:59:16 +01:00
Andreas Dangel
d92688a07d Introduce end-of-line normalization
References pmd/build-tools#2
2017-02-02 20:52:08 +01:00
Andreas Dangel
4dc0699788 [maven-release-plugin] prepare for next development iteration 2017-01-28 14:43:17 +01:00
Andreas Dangel
847ea1c084 [maven-release-plugin] prepare release pmd_releases/5.5.3 2017-01-28 14:43:17 +01:00
Andreas Dangel
e9149551b7 [maven-release-plugin] prepare for next development iteration 2017-01-28 13:15:11 +01:00
Andreas Dangel
12758ef777 [maven-release-plugin] prepare release pmd_releases/5.4.4 2017-01-28 13:15:10 +01:00
Andreas Dangel
e1d12dd4f8 Further Javadoc doclint fixes
References #1516 [build] doclint error during build
2017-01-07 17:05:03 +01:00
Andreas Dangel
2dfd580e93 [jsp] Javadoc doclint fixes
References #1516 [build] doclint error during build
2017-01-05 22:01:17 +01:00
Andreas Dangel
544d22f9b8 Merge branch 'checksum-aware' of https://github.com/Monits/pmd into pr-145 2016-12-23 18:21:50 +01:00
Andreas Dangel
d2bc0f3739 Checkstyle fixes 2016-12-03 11:31:01 +01:00