Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed configuration #1694

Open
4 tasks
nulls opened this issue Jun 13, 2023 · 1 comment
Open
4 tasks

Typed configuration #1694

nulls opened this issue Jun 13, 2023 · 1 comment
Assignees
Labels
epic Major feature, could be decomposed into smaller tasks
Milestone

Comments

@nulls
Copy link
Member

nulls commented Jun 13, 2023

          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 #1686 (comment)


@nulls
Copy link
Member Author

nulls commented Dec 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Major feature, could be decomposed into smaller tasks
Projects
None yet
Development

No branches or pull requests

1 participant