swiftlint Questions
5
Solved
When installing swiftlint with homebrew everything installs correctly but when I open xcode I see the message that swiftlint isn't installed. I read this issue & it say's the homebrew installs ...
Taster asked 1/2, 2021 at 11:1
12
I tried to install SwiftLint using CocoaPods and I add in Build phases the following script :
"${PODS_ROOT}/SwiftLint/swiftlint"
SwiftLint is installed correctly and I get many errors and warn...
3
Solved
My switch case is auto formatted when i do Cntrl + i , like below
switch someBool {
↓case true:
print("success")
↓case false:
print("failed")
}
but its throws a lint warnin...
Isabeau asked 5/2, 2021 at 16:30
3
Solved
I have installed swiftlint using cocoapods and it is working properly
But when I am trying to use swiftlint autocorrect command in the terminal, it is giving below error
-bash: swiftlint: command...
4
struct Email {
struct Constraints {
static let top = 20.asConstraint()
}
static let placeholder = "login_email"
}
How to fix that issue?
4
Solved
I'm integrating SwiftLint, via Cocoapods, into an existing project.
My project directory is as such:
AppNameRepo
|-- AppName
| |--.swiftlint.yml
|--AppName.xcworkspace
|--Pods
And my .swiftlint...
2
I have integrated SwiftLint using pods and its working fine to produce warnings and errors. But I want to configure .yml file. For this I use following command on terminal.
swiftlint lint --config...
7
I'm trying to do something like this in my .swiftlint.yml file:
force_cast:
severity: warning # explicitly
excluded:
- Dog.swift
I have this code and I don't like the force_try warning I'm ge...
Prohibition asked 23/9, 2016 at 16:46
4
Solved
I'm creating a new iOS app using Xcode 11 (beta 5), and I'd like to use Swift Package Manager instead of CocoaPods for managing dependencies.
A common pattern when using SwiftLint and CocoaPods is ...
Folkrock asked 12/8, 2019 at 13:2
2
Solved
I am working on an iOS Swift project. Git is being used for version controlling. I want to run swiftlint tool only for newly changed files. On other words, I want to check static issues only for th...
Schumer asked 3/5, 2019 at 5:38
7
Solved
I am getting Command PhaseScriptExecution failed with a nonzero exit code error frequently, The below workarounds which I followed but didn't help me.
Workaround1: Keychain Access -> Right-click o...
6
I am trying to fix this error:
Error: swiftlint does not have a version "0.11.1" in the Cellar.
by running this:
brew install swiftlint-0.11.1
however this doesn't work, then I tried "brew se...
3
So far what I found is this blog article: It's time to use Swift Package Manager which recommends integrate SwiftLint and other tools with Package.swift.
I was able to add dependency to the packag...
Dockhand asked 21/8, 2019 at 10:5
5
How can we fix the "Trailing Whitespace Violation" warnings caused by swiftlint in my iOS project all in one go? I don't want to manually correct each one of them. Moreover, I don't want to disable...
4
Solved
I am looking to disable a couple of SwiftLint rules for the unit tests within my application.
For example I am wanting to disable the weak_delegate rule for my unit tests.
Having looked at the Sw...
Incorruptible asked 19/9, 2018 at 16:14
3
Solved
my question is very simple, how do I make all warnings become errors on SwiftLint? (without manually configuring each rule separately)
Aristaeus asked 23/2, 2017 at 4:7
2
In running swiftlint version 0.24.0, errors are reported. Running autocorrect states that the files have been corrected. Yet no modifications are made as a subsequent run of swiftlint proves.
See t...
1
I m running jobs on Mac-os-11. I have integrated the SwiftLint locally as well and that is working fine. But When someone raise the pr I need to run the SwiftLint on GitHub actions. How can I do th...
Palliative asked 22/3, 2022 at 10:10
2
Solved
I am using a setup on Xcode that runs the following script for SwiftLint
if which $PATH/swiftlint >/dev/null; then
$PATH/swiftlint
elif which $HOME/.brew/bin/swiftlint >/dev/null; then
$HOME...
1
I am running into a strange behavior with swiftlint autocorrect. My project uses a library imported through SPM. But when I run the linter, it changes settings like the following
B4621A7323D0A90F0...
Degradation asked 20/1, 2020 at 20:20
20
Solved
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:connection-event-handler:10499: 0.0000] Connection interruptsourcekit: [...
4
Solved
I use swiftlint in my project. The project name is ABC xx and it works fine with swiftlint. Now I decided to include Unitest in my application and I have to import @testable import ABC_xx into the ...
3
Solved
Please help me to understand how to uninstal swiftlint, or how to switch it warnings off completely(because it starts to ignore all rules from time to time).
I installed swiftilnt from pkg file, an...
1
extension CGRect {
var x: CGFloat {
set { self.origin.x = newValue }
get { return self.origin.x } > got warning this line
}
}
warning:
Implicit Getter Violation: Computed read-only pro...
3
Solved
How to fix Line Length Violation?
Relevant part of alert message that isn't allowed due to Line Length Violation: message: NSLocalizedString("\nYou will be requested to Use %@ to Sign In. %@ doesn...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.