26947 Commits

Author SHA1 Message Date
Andreas Dangel
daef0cde8d [core] Move n.s.pmd.util.internal.ResourceLoader
Refs #4348
2024-01-27 18:06:23 +01:00
Andreas Dangel
3a5ff11dc2 [core] Rename MessageReporter to PmdReporter as public API
PmdReporter is supposed to be used when configuring PMD
(see AbstractConfiguration#setReporter), so it can't be internal.

Refs #4348
2024-01-26 19:06:08 +01:00
Andreas Dangel
906baf9b50 [core] Internalize AnalysisCache and related types
Refs #4348
2024-01-26 18:41:00 +01:00
Andreas Dangel
4a1ba2c3c0 [doc] Remove not existing -language cli param
It was already removed for PMD 7.
2024-01-26 17:45:25 +01:00
Juan Martín Sotuyo Dodero
033ede2925 Fix broken link 2024-01-26 11:55:38 -03:00
Juan Martín Sotuyo Dodero
68680de9cb Fix Windows dir separator 2024-01-26 11:52:24 -03:00
Juan Martín Sotuyo Dodero
f70b0d04cf Fix Windows samples 2024-01-26 11:50:29 -03:00
Andreas Dangel
88239b703e Merge pull request #4777 from adangel:fix-deprecated-api-usage
Fix deprecated API usage #4777
2024-01-26 15:16:54 +01:00
Andreas Dangel
7041f27d9f Merge pull request #4775 from adangel:apex-fix-deprecated-api-usage
[apex][visualforce] Fix deprecated API usage #4775
2024-01-26 15:15:58 +01:00
Andreas Dangel
59c2e86203 Merge pull request #4772 from adangel:plsql-fix-deprecated-api-usage
[plsql] Fix deprecated API usage #4772
2024-01-26 15:14:53 +01:00
Andreas Dangel
0c4b4f4dcd Merge pull request #4768 from adangel:java-ast-updates
[java] Updates to AST nodes #4768
2024-01-26 15:13:40 +01:00
Andreas Dangel
83522e96ef [ci] Update sonar, use Java 17 2024-01-18 08:32:27 +01:00
Andreas Dangel
963a9a965c [java] Verify fix for BrokenNullCheck (#718)
Closes #718
2024-01-17 17:43:15 +01:00
Andreas Dangel
b17fe92fb5 Merge branch 'master' into java-ast-updates 2024-01-12 10:41:41 +01:00
Andreas Dangel
8bd78b4b8f Update pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/internal/PrettyPrintingUtil.java
Co-authored-by: Clément Fournier <clement.fournier@tu-dresden.de>
2024-01-12 10:30:49 +01:00
Andreas Dangel
b06d00fb40 [java] SingularField: verify #174
Closes #174
2024-01-12 09:59:17 +01:00
Andreas Dangel
abb251a85e Merge pull request #4778 from dependabot/github_actions/master/actions/upload-artifact-4
Bump actions/upload-artifact from 3 to 4 #4778
2024-01-12 09:27:14 +01:00
Andreas Dangel
e65f10bc57 Merge pull request #4766 from adangel:issue-4319-typeres-symbols-api
[doc] Document TypeRes API and Symbols API (#4319) #4766
2024-01-12 09:25:51 +01:00
Andreas Dangel
acb3fd8dc5 Merge pull request #4764 from adangel:issue-4308-xpath-lang-impl
[doc] Document XPath integration (#4308) #4764
2024-01-12 09:21:33 +01:00
Andreas Dangel
661d76ca61 Merge pull request #4762 from adangel:issue-2511-doc-rules
[doc] Review rule writing documentation for PMD 7 #4762
2024-01-12 09:19:53 +01:00
Andreas Dangel
afe1ffac25 Merge pull request #4756 from adangel:issue-995-api-doc
[doc] ADR 3 - API evolution principles #4756
2024-01-12 09:17:31 +01:00
Andreas Dangel
a8426fd996 [doc] Update release notes (#995) 2024-01-12 09:16:45 +01:00
Andreas Dangel
ed0cff6da9 Merge branch 'master' into java-ast-updates 2024-01-11 10:28:21 +01:00
Andreas Dangel
a1d238cff6 [doc] Update release notes (#1307, #3751) 2024-01-11 10:26:32 +01:00
dependabot[bot]
2d6dba7de2 Bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-05 14:51:49 +00:00
Andreas Dangel
2e7263af69 Merge pull request #4746 from adangel:build-improvements
[ci] Build improvements #4746
2024-01-05 15:49:37 +01:00
Andreas Dangel
1c1cdb52de Merge pull request #4718 from adangel:issue-4717-xsltrenderer-leak
[core] XSLTRenderer: Close original writer at the end #4718
2024-01-05 15:12:55 +01:00
Andreas Dangel
a382d675b6 Merge branch 'master' into issue-4717-xsltrenderer-leak 2024-01-05 15:12:13 +01:00
Andreas Dangel
b4781ada3b Merge pull request #4694 from oowekyala:issue4635-cpd-lexical-error
[core] Fix line/col numbers in TokenMgrError #4694
2024-01-05 15:07:02 +01:00
Andreas Dangel
bd7fb70c13 [ci] Bump build-tools to master (23-SNAPSHOT)
Should fix the expired release key
2024-01-05 14:59:39 +01:00
Andreas Dangel
194a644cee [ci] Bump build-tools to 23-SNAPSHOT
Should fix the expired release key
2024-01-05 14:57:09 +01:00
Andreas Dangel
fb0e9c5344 [doc] Update release notes (#4694) 2024-01-05 14:55:14 +01:00
Andreas Dangel
b65589175c [core] Add tests for TokenMgrError location 2024-01-05 14:48:10 +01:00
Andreas Dangel
6255274659 Merge branch 'master' into pr-4694 2024-01-05 14:15:37 +01:00
Andreas Dangel
070cca8743 Merge pull request #4628 from adangel:support-jrt-fs
[java] Support loading classes from java runtime images #4628
2024-01-05 13:51:40 +01:00
Andreas Dangel
20e0aacfa4 [ant] Remove deprecated reference to language's terse name 2023-12-19 20:05:26 +01:00
Andreas Dangel
7424491ea8 [core] Fix BaseAntlrNode::getTextRegion 2023-12-16 19:12:56 +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
bbebf03cc0 Merge branch 'master' into apex-fix-deprecated-api-usage 2023-12-16 17:06:41 +01:00
Andreas Dangel
a558fd17eb [ci] Use bundler 2.4.22, which is still compatible with ruby 2.7 2023-12-16 13:03:32 +01:00
Andreas Dangel
3cdc99be81 [visualforce] Fix deprecated API usage 2023-12-15 20:39:37 +01:00
Andreas Dangel
4e02a21e3a [apex] Fix deprecated API usage 2023-12-15 20:23:01 +01:00
Andreas Dangel
686851acd2 [plsql] Fix deprecated API usage 2023-12-14 15:03:58 +01:00
Andreas Dangel
3a3a8784f1 [java] Remove ASTClassDeclaration#isPackagePrivate() 2023-12-14 13:57:50 +01:00
Andreas Dangel
97d141d577 [core][java] Expose Chars attributes in XPath
- taken from #4352 (avoid getImage())
- Exposes @LiteralText for ASTLiteral

Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2023-12-14 13:48:21 +01:00
Andreas Dangel
73fcf6e38c [core][java] Integrate improvements from #4352 (avoid getImage())
- This improves ASTLiteral implementation
- Adds ASTLiteral#getLiteralText() - not yet exposed as XPath attribute

Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2023-12-14 12:10:00 +01:00
Andreas Dangel
7a0f7316b7 [java] Avoid usage of deprecated methods
- firstChild() instead of getFirstChildOfType()
- descendants() instead of findDescendantsOfType()
- ancestors() instead of getFirstParentOfType()
2023-12-14 09:40:26 +01:00
Andreas Dangel
0fb4593234 [java] Avoid usage of deprecated methods
- getName() instead of getMethodName() or getVariableName()
- firstChild() instead of getFirstChildOfType()
- getRoot() instead of getFirstParentOfType(ASTCompilationUnit.class)
- children() instead of findChildrenOfType()
- no more addRuleChainVisit()
- ancestors() instead of getNthParent()
- descendants() instead of findDescendantsOfType()
2023-12-13 18:20:28 +01:00
Andreas Dangel
e283f11551 [java] Avoid usage of deprecated addViolation 2023-12-13 11:49:07 +01:00
Andreas Dangel
21ec4b9235 [java] Update change log in Java.jjt 2023-12-13 10:51:47 +01:00