-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration via Command Line Flags? #1323
Comments
There's no way to do this currently. |
Maybe Workspace could ship with its own Although from what I can tell, Workspace is mostly intended to be built via SPM, which doesn't build bundles but static executables, so you could write the config file to |
@jpsim, That would work, provided:
Actually, for now it installs its own Git repository within |
Yes, you're correct on all counts there. |
I’m closing this because its various aspects are each covered in other issues. |
(Related to #1207, but more specific.)
Is there a way to specify configuration options with command line flags, and still have them merged with any extant
.swiftlint.yml
files, or at least some other way of achieving a similar effect?The reason I want to do this is that I am writing a project manager for Swift, Workspace, that stitches together and helps automate various tools like SwiftLint.
There are several configuration options that are necessary for SwiftLint to cooperate with the other tools, such as excluding the Swift Package Manager’s
Packages
folder. Right now I do this by writing a.swiftlint.yml
file to the project root before running SwiftLint and deleting the file afterward. The problem with the current set‐up is that when a user wants to customize SwiftLint further by writing his or her own.swiftlint.yml
, he or she must figure out what those basic necessary options are and include them manually.I am looking for a way of specifying such options without touching any
.swiftlint.yml
files, so that they properly take effect no matter what, and at the same time the user can fully customize SwiftLint.The text was updated successfully, but these errors were encountered: