hfhbd
05/09/2022, 8:31 AMseb
05/10/2022, 8:39 AMExecution failed for task ':app:detekt'.
> Run failed with 1 invalid config property.
- Property 'formatting' is misspelled or does not exist.
If I take out the formatting
section in the config (which is only setting active: false)
, it works fine. Looking at the 1.20.0 release notes, there's a mention about something changing in how the formatting rules are configured, but there is no example, migration guide, nothing — only a link to a couple PRs with no documentation.
I don't use the formatting
plugin, so am I ok with just removing the corresponding section from the config? And how would it work if I actually wanted to use the plugin? I'm not super clear on this... do I need a separate config file? And if so, how do I associate it with the plugin?Tim Oltjenbruns
05/10/2022, 2:06 PMversions.properties
in resources anymore, and I’m struggling to figure out why. Any ideas that could get me unstuck?Tim Oltjenbruns
05/10/2022, 2:35 PMio.gitlab.arturbosch.detekt
with auto correct before the build. Should be fine because I don’t think any type resolution rules have auto correct? I have a very rough POC doing this now.
Any feedback on this approach?PJ Walstrom
05/13/2022, 3:51 PMa-z
range in e.g. function names? I see that `parameterPattern: '[a-z][A-Za-z0-9]*'`is used, but I would like to use the Norwegian characters æ
, ø
and å
in function names, too. Any help would be highly appreciated!
fun vilkårsØnske() {}
Zac Sweers
05/16/2022, 5:43 PMVarCouldBeVal
didn’t implement it for what seems like a trivial-ish change. In some quick testing, I don’t really see any other autocorrects kicking in when updating from 1.18 to 1.20bobby
05/18/2022, 1:15 AMconfig.yml
could be a way to do it, cmiiw
thanks and have a great dayJaved Nissar
05/18/2022, 6:22 PMdetektBaselineMain
and detektBaseline
to return different results? We're seeing that on our codebase. Specifically, in the sense that rules we've turned off are actually turned off in detektBaseline
but do not seem to be turned off in detektBaselineMain
alorma
05/19/2022, 8:36 AM./gradlew deteket
on the real app code doesn’t throw any smell… code in 🧵dimsuz
05/19/2022, 12:54 PMPeter Mandeljc
05/31/2022, 9:00 AMobject TitanicSinking : RuntimeException()
// somewhere else
throw TitanicSinking
Big Chungus
06/03/2022, 8:58 AMCsabi Szenczi
06/03/2022, 11:33 AMLeoColman
06/04/2022, 5:51 PMAndroidView({ LineChart(it) }, Modifier) {
val a = "abc"
val b = "def
}
This codes makes detekt fail and autocorrect it to
AndroidView({ LineChart(it) }, Modifier) {
val a = "abc"
val b = "def
}
A workaround for this case is
AndroidView(::LineChart, Modifier) {
val a = "abc"
}
Which is considered correct by ./gradlew detekt
Is this a known/intended behaviour? Should I open an issue on this?Rodrigo Silva
06/07/2022, 5:48 PMPJ Walstrom
06/13/2022, 7:12 AMDataSource.kt:23:1: Unexpected indentation (20) (should be 16) [Indentation]
Whereas the GHA-variant runs ok. Any suggestions to why? We are using the 1.20.0 version of the gradle plugin, and also the 1.20.0 version of the GHA. Any help would be highly appreciated 🙂Gouri Panda
06/14/2022, 3:01 PMdetekt
repo, i can’t see the new result in terminals. Is there something missing that i need to do before i see the new result? Thanks!elect
06/15/2022, 4:06 PMbbaldino
06/16/2022, 7:55 PMEmptyFunctionBlock
), but I found this bug which was fixed, which should allow overridden methods to have empty blocks. It was a while ago, though, has something changed since this?bbaldino
06/16/2022, 8:34 PMLuka Štorek
06/21/2022, 10:48 AMmkrussel
06/23/2022, 3:06 PM2021.1.1 Patch 2
which then installed the latest version of the detekt plugin (1.20.1
). I'm using version 1.19.0
of detekt. After that I'm getting several false positives for Missing newline after "("
and Missing newline before ")"
warnings. They all report as being on at line 1 column 1.
Running detekt from gradle does not report any issues.
Not sure the plugin is incompatible with the version of Android Studio being used, or if I need to upgrade to a new version of detekt.Tim Oltjenbruns
06/30/2022, 8:37 PMeygraber
06/30/2022, 9:49 PMKamilH
07/15/2022, 12:26 PMdetekt
in my project. In the top level project’s build.gradle.kts
file I have:
apply(plugin = "io.gitlab.arturbosch.detekt")
buildscript {
repositories.applyDefault()
dependencies {
(...)
classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0")
}
}
it synchronizes just fine, but when I try to configure it in the detekt
block I get Unresolved reference: detekt
error. Is there anything I’m missing? I had very similar integration in another project and it worked as expected. The only difference was that I was using groovy instead of kotlin in gradle files there.Gouri Panda
07/15/2022, 8:08 PMLeoColman
07/16/2022, 2:41 PM<http://shields.io|shields.io>
. Do you have any ideas?Javier
07/18/2022, 10:26 PMeygraber
07/19/2022, 6:25 AMLucas Mo
07/21/2022, 8:43 PMLucas Mo
07/21/2022, 8:43 PM