saveourtool / diktat

Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
https://diktat.saveourtool.com
MIT License
519 stars 39 forks source link

Diktat 2.0 doesn't apply `diktat-analysis.yml` in sub-project #1827

Closed nulls closed 8 months ago

nulls commented 8 months ago

Tested with MAGIC_NUMBER in frontend using gradle plugin

nulls commented 8 months ago

Actually, configuration is invalid:

- name: MAGIC_NUMBER
  enabled: true

  # reduces speed of development on the FE
  # will remove it by for now
- name: MAGIC_NUMBER
  enabled: false

It contains two configurations: one enabled, the second one -- disables it.

And removing the first configuration does help