jsonschema-generator icon indicating copy to clipboard operation
jsonschema-generator copied to clipboard

Ordering and grouping of imports

Open JanLabrie opened this issue 6 years ago • 2 comments

Carsten,

About the ordering and grouping of the imports. Can we define the rule for this? I think best thing to do is to add this to the checkstyle.xml.

ImportOrder Rule

Jan

JanLabrie avatar Apr 30 '20 15:04 JanLabrie

I gave this a try but couldn't manage to prevent empty lines between imports.

This would probably be a good opportunity to move all individual checkstyle configuration files up into the parent directory to ensure that they are kept in sync.

CarstenEnglert avatar Apr 30 '20 19:04 CarstenEnglert

@JanLabrie apparently the checkstyle plugin dependency was too old. The line separators weren't checked in the older version – the newer version properly enforces the fact that no separators are expected between imports.

CarstenEnglert avatar May 09 '20 09:05 CarstenEnglert