SwiftLint
SwiftLint copied to clipboard
A tool to enforce Swift style and conventions.
### New Issue Checklist - [x] Updated SwiftLint to the latest version - [x] I searched for [existing GitHub issues](https://github.com/realm/SwiftLint/issues) ### Describe the bug When two or more protocols are...
### Describe the bug Swiftlint is ignoring disable comments since 0.47.0 and flagging warning and errors when it shouldn't. ##### Complete output when running SwiftLint, including the stack trace and...
Add `explicit_return` opt-in rule that warns against omitting the `return` keyword inside closures, functions and getters. This rule provides behavior opposite to `implicit_return` and complements it. It's disabled by default...
Bus error
### New Issue Checklist - [x] Updated SwiftLint to the latest version - [x] I searched for [existing GitHub issues](https://github.com/realm/SwiftLint/issues) ### Describe the bug `swiftlint lint` exits with a bus...
### New Issue Checklist - [x] Updated SwiftLint to the latest version - [x] I searched for [existing GitHub issues](https://github.com/realm/SwiftLint/issues) ### New rule request Please describe the rule idea, format...
Swift has no `protected` modifier. It still is handly. Currently we just make it public and just agree to not use certain functions/fields. This is obviously error prone. Best solution...
### New Issue Checklist - [x] Updated SwiftLint to the latest version - [x] I searched for [existing GitHub issues](https://github.com/realm/SwiftLint/issues) ### New rule request Similar to `deployment_target`, we could have...
### New Issue Checklist - [x] Updated SwiftLint to the latest version - [x] I searched for [existing GitHub issues](https://github.com/realm/SwiftLint/issues) ---- While updating our code base to use SwiftLint 0.48.0,...
Currently custom rules are limited to regular expressions which means they miss out on a lot of the power that the built-in rules can take advantage of. At my company...
Overview: This PR adds a new rule to enforce access control level (ACL) ordering within types. This rule expands upon the type contents order rule by using the same logic...