question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

disabledRules broken in 2.3.0?

See original GitHub issue

After upgrading from 2.2.0 to 2.3.0 formatKotlin complains about wildcards: Format could not fix > [no-wildcard-imports] Wildcard import, and it tries to order my imports. This is explicitly disabled in my kotlin dsl config:

apply(plugin: "org.jmailen.kotlinter")
kotlinter {
    disabledRules = ["no-wildcard-imports", "import-ordering"]
}

Any ideas which change could have triggered this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lwasylcommented, Feb 8, 2020

When you say the tasks were configured eagerly in this project, I guess Iā€™m not spotting the code that indicates that ā€“ can you point it out?

Thereā€™s nothing in the snippet posted, but since OP indicates itā€™s a pretty complex multiproject build, itā€™s not uncommon to have a plugin or other piece of common script do something like project.tasks.all { } or tasks.whenTaskAdded { }, which makes all tasks get realized as soon as theyā€™re registered. Even Kotlin plugin had a bug that caused this. In any case it seems like the only possible scenario of this bug happening, as in fact task getting created immediately would make it unaware of configuration provided in extension

1reaction
mateuszkwiecinskicommented, Feb 5, 2020

Thanks for all the valuable information šŸ™ The ktLintParams should be already filled in, in the configuration phase, so the disabledRules=[] shouldnā€™t ever happen with your config. Thanks again, and Iā€™ll try to narrow down possible scenarios why that could be happening šŸ¤”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial: How to enable/disable/clone rules! | Palo Alto Networks
This video covers disabling, enabling and cloning rules. ... You can easily select multiple rules and disable/enable them at the same time.
Read more >
Managing Alerts ā€” Security Onion 2.3 documentation
Disable the SIDā€‹ā€‹ We can start by listing any currently disabled rules: sudo so-rule disabled list No rules disabled. Next, let's disable SID...
Read more >
disabled-rules for ktlint in .editorconfig is ignored #112 - GitHub
I am aware that accepting indent_size from .editorconfig is still broken. Going to have to adjust the strategy for using the .editorconfig fileĀ ......
Read more >
Total War: WARHAMMER III - Update 2.3.0
Rules & Systems. Offering to join a war alongside an endgame faction to fight a hated enemy will now always grant a positive...
Read more >
Magento broken after module disable
I have a huge problem with Magento on a live platform. I've disabled a few modules, which I don't use, via a command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found