SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

A tool to enforce Swift style and conventions.

Results 379 SwiftLint issues
Sort by recently updated
recently updated
newest added

## New rule request array initialize using [] instead () ### Bad ``` var emptyArray = [Int]() ``` ### Good ``` var emptyArray: [Int] = [] ``` 1. using []...

rule-request
discussion

### 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...

bug

### 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...

bug

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...

enhancement
integration

### 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...

rule-request

### 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...

help

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...

help