From 5bd6a4cd3807d128ba55c336946531a8838c51c7 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 14 Jun 2024 05:49:38 +1000 Subject: Backend: Apply annotations to everything (#1983) * add plugin Co-authored-by: ThatGravyBoat * data and apis done * other stuff done * fix merge * Backend: Classes -> Objects with annotation * Backend: Apply annotations to everything * fix test * fix merge * fix merge * use annotation * use annotation * fix version number * fix space * bring back fix * work on companion again now that they are all done * oop * fixed merge conflicts --------- Co-authored-by: ThatGravyBoat Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .live-plugins/module/plugin.kts | 3 --- 1 file changed, 3 deletions(-) (limited to '.live-plugins/module') diff --git a/.live-plugins/module/plugin.kts b/.live-plugins/module/plugin.kts index 286160a9b..c0a65d3f4 100644 --- a/.live-plugins/module/plugin.kts +++ b/.live-plugins/module/plugin.kts @@ -5,7 +5,6 @@ import com.intellij.codeInspection.ProblemsHolder import com.intellij.openapi.project.Project import com.intellij.psi.PsiElementVisitor import liveplugin.registerInspection -import liveplugin.show import org.jetbrains.kotlin.idea.base.utils.fqname.fqName import org.jetbrains.kotlin.idea.codeinsight.api.classic.inspections.AbstractKotlinInspection import org.jetbrains.kotlin.idea.util.AnnotationModificationHelper @@ -55,7 +54,6 @@ class ModuleInspectionKotlin : AbstractKotlinInspection() { } override fun visitObjectDeclaration(declaration: KtObjectDeclaration) { - if (declaration.isCompanion()) return val hasAnnotation = declaration.annotationEntries.any { it.shortName?.asString() == skyHanniModule } if (hasAnnotation) return @@ -92,7 +90,6 @@ class ModuleQuickFix : LocalQuickFix { " ", null ) - show("Annotation applied, make sure SkyHanniMod isn't still loading this module") } override fun getName() = "Annotate with @SkyHanniModule" -- cgit