SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

type_contents_order_only_specified_types

Open dusekpetr opened this issue 5 years ago • 2 comments

Hello, im trying to allow type_contents_order rule just for ViewControllers, or disable it for Enums and Structs, because in VC it is better to have subtype declaration at top but in Enum with for example CodingKeys it is better to have subtype CodingKeys at bottom and I don't know how to do this. I think it is impossible for now. Should it be added?

dusekpetr avatar Aug 17 '20 09:08 dusekpetr

@Dschee added this rule, maybe he can share his thoughts on this.

jpsim avatar Nov 07 '20 20:11 jpsim

How can I use the above rules?

bugkingK avatar Jan 05 '21 03:01 bugkingK