lukepistrol / swiftlintplugin Goto Github PK
View Code? Open in Web Editor NEWA Swift Package Plugin for SwiftLint
License: MIT License
A Swift Package Plugin for SwiftLint
License: MIT License
Why need to download binary?
Hi @lukepistrol, I'm using swiftlint 0.2.2. it takes too much time to fetch the artifact in github action.
more than 30 mins and still it's not completing the fetch. i have added the screenshot. could you pls help me on fixing this issue.
Need Enable swiftlint by default because I have error when I dont'n have DISABLE_SWIFTLINT in .env file
Subject: Unable to resolve Git reference in SwiftLintPlugin
Hi Team,
I am encountering an issue with the SwiftLintPlugin in our project. Specifically, I am seeing the following error:
fatal: reference is not a tree: f3586ed (on 0.2.3)
This error occurs when I try to run xcodebuild via Fastlane and it prevents me from resolving the package dependencies.
I have tried troubleshooting this issue on my end, but I have not been able to find a solution. I suspect that this issue is related to the Git reference that SwiftLintPlugin is using, as the error message mentions a specific reference.
Could you please investigate this issue and provide a solution? Please let me know if you need any additional information or if there are any further steps I can take to troubleshoot this issue.
Thank you for your time and assistance.
Best regards,
Karthik
Can it also generate a SwiftLint json report in the package directory?
We have some CI processes that we need SwiftLint reports for.....
Whenever I add the Swift Package Plugin to my Swift Package Xcode CPU maxes out and I basically can't edit any code anymore because it lags constantly. I have found other people having the same issue with other Plugins as well.
For instance here with SwiftGenPlugin
SwiftGen/SwiftGenPlugin#2
In this issue someone refers to issues with this SwiftLintPlugin as well. They say it might have something to do with a remote artifactbundle. I don't know what that means and how to resolve the issue. Unfortunately this means for me that the plugin currently is unusable.
I have tested it and the plugin itself works fine. I am seeing al my linting issues in Xcode properly whenever I build.
I have tested this on the official Xcode 14.0 release:
Version 14.0 (14A309)
I have simple SPM and can't get Swiftlint
to work. I guess it can't find .swiftlint.yml
I added config file in folder but still getting same error
Linting Swift files at paths /Users/Downloads/SPMSwiftLint-Test/Sources/MyApp
Error: No lintable files found at paths: '/Users/Downloads/SPMSwiftLint-Test/Sources/MyApp'
Command PhaseScriptExecution failed with a nonzero exit code
Linting Swift files at paths /Users/SPMSwiftLint-Test/Sources/MyApp
Error: No lintable files found at paths: '/Users/SPMSwiftLint-Test/Sources/MyApp'
Command PhaseScriptExecution failed with a nonzero exit code
any clue what I'm missing?
Package.swift
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "MyApp",
platforms: [
.iOS(.v16),
.macOS(.v13)
],
products: [
.executable(name: "MyApp", targets: ["MyApp"]),
],
dependencies: [
.package(url: "https://github.com/lukepistrol/SwiftLintPlugin.git", from: "0.54.0")
],
targets: [
.executableTarget(
name: "MyApp",
plugins: [
.plugin(name: "SwiftLint", package: "SwiftLintPlugin")
]
)
]
)
I've added SwiftLintPlugin as a build phase but I have a problem building the app in the CI where I explicitly provide a provisioning profile (ie. not using automagic signing)
I have the following error
error: SwiftLintPlugin does not support provisioning profiles. SwiftLintPlugin does not support provisioning profiles, but provisioning profile 3cf518f8-8e85-44f7-ac02-12f1ac55de03 has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'SwiftLintPlugin' from project 'SwiftLint')
How can I pre-build the plugin so that xcodebuild doesn't try to sign it with that particular provisioning profile?
Hi,
I added the TMDb package to a project in Xcode with the SPM. That package has SwiftLint and SwiftLintPlugin as dependencies.
If I archive the code locally from Xcode everything works fine, but when I try to do the same from Xcode Cloud it fails.
At first, I thought it was because I had linting issues, so I fixed them all. If I run SwiftLint locally I don't get any warning.
Checking the logs, I realized that wasn't the problem. The problem is:
Error: You don’t have permission to save the file “f5a82a99c7fcf819a5868248f7fe3ad5ac901d06aa1bfa62415f26aba3e78b03.plist” in the folder “A4FD347F-F59D-3FB2-835A-CAC16AC563DB”.
Then I thought, well, maybe I don't need to run the linter when archiving, and found that setting this env var (DISABLE_SWIFTLINT
) should disable the linter. I added it to the workflow but the error is still there.
I'm using Xcode 15.0
This is a reopen of #15
I've just run into the same issue, and moving over to the official plug in resolved the issue, but just adding the spm takes ages now as the swiftlint repo is a giant...
Looks like your version appears to be not including a specific plugin fix which involves disabling caching while running in CI mode - see this comment by a disgruntled developer 😅
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.