Commit Graph

18981 Commits

Author SHA1 Message Date
Andreas Dangel
e110a84473 Merge pull request #3943 from turrisxyz:setup-permissions
chore: Set permissions for GitHub actions #3943
2022-04-29 11:58:38 +02:00
Andreas Dangel
47beb1c3cd Add @naveensrinivasan as a contributor 2022-04-29 11:57:00 +02:00
Andreas Dangel
94057f688d [doc] Update release notes (#3943) 2022-04-29 11:56:36 +02:00
Andreas Dangel
c224209d7f [test] Backport NodePrinters.kt from pmd7 2022-04-29 11:38:52 +02:00
naveen
57dfc7fb40 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-04-29 01:00:46 +00:00
Andreas Dangel
d407a92dfc Merge pull request #3885 from adangel:html-jsoup
[html] Add support for HTML using jsoup parser #3885
2022-04-28 15:07:19 +02:00
Andreas Dangel
3336b1ccd4 [doc] Update release notes 2022-04-28 15:05:26 +02:00
Andreas Dangel
c9fa05d2c7 Merge pull request #3938 from VoidxHoshi:master
[java] Modify SimplifiedTernary to meet the missing case #3603 #3938
2022-04-28 15:03:28 +02:00
Andreas Dangel
d94f85f443 Add @VoidxHoshi as a contributor 2022-04-28 15:01:16 +02:00
Andreas Dangel
0af3883607 [doc] Update release notes (#3603, #3938) 2022-04-28 15:00:55 +02:00
Andreas Dangel
1e5d69d722 Merge pull request #3935 from Scrsloota:master
[plsql] Fix parser exception in EXECUTE IMMEDIATE BULK COLLECT #3687 #3935
2022-04-28 14:55:49 +02:00
Andreas Dangel
69c7f4b2ad Merge pull request #3930 from adangel:improve-ArrayIsStoredDirectly
[java] Improve rule ArrayIsStoredDirectly #3930
2022-04-28 14:54:15 +02:00
Andreas Dangel
4d78148504 Merge pull request #3900 from adangel:issue-3867-usearraysaslist
[java] Fix UseArraysAsList with method calls #3900
2022-04-28 14:51:31 +02:00
Andreas Dangel
da0478d244 Merge pull request #3862 from adangel:report-mutable
[core] Add transformation methods to Report #3862
2022-04-28 14:48:41 +02:00
Andreas Dangel
56cc599b91 Update pmd-core/src/main/java/net/sourceforge/pmd/Report.java
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-04-28 12:11:08 +02:00
Andreas Dangel
f48ab0e509 [doc] Mark package n.s.p.lang.html experimental 2022-04-28 11:57:30 +02:00
Andreas Dangel
84b6cfe93f [doc] Update release notes (#3687, #3935) 2022-04-28 11:38:20 +02:00
Andreas Dangel
061d0d6724 Add @Scrsloota as a contributor 2022-04-28 11:35:52 +02:00
Andreas Dangel
8370d6253d [plsql] Fix usage of "IN" - it is a reserved word 2022-04-28 11:34:25 +02:00
Andreas Dangel
35b6cc79ca [plsql] Refactor execute immediate statement
- It is now more compliant to the specification
- Add new AST node DynamicReturnClause
2022-04-28 10:57:59 +02:00
Andreas Dangel
45e4ec9e98 [plsql] Migrate ExecuteImmediateBulkCollectTest to BaseTreeDumpTest 2022-04-28 09:58:59 +02:00
LaLucid
f29770f968 Use a more clear XPath form
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-04-27 05:47:07 +08:00
LaLucid
e951d6df8f Use a more clear XPath form to replace the former 2022-04-27 04:07:02 +08:00
LaLucid
3841e7d0c9 Revert the original XPath 2022-04-25 06:50:56 +08:00
LaLucid
f1a2a77e64 modify the SimplifiedTernary test 2022-04-25 03:31:19 +08:00
LaLucid
56cc9fc163 make the description simple 2022-04-25 02:35:34 +08:00
LaLucid
38d3c091d0 Update pmd-java/src/main/resources/category/java/design.xml
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-04-25 02:27:26 +08:00
LaLucid
28a454d155 Update pmd-java/src/main/resources/category/java/design.xml
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-04-25 02:25:18 +08:00
HoshiNoMei
996f81ccce Modify the rule to meet the missing case 2022-04-24 23:36:46 +08:00
wsf
1a2682d5f8 fix ExecuteImmediateBulkCollect bug and add some test cases 2022-04-23 17:31:16 +08:00
Andreas Dangel
e6254baaae Merge remote-tracking branch 'adangel/html-jsoup' into html-jsoup 2022-04-22 12:40:44 +02:00
Andreas Dangel
0e6ad2dc63 [html] Add documentation (#3885) 2022-04-22 12:34:59 +02:00
Andreas Dangel
83c07a540b [html] New rule UseAltAttributeForImages which uses rule chain 2022-04-22 12:01:55 +02:00
Andreas Dangel
b3871a1476 [html] New rule UnnecessaryTypeAttributeRule 2022-04-22 11:39:38 +02:00
Andreas Dangel
3e8274fd0d [html] Rename AST nodes 2022-04-22 11:38:40 +02:00
Andreas Dangel
004a59ab04 [html] Add visitor, add tests for xpath and java rules 2022-04-22 10:49:13 +02:00
Andreas Dangel
62bedd301a Merge branch 'master' into html-jsoup 2022-04-22 08:55:55 +02:00
Andreas Dangel
24f4b2ecb6 [ci] Fix maven-pmd-plugin configuration 2022-04-22 08:20:46 +02:00
Andreas Dangel
23997a15d7 Fix pmd dogfood - ClassWithOnlyPrivateConstructorsShouldBeFinal 2022-04-21 21:06:31 +02:00
Andreas Dangel
764920f61f Fix unit test under Windows 2022-04-21 17:14:11 +02:00
Andreas Dangel
9b2a92bc52 Merge pull request #3921 from oowekyala:issue3068-mock-rules-for-cli-tests
[java] Make cli tests use dummy rules #3921
2022-04-21 16:55:29 +02:00
Andreas Dangel
ab1cb6d0e9 Merge pull request #3910 from laoseth:master
[java] UnusedPrivateField - Allow the ignored fieldnames to be configurable #3910
2022-04-21 16:52:36 +02:00
Andreas Dangel
29175e0c90 [doc] Update release notes (#3910) 2022-04-21 16:51:58 +02:00
Andreas Dangel
e1868543ad Merge branch 'master' into pr-3910 2022-04-21 16:49:49 +02:00
Andreas Dangel
dc4894d0f5 Add @laoseth as a contributor 2022-04-21 16:45:30 +02:00
Andreas Dangel
455cd962eb Update docs/pages/release_notes.md 2022-04-21 16:43:29 +02:00
Andreas Dangel
b0f349085d Merge pull request #3896 from oowekyala:fix-dump-cli
[core] Fix ast-dump CLI when reading from stdin #3896
2022-04-21 16:41:51 +02:00
Andreas Dangel
8e0eac97bc Fix unit test 2022-04-21 16:30:13 +02:00
Andreas Dangel
cfc981fc8e [doc] Update release notes (#3896) 2022-04-21 16:22:18 +02:00
Andreas Dangel
bb564be0b1 [core] AbstractParser.setFileName is InternalApi 2022-04-21 16:21:48 +02:00