Skip to content

Narrow auto-configure checkstyle suppressions #21015

@dreis2211

Description

@dreis2211

Hi,

I did a quick look over the checkstyle-suppressions.xml to initially get rid of unneeded stuff. While doing so, I noticed that some checks are in my opinion a bit too broad and cover up some minor issues. E.g. the following suppressions:

	<suppress files="[\\/]autoconfigure[\\/]" checks="JavadocType" />
	<suppress files="[\\/]autoconfigure[\\/]" checks="JavadocVariable" />

cause DispatcherServletAutoConfiguration#DEFAULT_DISPATCHER_SERVLET_BEAN_NAME to have no comment although it's just not using the correct style for the field.

It's mostly missing comments on enums that the above checks suppress. I would volunteer to put a comment everywhere (or fix their style). The same would apply for the Ansi.* suppressions. And if they really don't make sense, I would change them to suppress specific files instead.

But as this means a bit tedious work, I wanted to know your opinion first ;-)

Cheers,
Christoph

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions