SwiftLint
SwiftLint copied to clipboard
A tool to enforce Swift style and conventions.
## New rule request array initialize using [] instead () ### Bad ``` var emptyArray = [Int]() ``` ### Good ``` var emptyArray: [Int] = [] ``` 1. using []...
### 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 unhandled_throwing_task is output as an 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 I'm running into the exact same...
Periphery has an (opt-out) update check: `--disable-update-check` I'm not sure how happy I'd be with an opt out network access, but I think a lot of people aren't updating SwiftLint...
### 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 Sort let and var propery name...
### 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 Hi there I might be missing...
Hey! I have added a new case to TypeContent enum for ib_segue_action. And also adapted the change in [TypeContentsOrderRule.swift](https://github.com/realm/SwiftLint/blob/main/Source/SwiftLintBuiltInRules/Rules/Style/TypeContentsOrderRule.swift).
### 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 I enable code coverage in...
Hi, This PR adds `all` pseudo-rule to enable all analyzer rules. Resolve #4999.
I want to use lookbehind in a custom rule but get `Invalid configuration for 'xxx'. Falling back to default.`. Is there any other way? #### Example No `setClass` on the...