File tree Expand file tree Collapse file tree 5 files changed +4
-10
lines changed
build-plugins/build-support
ktlint-rules/src/main/kotlin/software/aws/ktlint/rules Expand file tree Collapse file tree 5 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ repositories {
1818}
1919
2020dependencies {
21- // make our custom lint rules available to the buildscript classpath
22- runtimeOnly(project(" :ktlint-rules" )) {
23- // Ensure that kotlin-compiler-embeddable isn't included in the buildscript classpath
24- exclude(group = " org.jetbrains.kotlin" , module = " kotlin-compiler-embeddable" )
25- }
26-
2721 implementation(libs.nexus.publish.plugin)
2822 implementation(libs.jreleaser.plugin)
2923 compileOnly(gradleApi())
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.PsiCommentImpl
1111import org.jetbrains.kotlin.lexer.KtTokens
1212import org.jetbrains.kotlin.psi.stubs.elements.KtFileElementType
1313
14- class CopyrightHeaderRule : Rule (RuleId ("repo-tools:copyright-header"), About ()) {
14+ class CopyrightHeaderRule : Rule (RuleId ("aws-kotlin- repo-tools-rules :copyright-header"), About ()) {
1515 companion object {
1616 private val header = """
1717 /*
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import com.pinterest.ktlint.cli.ruleset.core.api.RuleSetProviderV3
88import com.pinterest.ktlint.rule.engine.core.api.RuleProvider
99import com.pinterest.ktlint.rule.engine.core.api.RuleSetId
1010
11- class CustomRuleSetProvider : RuleSetProviderV3 (RuleSetId ("repo-tools")) {
11+ class CustomRuleSetProvider : RuleSetProviderV3 (RuleSetId ("aws-kotlin- repo-tools-rules ")) {
1212 override fun getRuleProviders () = setOf (
1313 RuleProvider { CopyrightHeaderRule () },
1414 RuleProvider { ExpressionBodyRule () },
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import org.jetbrains.kotlin.psi.KtBlockExpression
1111import org.jetbrains.kotlin.psi.KtNamedFunction
1212import org.jetbrains.kotlin.psi.KtReturnExpression
1313
14- class ExpressionBodyRule : Rule (RuleId ("repo-tools:expression-body"), About ()) {
14+ class ExpressionBodyRule : Rule (RuleId ("aws-kotlin- repo-tools-rules :expression-body"), About ()) {
1515 override fun beforeVisitChildNodes (
1616 node : ASTNode ,
1717 autoCorrect : Boolean ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import com.pinterest.ktlint.rule.engine.core.api.Rule
99import com.pinterest.ktlint.rule.engine.core.api.RuleId
1010import org.jetbrains.kotlin.com.intellij.lang.ASTNode
1111
12- class MultilineIfElseBlockRule : Rule (RuleId ("repo-tools:multiline-if-else-block"), About ()) {
12+ class MultilineIfElseBlockRule : Rule (RuleId ("aws-kotlin- repo-tools-rules :multiline-if-else-block"), About ()) {
1313 override fun beforeVisitChildNodes (
1414 node : ASTNode ,
1515 autoCorrect : Boolean ,
You can’t perform that action at this time.
0 commit comments