627 Commits

Author SHA1 Message Date
Andreas Dangel
c3ec240794
[javascript] Simplify UnnecessaryBlock rule, update tests 2024-03-14 20:39:56 +01:00
Andreas Dangel
ff2ebf5026
Merge branch 'master' into pr-4857 2024-03-14 20:24:31 +01:00
Oleksandr Shvets
3c0aea6c52 rewrite xpath rule and add some test cases 2024-03-10 18:08:07 +02:00
Oleksandr Shvets
0ec6a4f770 simplify UnnecessaryBlock xpath rule 2024-03-09 23:38:37 +02:00
Sashko
3b9dcc0f2f Revert completly Java test 2024-03-09 23:38:37 +02:00
Andreas Dangel
dffc44ecde
Merge branch 'master' into cleanup-todos 2024-03-05 18:53:49 +01:00
Andreas Dangel
ab0d740d81
Cleanup some TODOs 2024-03-01 12:07:48 +01:00
Andreas Dangel
f49f25f0e1
Rename lang-terse-name to lang-id 2024-02-23 17:46:39 +01:00
Andreas Dangel
36cfde4735
[javascript] Consolidate test packages 2024-02-23 17:46:30 +01:00
Andreas Dangel
845154716c
[test] Consolidate packages, move PmdRuleTst, SimpleAggregatorTst 2024-02-23 17:46:29 +01:00
Andreas Dangel
3a7460de29
[lang-test] Move classes into n.s.p.lang.test 2024-02-23 17:46:23 +01:00
Sashko
b01d630e2e
revert UnnecessaryBlockTest.java 2024-02-22 01:48:03 +02:00
Sashko
df55c44499 add jdestructure assigments test 2024-02-21 23:38:17 +00:00
Sashko
a015835756
Update UnnecessaryBlockTest.java 2024-02-21 23:06:20 +02:00
Sashko
e5247d1703
do not apply UnnecessaryBlock for the ECMAScript6 destructuring variable declarations 2024-02-21 22:19:53 +02:00
Andreas Dangel
1b4acab7c4
Merge branch 'master' into issue-4349-cleanup-deprecations 2024-02-10 12:36:58 +01:00
Andreas Dangel
5931461ca9
Merge pull request #4804 from adangel:issue-4309-xpath-cleanups
[core] XPath cleanups #4804
2024-02-09 16:23:58 +01:00
Andreas Dangel
6a328d6cd0
Merge pull request #4803 from adangel:issue-3903-reporting-package
[core] Consolidate n.s.pmd.reporting package #4803
2024-02-09 15:32:55 +01:00
Andreas Dangel
2a3128fb86
Merge pull request #4799 from adangel:issue-3917-rule-package
[core] Consolidate n.s.pmd.lang.rule package #4799
2024-02-09 14:39:03 +01:00
Andreas Dangel
5599a8fd65
Merge branch 'master' into issue-4349-cleanup-deprecations 2024-02-08 18:23:41 +01:00
Andreas Dangel
fa97cff7ff
Merge pull request #4797 from adangel:lexexception-cpdlexer
[core] Rename TokenMgrError to LexException, Tokenizer to CpdLexer #4797
2024-02-02 19:59:41 +01:00
Andreas Dangel
a78e17b7a6
Merge pull request #4796 from adangel:remove-deprecated-and-release-rulesets
Remove deprecated and release rulesets #4796
2024-02-02 19:57:04 +01:00
Andreas Dangel
c6ce5a9557
Merge branch 'master' into avoid-image 2024-02-02 16:56:54 +01:00
Andreas Dangel
0ab9d45b3a
[javascript] Remove deprecated classes/methods 2024-02-01 18:59:08 +01:00
Andreas Dangel
7c29f16eac
[core] Move XPathRule into subpackage lang.rule.xpath (#4309) 2024-01-19 12:52:51 +01:00
Andreas Dangel
f13cd58c7f
[core] Move classes into n.s.pmd.reporting
- Report
- RuleContext
- RuleViolation
- ViolationSuppressor
- ParametricRuleViolation

Fixes #3903
2024-01-18 20:27:34 +01:00
Andreas Dangel
faaec5ed6d
[core] Actually move into correct package lang.rule 2024-01-13 20:57:56 +01:00
Andreas Dangel
9e668c22fc
[core] Move Rule/RuleSet related type into net.sourceforge.pmd.rule
Refs #3917
2024-01-12 18:14:04 +01:00
Andreas Dangel
6d955d6b9a
[core] Move Rule into package net.sourceforge.pmd.rule 2024-01-12 11:04:02 +01:00
Andreas Dangel
6163f67b06
[core] Rename Tokenizer to CpdLexer
See #4065
2024-01-11 17:04:48 +01:00
Andreas Dangel
55d91791c3
[core] Rename TokenMgrError to LexException
See #4065
2024-01-11 15:56:28 +01:00
Andreas Dangel
bb75ff41c3
Fix old usages of old rulesets 2024-01-11 14:43:59 +01:00
Andreas Dangel
9977c0ffeb
Remove old rulesets
These were from PMD 5. In PMD 6, these rules
have been moved into categories.
2024-01-11 12:28:30 +01:00
Andreas Dangel
c8333f034d
[javascript] Avoid using @Image 2023-12-19 20:34:19 +01:00
Andreas Dangel
b059ecb98a
Fix deprecated API usage
Fixes in pmd-doc, html, javascript,
jsp, modelica, objectivec, scala,
swift, vm
2023-12-16 18:34:55 +01:00
Andreas Dangel
db45dcd6db
Fix tests 2023-10-26 16:45:06 +02:00
Andreas Dangel
567bf9ed71
[javascript] Separate @ from Identifier 2023-10-26 16:39:28 +02:00
Andreas Dangel
59a23b1f8a
Merge branch 'master' into pr-4673 2023-10-26 16:25:34 +02:00
Andreas Dangel
0c53b69e82
Merge pull request #4586 from adangel:ruleset-xml
Use explicit encoding in ruleset xml files #4586
2023-10-19 09:41:57 +02:00
Andreas Dangel
345bb24a25
[release] prepare for next development iteration 2023-09-30 17:15:59 +02:00
Andreas Dangel
720b9a328b
[release] prepare release pmd_releases/7.0.0-rc4 2023-09-30 17:15:54 +02:00
wener
ec36fcc52f Fixed stylecheck issue. 2023-09-12 13:09:49 +02:00
wener
dca539b841 Added unittest for decorators. 2023-09-12 11:30:34 +02:00
Wener
940585de9a
Update TypeScriptTokenizerTest.java 2023-09-12 11:05:21 +02:00
Wener
e0b3d206c2
Create decorator.ts 2023-09-12 10:50:05 +02:00
Wener
836230b7e7
Added support for "@" in identifiers
This is to resolve the following error on a typescript file:

[main] ERROR net.sourceforge.pmd.cli - Error while tokenizing: Lexical error in file '.\TableList.js' at
 line 67, column 1: "@" (64), after : "" (in lexical state DEFAULT)
2023-09-12 10:36:12 +02:00
Andreas Dangel
32afa53f8e
All language modules: getInstance()
Use a consistent implementation of getInstance().
Now all modules resolve against the LanguageRegistry.
2023-08-24 16:01:27 +02:00
Andreas Dangel
8a89a4c786
Use explicit encoding in ruleset files 2023-06-01 17:29:24 +02:00
Andreas Dangel
835b625d51
[release] prepare for next development iteration 2023-05-30 20:15:08 +02:00
Andreas Dangel
7d6d303488
[release] prepare release pmd_releases/7.0.0-rc3 2023-05-30 20:15:02 +02:00