Skip to content

Commit

Permalink
Merge 599165c into 34a6a35
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricup committed Feb 20, 2024
2 parents 34a6a35 + 599165c commit 7f7fea3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
# https://www.jetbrains.com/intellij-repository/releases
# https://www.jetbrains.com/intellij-repository/snapshots
name="Perl5 Support (Camelcade)"
platformVersion=233
platformBranch=.11799.196-EAP-SNAPSHOT
platformVersion=2023
platformBranch=.3
platformBuild=
pluginVersion=2023
pluginBranch=.3
pluginBuild=
pluginBranch=
pluginBuild=.1
pycharmVersion=192.4787.5-EAP-SNAPSHOT
clionVersion=192.4787.12-EAP-SNAPSHOT
psiViewerVersion=233.2
Expand All @@ -38,3 +38,4 @@ descriptionFile=parts/pluginDescription.html
changesFile=parts/pluginChanges.html
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Xss10M
perl.test.version=5.38.0
kotlin.stdlib.default.dependency=false
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@
import com.perl5.lang.perl.psi.utils.PerlResolveUtil;
import org.jetbrains.annotations.NotNull;

import java.util.HashSet;
import java.util.Set;

/**
* fixme butify this
*/
public class PerlDeprecatedInspection extends PerlInspection {
@Override
public @NotNull PsiElementVisitor buildVisitor(final @NotNull ProblemsHolder holder, boolean isOnTheFly) {
return new PerlVisitor() {
private Set<PsiElement> myMarkedElements = new HashSet<>();

@Override
public void visitSubNameElement(@NotNull PerlSubNameElement o) {
PsiElement container = o.getParent();
Expand Down Expand Up @@ -93,7 +98,7 @@ public void visitNamespaceElement(@NotNull PerlNamespaceElement o) {
public void visitPerlSubElement(@NotNull PerlSubElement o) {
if (o.isDeprecated()) {
PsiElement nameIdentifier = o.getNameIdentifier();
if (nameIdentifier != null) {
if (nameIdentifier != null && myMarkedElements.add(nameIdentifier)) {
markDeprecated(holder, nameIdentifier, PerlBundle.message("perl.deprecated.sub"));
}
}
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ include("lang.mason.htmlmason")
project(":lang.mason.htmlmason").projectDir = file("mason/htmlmason")
include("lang.mason.htmlmason:core")
project(":lang.mason.htmlmason:core").projectDir = file("mason/htmlmason/core")
System.setProperty("sonar.gradle.skipCompile", "true")

0 comments on commit 7f7fea3

Please sign in to comment.