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

This PR: * Makes `duplicate_imports` rule correctable. * Fixes an issue where more than one duplicate resulted in redundant violations being reported. For example in this file: ```swift import Foundation...

### 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 testing an integer bit field...

bug

This has breaking changes to the SwiftLintFramework public API if anyone actually happens to be using that.

This API allows us to mostly remove `#if` conditionals which enables cross compilation from macOS -> Linux. It also removes the thrashing of Package.resolved if you compile in a docker...

I like to have a single empty line in between logical blocks, and two empty lines in between functions, at the top of a class, and at the bottom of...

enhancement

### 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 Possibly somewhat of a duple of...

question

### 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 Hello SwiftLint Team! I have a...

### 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 the `indentation_width` is enabled, it...

enhancement

We'd like to have a way to enable and disable rules based on the file name of the swift file. ## Solutions we considered Child/parent configs seem like it's for...

enhancement

I want to save a json report of my SwiftLint BuildToolPlugin so I can use it elsewhere. I am currently trying the following: ``` import PackagePlugin @main struct SwiftLintPlugin: BuildToolPlugin...

question