-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move examples to separated files #1704
Comments
I don't think there's significant value in the Pro's section to warrant doing this. 🤷♂️ |
I think we definitely should adopt multiline strings first and see how it turns out. Having the examples poorly formatted is pretty bad IMO. |
Yeah, but isn't the whole solution there to just visually inspect the (lovely) Rules.md file now? |
I'm not sure I follow, but the issue is that we use those examples to generate the Rules.md file, so some snippets there have really weird formatting. |
Sorry, I wasn't clear. I mean that since the examples do exist in a format where we can visually confirm that they're properly formatted (i.e. the |
Yes, hopefully we can fix that in the near future 🙏 |
Addressed in #3016. |
Maybe we should move nonTriggering/triggering/corrections examples to their own files:
Pros:
String
s in Swift, it's hard to properly format them. With multiline literals in Swift 4, this will get better, but probably it won't be good enough. This is important for documentation.sourcekitten
and see if the file is parsed correctly (i.e. is valid Swift code).Cons:
swiftlint rules a_rule_identifier
? We can't bundle resources with SPM.The text was updated successfully, but these errors were encountered: