mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
fe905f8ae9
While browsing the rules documentation, I noticed **many** rules were both in the Default Rules and in the Opt In Rules section. After looking into it, the docs of the `drop(while predicate: (Element) throws -> Bool` function states: A closure that takes an element of the sequence as its argument and returns true if the element should be skipped or false if it should be included. **Once the predicate returns false it will not be called again.** This caused the `defaultRuleDocumentations` array to contain almost all `ruleDocumentation`.