diktat icon indicating copy to clipboard operation
diktat copied to clipboard

Typed configuration

Open nulls opened this issue 2 years ago • 1 comments

          Good by for now, anyway need to go step-by-step here. I think we will need a fixed schema with keys that would be rule names, for example:
[LONG_LINE]
    enabled=true

or

"LONG_LINE": {
     "enabled": "true"
}

Originally posted by @akuleshov7 in https://github.com/saveourtool/diktat/pull/1686#discussion_r1226937255


  • [ ] #1829
  • [ ] #1041
  • [ ] Support hierarchy in configurations
  • [ ] Warn messages should be configurable (substitution)

nulls avatar Jun 13 '23 08:06 nulls

We have two two plugins and one external spotless where we can configure rules. We can use code-generation: we specify configuration in a single place and it generates configuration for gradle and maven plugins + classes for rules in diktat-rules. Such approach also will allow to support different sources: old yml, editorconfig and in-code settings.

nulls avatar Dec 01 '23 09:12 nulls