Skip to content

Commit

Permalink
#1 fixed tests and some linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnyprod committed Jul 8, 2022
1 parent f2679a6 commit 5601b70
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ plugins {
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.6.10"
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.5.3"
id("org.jetbrains.intellij") version "1.7.0"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "1.3.1"
// Gradle Qodana Plugin
id("org.jetbrains.qodana") version "0.1.13"
// detekt linter - read more: https://detekt.github.io/detekt/gradle.html
id("io.gitlab.arturbosch.detekt") version "1.14.2"
// ktlint linter - read more: https://github.com/JLLeitschuh/ktlint-gradle
id("org.jlleitschuh.gradle.ktlint") version "9.4.1"
//id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
// id("com.x5dev.chunk.templates") version "3.5.0"
}

Expand Down Expand Up @@ -50,7 +50,7 @@ intellij {
version.set(properties("platformVersion"))
type.set(properties("platformType"))

//localPath.set("/home/patrickjaja/.local/share/JetBrains/Toolbox/apps/PhpStorm/ch-0/213.6777.58")
// localPath.set("/home/patrickjaja/.local/share/JetBrains/Toolbox/apps/PhpStorm/ch-0/213.6777.58")
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
}
Expand Down Expand Up @@ -113,7 +113,7 @@ tasks {

runIde {
jvmArgs("-Xmx2024m", "-Xms512m", "-XX:MaxPermSize=500m", "-ea")
ideDir.set(file(properties("platformIdeDir")))
//ideDir.set(file(properties("platformIdeDir")))
}

// Configure UI tests plugin
Expand Down
3 changes: 2 additions & 1 deletion build_twig_cache.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
tree -J ./src/main/resources/templates > ./src/main/resources/template-map.json
cd ./src/main/resources
tree -J templates/ > template-map.json
8 changes: 4 additions & 4 deletions src/test/java/mock/ProjectMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,22 @@ public <T> T instantiateClassWithConstructorInjection(@NotNull Class<T> aClass,

@Override
public @NotNull RuntimeException createError(@NotNull Throwable error, @NotNull PluginId pluginId) {
return null;
return new RuntimeException();
}

@Override
public @NotNull RuntimeException createError(@NotNull @NonNls String message, @NotNull PluginId pluginId) {
return null;
return new RuntimeException();
}

@Override
public @NotNull RuntimeException createError(@NotNull @NonNls String message, @Nullable Throwable error, @NotNull PluginId pluginId, @Nullable Map<String, String> attachments) {
return null;
return new RuntimeException();
}

@Override
public @NotNull <T> Class<T> loadClass(@NotNull String className, @NotNull PluginDescriptor pluginDescriptor) throws ClassNotFoundException {
return null;
return (Class<T>) ProjectMock.class.getClassLoader().loadClass(className);
}

@Override
Expand Down

0 comments on commit 5601b70

Please sign in to comment.