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

Support ignoring EMPTY_BLOCK_STRUCTURE_ERROR with config #1554

Open
sanyavertolet opened this issue Nov 9, 2022 · 2 comments
Open

Support ignoring EMPTY_BLOCK_STRUCTURE_ERROR with config #1554

sanyavertolet opened this issue Nov 9, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sanyavertolet
Copy link
Member

We need to support ignoring EMPTY_BLOCK_STRUCTURE_ERROR by passing special configuration through diktat-analysis.yml

@0x6675636b796f75676974687562
Copy link
Member

0x6675636b796f75676974687562 commented Dec 21, 2022

@sanyavertolet, could you please provide some examples (the code as well as how it is supposed to be suppressed via diktat-analysis.yml)? I'm afraid, as time passes, we may both forget what this issue is about.

I recall there's a common use-case with a logger factory accepting an empty lambda. This was implemented by @nulls in 101ea6f, a part of:

Anything else?

@nulls
Copy link
Member

nulls commented Mar 20, 2023

Anything else?

hr {} and another html's blocks in frontend apps

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

3 participants