• a

    Artur Bosch

    4 years ago
    @Jukka Siivonen I answered in the issue, hope that helps, also I pushed a PR which documents how to add custom (or the formatting-jar) to the detekt tasks
    a
    Jukka Siivonen
    5 replies
    Copy to Clipboard
  • v

    vanniktech

    4 years ago
    There's a ticket for snapshots but noone has tackled it yet
    v
    m
    5 replies
    Copy to Clipboard
  • seb

    seb

    4 years ago
    Cool, I need to submit a formal request for someone's time, hopefully to get both the Gradle plugin done/checked and to integrate it with our static analysis plugin
    seb
    1 replies
    Copy to Clipboard
  • p

    pavlospt

    4 years ago
    Currently what I have is
    expression.getCallNameExpression()?.textMatches("forEach")
    where
    expression
    is a
    KtCallExpression
    and I would like to also check that the class of the caller is a
    Map
    or something implementing a
    Map
    . This is the part though where I am getting it wrong, because it does not seem to be like UAST, where you can check the
    qualifiedName
    of elements.
    p
    s
    4 replies
    Copy to Clipboard
  • s

    ska

    4 years ago
    s
    1 replies
    Copy to Clipboard
  • a

    aandreyev

    4 years ago
    a
    m
    +2
    16 replies
    Copy to Clipboard
  • kenkyee

    kenkyee

    4 years ago
    is there a way prioritize a rule so it prints a warning but doesn't count in the issues calculation? I'm getting some pushback on leaving Detekt enabled for the LargeClass and TooManyFunctions rules because some of the older Java code is a bit monolithic and no one wants to refactor as part of the Kotlin conversion 😞
    kenkyee
    a
    6 replies
    Copy to Clipboard
  • p

    pavlospt

    4 years ago
    hey everyone, we get the following exception when running Detekt.
    Running detekt 'unknown' on Java '1.8.0_144-b01' on OS 'Mac OS X'.
    ▸ Please create an issue and report this exception.
    ▸ java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
    ▸ java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
    ▸ java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1592)
    ▸ java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)
    ▸ java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    ▸ java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    ▸ java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    ▸ java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
    I am not sure where to look for the cause. Does anyone have any idea?
    p
    s
    4 replies
    Copy to Clipboard
  • Jukka Siivonen

    Jukka Siivonen

    4 years ago
    I can't find any documentation how to set up Detekt in multi module Gradle project, any tips?
    Jukka Siivonen
    1 replies
    Copy to Clipboard
  • fabio.carballo

    fabio.carballo

    4 years ago
    Hey! I'm trying to implement custom detekt rules:- I added a new module for the rules - Added the new rule and tests (and it's working) - Added the META-INFO/services/... to point to the custom rule set provider. - Integrate the new ruleset with my project. My problem is that I just can't get the rule to be flagged (although the new ruleset appears in the output). Even if call
    report
    without any condition. Has anyone faced this?
    fabio.carballo
    m
    +2
    16 replies
    Copy to Clipboard