kotlinter-gradle
kotlinter-gradle copied to clipboard
Painless, fast ktlint plugin for Gradle
We have configured the linter to ignore our (generated) code directory `db` like so: ```kotlin tasks.lintKotlinMain { exclude("**/db/**") } ``` This works fine. However, when running task `formatKotlin`, the formatter...
When running `gradle formatKotlin`, the build fails if any issues are found. However, I think it would be better if the task would _not_ fail if the formatter could fix...
In case if code (somehow) has compilation issues (e.g. after merge conflicts), running `lintKotlin` will give this error: ``` lint worker execution error com.pinterest.ktlint.core.api.KtLintParseException: 17:5 Expecting member declaration at com.pinterest.ktlint.core.internal.RuleExecutionContext$Companion.createRuleExecutionContext$ktlint_core(RuleExecutionContext.kt:137)...
Resolves #167
Bumps com.android.tools.build:gradle from 7.3.1 to 8.5.1. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
Bumps org.jmailen.kotlinter from 4.4.0 to 4.4.1. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
Bumps [org.mockito.kotlin:mockito-kotlin](https://github.com/mockito/mockito-kotlin) from 4.1.0 to 5.4.0. Release notes Sourced from org.mockito.kotlin:mockito-kotlin's releases. 5.4.0 Changelog generated by Shipkit Changelog Gradle Plugin 5.4.0 2024-07-09 - 2 commit(s) by Lars Added value class...
When running `check`, the plugin crashes: ``` java.lang.NoSuchMethodError: 'void io.github.detekt.sarif4k.ToolComponent.(io.github.detekt.sarif4k.ToolComponentReference, java.util.List, java.lang.String, java.lang.String, io.github.detekt.sarif4k.MultiformatMessageString, java.lang.String, java.util.Map, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.util.List, java.lang.String, java.lang.String, java.util.List, java.lang.String, java.lang.String, java.lang.String, io.github.detekt.sarif4k.PropertyBag, java.lang.String,...
Should fix #423, however, when integrated in my codebase I now get a transitive dependency issue: ``` Caused by: java.lang.NoClassDefFoundError: io/github/oshai/kotlinlogging/KotlinLogging at com.pinterest.ktlint.ruleset.standard.rules.WrappingRuleKt.(WrappingRule.kt:90) at com.pinterest.ktlint.ruleset.standard.rules.ArgumentListWrappingRule.(ArgumentListWrappingRule.kt:72) at com.pinterest.ktlint.ruleset.standard.StandardRuleSetProvider.getRuleProviders$lambda$2(StandardRuleSetProvider.kt:110) at com.pinterest.ktlint.rule.engine.core.api.RuleProvider$Companion.invoke(RuleProvider.kt:41) at...
Bumps com.android.tools.build:gradle from 7.3.1 to 8.8.1. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...