Commit Graph

120 Commits

Author SHA1 Message Date
7ae424a35b Add deprecation javadocs 2020-07-17 14:43:43 +02:00
49635c2a66 Deprecate Rulechain visitors 2020-07-01 11:27:38 +02:00
659066ee02 Deprecate BaseLanguageModule constructor 2020-07-01 11:27:38 +02:00
d7f96e08d9 Uniformize apply across languages 2020-07-01 11:27:38 +02:00
709996fddc Finish cpp module 2020-06-13 20:34:30 +02:00
551ab453fd Convert CPP tests 2020-06-13 20:14:08 +02:00
0a1e82efad Rename dir 2020-06-13 19:21:27 +02:00
e48fc7cca2 Convert JS tests 2020-06-13 19:16:22 +02:00
4e21c1a947 Fix js tests 2020-06-13 19:02:35 +02:00
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
4c2c111492 [javascript] 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
01a3ae5a19 [javascript] Add a treedump test 2020-04-25 18:07:48 +02:00
bc49a8afff [javascript] Internalize AbstractInfixEcmascriptNode 2020-04-23 10:17:20 +02:00
75d5626c40 Merge branch 'master' into javascript-es6 2020-04-20 11:51:51 +02:00
6127add18e Fix forgotten ctor in js module 2020-04-20 11:27:16 +02:00
aad67c501d Merge branch 'master' into js-deprecate-ast 2020-04-20 11:02:27 +02:00
c62041e827 Merge branch 'pr-2377'
[all] Update all XPath rules to XPath 2.0 #2377
2020-04-18 11:49:44 +02:00
623ba4c92e [javascript] Internalize AST constructors 2020-04-17 20:44:54 +02:00
fa7b286d31 Checkstyle 2020-04-16 18:17:33 +02:00
c7172fe78f Add tests 2020-04-16 18:02:18 +02:00
08d31c62a9 Merge branch 'master' into pr-2377 2020-04-16 17:52:03 +02:00
04b5372f23 Fix issue with Rhino localization 2020-04-16 17:19:04 +02:00
e2ee78dae3 [javascript] Add support for ES6 version and use that as default
Fixes #1235
Fixes #2379
2020-04-16 16:42:16 +02:00
bcf90ceb8a Externalize creator for XPath rule 2020-04-08 21:35:34 +02:00
3d429019ee Fix rules 2020-03-20 18:47:40 +01:00
0d65c2e6e6 Add relevant property tag 2020-03-20 18:47:40 +01:00
eaceefc39e Update XPath rules to 2.0 2020-03-20 18:47:40 +01:00
138c0e3e86 Deprecate tokManagers for more module 2020-03-17 15:08:58 +01:00
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00
5feca7fd93 Exclude generated AST*.java files from internalization 2020-01-24 16:19:24 +01:00
60e97d0ec8 Deprecate javacc generated code 2020-01-22 17:19:29 +01:00
4450d826f7 Merge branch 'pr-2225'
[core] CPD: report endLine / column informations for found duplications
2020-01-17 14:59:02 +01:00
817c3d1127 CPD: Remove deprecations in Mark / TokenEntry
* Provide these values for more languages
2020-01-17 14:47:23 +01:00
d9ad819dab Replace usages of node methods everywhere 2020-01-17 11:57:19 +01:00
f53993427c Merge branch 'pr-2172'
[core] Deprecate jjtree methods from the Node interface
2020-01-17 08:18:50 +01:00
c53d9508e9 Small changes from code review
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
4269fd1b73 Refactor tests for javascript, jsp, plsql, scala, visualforce, xml
using BaseParsingHelper

Revert "REVERT ME Remove some diff"

This reverts commit f72810088d.
2020-01-10 12:12:34 +01:00
f72810088d REVERT ME Remove some diff 2019-12-20 18:32:47 +01:00
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
1aabc53fa2 Deprecate childrenAccept in all modules 2019-12-17 17:39:13 +01:00
eb6ceef085 Add comments and update release notes 2019-12-05 15:23:07 +01:00
bb7478cd0a Deprecate RuleViolationFactory impls
Internal APIs
2019-12-05 15:18:35 +01:00
6f4123afcc Annotated overriding #getDumpFacade as Deprecated 2019-05-02 16:22:04 +02:00
1c9a73426c deprecate: DumpFacade will be removed in PMD 7
Refs #1801
2019-05-01 11:38:35 +02:00
89c8f47b2b Move JavaCCTokenizer to internal package 2019-01-26 19:19:46 +01:00
08b7dd49dd [core] Add a generic JavaCCTokenizer for CPD 2019-01-26 11:24:32 +01:00
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
4962bc2831 Remove usages of EnumeratedProperty 2018-12-06 15:21:00 +01:00
81c9d39bd8 Remove most usages of BooleanProperty 2018-12-04 13:49:35 +01:00
e735ee0f84 Dogfood - IdenticalCatchBranches, AvoidFileStream 2018-11-25 16:00:47 +01:00