Skip to content

Commit d8b7307

Browse files
committed
Fix: Apply Codacy code checks and fix build
1 parent b6afbf7 commit d8b7307

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

build.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import org.jetbrains.changelog.Changelog
22
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
33
import org.jetbrains.intellij.platform.gradle.extensions.intellijPlatform
44

5+
/**
6+
* Shortcut for <code>project.findProperty(key).toString()</code>.
7+
*/
58
fun properties(key: String) = project.findProperty(key).toString()
9+
/**
10+
* Shortcut for <code>System.getenv().getOrDefault(key, default).toString()</code>.
11+
*/
612
fun environment(key: String, default: String) = System.getenv().getOrDefault(key, default).toString()
713

814
version = properties("pluginVersion")
@@ -125,8 +131,4 @@ tasks {
125131
processTestResources {
126132
duplicatesStrategy = DuplicatesStrategy.WARN
127133
}
128-
129-
// test {
130-
// include("**/*Test.class")
131-
// }
132134
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ platform = IC
1212
# LATEST-EAP-SNAPSHOT
1313
platformVersion = 2024.1.1
1414

15-
platformBundledPlugins=com.intellij.java,org.jetbrains.kotlin,Git4Idea,org.jetbrains.plugins.github
15+
platformBundledPlugins=Git4Idea,org.jetbrains.plugins.github
1616

1717
org.gradle.parallel=true
1818

src/main/java/net/seesharpsoft/intellij/formatting/DummyFormattingModel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,6 @@ public TextRange shiftIndentInsideRange(ASTNode node, TextRange range, int inden
101101

102102
@Override
103103
public void commitChanges() {
104+
// do nothing
104105
}
105106
}

0 commit comments

Comments
 (0)