Top "Swiftlint" questions

A tool to enforce Swift style and conventions, loosely based on GitHub's Swift Style Guide.

"${PODS_ROOT}/SwiftLint/swiftlint" causes "Command PhaseScriptExecution failed with a nonzero exit code" with Xcode 10

Updating from Xcode 10.0 beta 2 to Xcode 10.0 beta 3 I now get this error at build time for an iOS project: sourcekit: [1:…

swift xcode xcode10 swiftlint
SwiftLint: Exclude file for specific rule

I'm trying to do something like this in my .swiftlint.yml file: force_cast: severity: warning # explicitly excluded: - Dog.…

swiftlint
How to fix 'Line Length Violation: Line should be 120 characters or less' - SwiftLint

How to fix Line Length Violation? Relevant part of alert message that isn't allowed due to Line Length Violation: message: …

swift swiftlint
How do I create .swiftlint.yml file & where I need to put it?

I want to use Swiftlint in my Swift project. I followed the Realm instruction and installed Swiftlint by brew install …

swiftlint
How to install a specific version of swiftlint?

I am trying to fix this error: Error: swiftlint does not have a version "0.11.1" in the Cellar. by running this: …

homebrew swiftlint
Colon Violation: Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. (colon)

I am currently using SwiftLint for the perfect coding standards in my projects. After installing it I am getting so …

swift swiftlint
Swiftlint warning : For Where Violation: `where` clauses are preferred over a single `if` inside a `for`. (for_where)

I am using swift for my application development and using Swift lint. But I am getting a warning regarding the …

swift3 xcode8 swiftlint
How to fix "Trailing Whitespace Violation" warnings caused by swiftlint in Xcode?

How can we fix the "Trailing Whitespace Violation" warnings caused by swiftlint in my iOS project all in one go? …

ios swift xcode swiftlint
Legacy Constructor Violation: Swift constructors are preferred over legacy convenience functions. (legacy_constructor)

I'm getting a SwiftLint warning on this line: return UIEdgeInsetsMake(topInset, leftInset, bottomInset, rightInset) This is the warning : Legacy Constructor …

swift xcode swiftlint