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

Add exceptions for USE_DATA_CLASS: hibernate Entity and probably others #802

Closed
petertrr opened this issue Mar 19, 2021 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@petertrr
Copy link
Member

petertrr commented Mar 19, 2021

There are cases when using data class is not recommended by a particular library. We should either add them into the code or add a way to specify a set of annotations, that effectively suppress this rule.

Also we got a similar report here: #1316

@petertrr petertrr added the enhancement New feature or request label Mar 19, 2021
@orchestr7
Copy link
Member

Simple Suppress does not help?

@petertrr
Copy link
Member Author

It sure does, but this way every new developer should know that they need to place that Suppress annotation and that they don't need a data class, even though diktat suggests it. There is no obvious way for repository maintainer to enforce such a rule.

@petertrr
Copy link
Member Author

Should be fixed by #1328 (can now be configured)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants