File Types Order Violation: A 'main_type' should not be placed amongst the file type(s) 'supporting_type' (file_types_order) #154
-
In what area do you have a technical challenge?Xcode, Simulator & Previews DescriptionHi! I have several files for data visualizations. I'm refactoring my code by having one file include "child" views that make up individual charts that are used, and another be the "parent" view that uses the charts. However, I'm running into the following lint error: File Types Order Violation: A 'main_type' should not be placed amongst the file type(s) 'supporting_type' (file_types_order) What does this mean, and what is the best way to fix it? ReproductionAs above. Expected behaviorAs above. Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@shreyadsouza You can learn more about the rule here: https://realm.github.io/SwiftLint/file_types_order.html. It includes some great examples and how the file structure order is defined. |
Beta Was this translation helpful? Give feedback.
@shreyadsouza You can learn more about the rule here: https://realm.github.io/SwiftLint/file_types_order.html. It includes some great examples and how the file structure order is defined.