Skip to content

Commit b15d7c2

Browse files
authored
Merge pull request #78 from xdev-software/develop
Release
2 parents 7d76d25 + ec4590a commit b15d7c2

12 files changed

Lines changed: 34 additions & 21 deletions

File tree

.config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<property name="tokens" value=" CLASS_DEF"/>
8686
</module>
8787
<module name="IllegalImport"/>
88+
<module name="IllegalSymbol"/>
8889
<module name="InterfaceIsType"/>
8990
<module name="JavadocStyle">
9091
<property name="checkFirstSentence" value="false"/>

.github/workflows/broken-links.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Broken links
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "23 23 * * 0"
6+
- cron: "23 5 * * 0"
77

88
permissions:
99
issues: write
@@ -21,6 +21,7 @@ jobs:
2121
id: lychee
2222
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2
2323
with:
24+
args: "--verbose --no-progress './**/*.md'"
2425
fail: false # Don't fail on broken links, create an issue instead
2526

2627
- name: Find already existing issue

.idea/checkstyle-idea.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.0
2+
* Update PMD to 7.24.0
3+
* Dropped support for IntelliJ IDEA < 261 to fix deprecations
4+
15
# 1.0.8
26
* Correctly handle missing/removal of built-in configuration
37
* Fix crash on non Java-IDEs #67

build.gradle

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ plugins {
33
id 'idea'
44
id 'checkstyle'
55
id 'pmd'
6-
id 'org.jetbrains.intellij.platform' version '2.13.1'
6+
id 'org.jetbrains.intellij.platform' version '2.15.0'
77
}
88

99
ext {
10-
checkstyleVersion = '13.4.0'
10+
checkstyleVersion = '13.4.1'
1111

12-
pmdVersion = '7.23.0'
12+
pmdVersion = '7.24.0'
1313
}
1414

1515
def properties(String key) {
@@ -104,14 +104,9 @@ intellijPlatform {
104104
}
105105
pluginVerification {
106106
ides {
107-
select {
108-
it.types = [IntelliJPlatformType.IntellijIdeaCommunity]
109-
it.sinceBuild = properties("platformSinceBuild")
110-
it.untilBuild = '252.*'
111-
}
112107
select {
113108
it.types = [IntelliJPlatformType.IntellijIdea]
114-
it.sinceBuild = '253'
109+
it.sinceBuild = properties("platformSinceBuild")
115110
}
116111
}
117112
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
pluginGroup=software.xdev.pmd
33
pluginName=PMD X
44
# SemVer format -> https://semver.org
5-
pluginVersion=1.0.9-SNAPSHOT
5+
pluginVersion=1.1.0-SNAPSHOT
66
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
77
platformType=IU
8-
platformVersion=2025.3.1.1
9-
platformSinceBuild=243
8+
platformVersion=2026.1.1
9+
platformSinceBuild=261
1010
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1111
# Example: platformBundledPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
1212
platformBundledPlugins=com.intellij.java,org.jetbrains.kotlin

renovate.json5

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
],
1313
"matchCurrentVersion": "0",
1414
"enabled": false
15+
},
16+
{
17+
"description": "org.jetbrains.intellij.platform - Changelog",
18+
"packagePattern": "^org.jetbrains.intellij.platform",
19+
"matchDatasources": [
20+
"maven"
21+
],
22+
"changelogUrl": "https://github.com/JetBrains/intellij-platform-gradle-plugin/releases"
1523
}
1624
]
1725
}

src/main/java/software/xdev/pmd/action/ActionFilesAnalyzer.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ private void analyzeAsync(
8585
project.getService(PluginConfigurationManager.class).getCurrent();
8686
final ProjectFileIndex projectFileIndex = ProjectRootManager.getInstance(project).getFileIndex();
8787

88-
final Map<Optional<com.intellij.openapi.module.Module>, Set<PsiFile>> psiFiles = ReadAction.compute(() ->
89-
this.collectFiles(projectFileIndex, psiManager, pluginConfiguration, progressIndicator, selectedFiles));
88+
final Map<Optional<com.intellij.openapi.module.Module>, Set<PsiFile>> psiFiles =
89+
ReadAction.computeBlocking(() -> this.collectFiles(
90+
projectFileIndex,
91+
psiManager,
92+
pluginConfiguration,
93+
progressIndicator,
94+
selectedFiles));
9095

9196
if(psiFiles.isEmpty())
9297
{

src/main/java/software/xdev/pmd/analysis/PMDAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private List<PsiFile> determineApplicableFiles(
268268
final int totalFiles = filesToScan.size();
269269
final AtomicInteger counter = new AtomicInteger(0);
270270

271-
final List<PsiFile> files = ReadAction.compute(() -> filesToScan.stream()
271+
final List<PsiFile> files = ReadAction.computeBlocking(() -> filesToScan.stream()
272272
.filter(file -> {
273273
progressIndicator.setFraction((double)counter.incrementAndGet() / totalFiles);
274274
progressIndicator.setText2(file != null ? file.getName() : null);

src/main/java/software/xdev/pmd/annotator/PMDExternalLanguageAnnotator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ public void apply(
178178
+ "<p>"
179179
+ ruleDescriptionDocMarkdownToHtmlService.mdToHtml(rule.getDescription())
180180
+ "</p>")
181-
.range(range)
182-
.needsUpdateOnTyping(true);
181+
.range(range);
183182

184183
if(psiElement != null)
185184
{

0 commit comments

Comments
 (0)