diktat icon indicating copy to clipboard operation
diktat copied to clipboard

Support ignoring `EMPTY_BLOCK_STRUCTURE_ERROR` with config

Open sanyavertolet opened this issue 3 years ago • 2 comments

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

sanyavertolet avatar Nov 09 '22 12:11 sanyavertolet

@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 101ea6fccde86612063fde25b30d3a514097d236, a part of:

  • #1529

Anything else?

Anything else?

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

nulls avatar Mar 20 '23 09:03 nulls