https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
detekt
  • v

    vanniktech

    09/10/2018, 8:15 AM
    Did we just completely deprecate this article? https://medium.com/@acerezoluna/detekt-in-2018-5f9b898c12d8 (with the new gradle plugin re-write)
    m
    t
    • 3
    • 6
  • s

    seb

    09/14/2018, 10:04 AM
    I’ll try to get things moving ASAP on the Novoda static analysis plugin side too
    t
    • 2
    • 4
  • t

    toto

    09/14/2018, 2:14 PM
    @Artur Bosch re: https://kotlinlang.slack.com/archives/C88E12QH4/p1536417537000100 This breaks the compatibility with projects running still on Gradle < 4.9. Have you considered to have a simple check there and use
    create
    for older version of Gradle?
    s
    a
    • 3
    • 10
  • t

    themishkun

    09/15/2018, 8:14 AM
    Where are the contributing guidelines?
    s
    • 2
    • 1
  • m

    mauin

    09/15/2018, 9:12 AM
    @pavlospt What is the error you are seeing?
    p
    • 2
    • 11
  • p

    pavlospt

    09/16/2018, 7:30 PM
    Is there a migration guide to Rc09 that I missed to locate? I feel like searching through the PRs is totally wrong 😝 but I couldn't spot anything more obvious 🤣 can someone please confirm that I did not Search well enough?
    m
    • 2
    • 1
  • p

    pavlospt

    09/16/2018, 11:25 PM
    Also is there no way to define 2 input dirs? previously i was doing:
    input = "${rootProject.projectDir}/app/","${rootProject.projectDir}/modules/"
    and it worked perfectly. But now it even though i am using
    files()
    it tries to do a weird concatenation between those paths and fails to run.
    m
    • 2
    • 38
  • m

    mauin

    09/17/2018, 9:13 AM
    @Artur Bosch Should we go for another RC with this fix and some of the other fixes currently going on?
    a
    • 2
    • 2
  • v

    vanniktech

    09/17/2018, 9:19 AM
    There are still way too many things that should be fixed I think
    p
    m
    • 3
    • 2
  • j

    Jukka Siivonen

    09/17/2018, 11:26 AM
    what is proper way to fix this?
    s
    s
    • 3
    • 11
  • m

    mickele

    09/17/2018, 12:18 PM
    is anyone having issues with RC8? did something changed when RC9 was released that could affect RC8?
    detektCheck
    is always crashing now, both locally and on CI. thread with more info
    m
    f
    a
    • 4
    • 9
  • p

    pavlospt

    09/17/2018, 7:54 PM
    Did a bit of searching regarding this https://github.com/arturbosch/detekt/issues/1122 and i am seeing that even though any test we would write, will work correctly, when run with Gradle, it’s like it ignores the given value and executes the Rules with the default ones (e.g.:
    ObjectPropertyNaming
    ->
    privatePropertyPattern: '[A-Za-z][_A-Za-z0-9]*'
    )
    m
    s
    • 3
    • 17
  • p

    pavlospt

    09/18/2018, 9:10 AM
    So I think that there is a broader issue here not just regarding
    ObjectPropertyNaming
    . I have tried changing almost every regex in the config and still get specific issues reported, which is wrong. That leads me to think that custom values are not picked up. I am worried that I might have broken something when added
    LazyRegex
    in the sense of a
    Config
    picking up custom values and instantiating those Regexes instantly, but later on these fields being mutated and essentially nullified, leading to
    LazyRegex
    picking up the default value when it’s time to execute for the first time. I am not sure if my thoughts are towards the correct direction, but it seems urgent enough to resolve this before going for v1.0.0.
    m
    m
    s
    • 4
    • 7
  • s

    Slackbot

    09/20/2018, 10:13 AM
    This message was deleted.
    m
    e
    a
    • 4
    • 14
  • j

    Jukka Siivonen

    09/20/2018, 10:14 AM
    With Gradle 4.9 I get error about using defaultProfile, is there documentation about new config in RC9 ?
    m
    • 2
    • 4
  • j

    Jukka Siivonen

    09/20/2018, 10:22 AM
    dependencies {
        detekt("io.gitlab.arturbosch.detekt:detekt-formatting:${detektVersion}")
    m
    p
    a
    • 4
    • 26
  • e

    Eugen Martynov

    09/20/2018, 2:10 PM
    can we modify rule?
    m
    • 2
    • 3
  • j

    Jukka Siivonen

    09/21/2018, 9:27 AM
    Any ideas for my problem
    > Task :detekt FAILED
    Error: Could not find or load main class io.gitlab.arturbosch.detekt.cli.Main
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':detekt'.
    > Process 'command 'C:\java\jdk1.8.0_131\bin\java.exe'' finished with non-zero exit value 1
    m
    • 2
    • 6
  • p

    pavlospt

    09/22/2018, 12:03 PM
    Regarding https://github.com/arturbosch/detekt/issues/1143 is there a task that should run before executing
    detekt
    that would add
    Main
    class in classpath?
    m
    s
    • 3
    • 17
  • p

    pavlospt

    09/22/2018, 12:58 PM
    Since i understand there is availability by most of the contributors this weekend, should we try debugging the Rules patterns issue? I consider it one of the biggest before 1.0.0 😕
    m
    a
    • 3
    • 6
  • s

    seb

    09/24/2018, 2:28 PM
    Basically you want package-private back? Seems going against the language…
    👎 1
    ☝️ 1
    d
    • 2
    • 2
  • a

    Artur Bosch

    09/24/2018, 6:16 PM
    @mairanosimone Unfortunately we do not publish the cli-all, feel free to open an issue for this
    👍 1
    m
    • 2
    • 1
  • e

    Eugen Martynov

    09/27/2018, 9:36 AM
    Anyone is using SonarLint plugin?
    a
    • 2
    • 1
  • v

    ValV

    10/04/2018, 8:56 PM
    I've installed detekt plugin into IDEA, how to use it?
    j
    t
    • 3
    • 12
  • v

    ValV

    10/06/2018, 4:20 AM
    It would be great to have this part as a separate video to be able to replay some moments. While it's still possible with this one, rewinding is not quite precise
    s
    • 2
    • 1
  • m

    mauin

    10/08/2018, 4:21 PM
    For tests in particular you can use `testPattern`: https://github.com/arturbosch/detekt/blob/master/detekt-cli/src/main/resources/default-detekt-config.yml#L4
    r
    • 2
    • 2
  • r

    robstoll

    10/08/2018, 6:06 PM
    hm... probably I was not writing it clearly enough. I don't want to suppress rules. I want to configure them differently for different src
    m
    m
    a
    • 4
    • 22
  • m

    miha-x64

    10/09/2018, 6:15 PM
    Hello. I wonder, wihch is the correct way to resolve symbols? Get fully-qualified names and modifiers from call expressions? For example, this code relies on a fact that
    java.lang.*
    is implicitly imported and nothing interferes with
    System
    and `Runtime`: https://github.com/arturbosch/detekt/blob/249822360b88d57ea75a212bd6a811f3c7678d8e/detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/ExplicitGarbageCollectionCall.kt#L49
    m
    s
    • 3
    • 6
  • p

    pavlospt

    10/10/2018, 11:27 AM
    is there a way to do a
    try-catch
    on the
    detekt
    task in order to continue the execution of other tasks?
    m
    t
    • 3
    • 10
  • r

    robstoll

    10/10/2018, 2:00 PM
    Since when does
    ComplexMethod -> ignoreSimpleWhenEntries
    exist, was it already available in 1.0.0RC8?
    m
    • 2
    • 3
Powered by Linen
Title
r

robstoll

10/10/2018, 2:00 PM
Since when does
ComplexMethod -> ignoreSimpleWhenEntries
exist, was it already available in 1.0.0RC8?
m

mauin

10/10/2018, 2:03 PM
You could check the history of the
default-detekt-config.yml
to find out when it was added.
But this particular parameter was added with RC9/9.2 iirc
r

robstoll

10/10/2018, 2:55 PM
good to know and thanks for the hint
View count: 2