As part of our usage of Swiftlint, I'd like to propose being able to support a different path for configuration file, instead of being always .swiftlint.yml.
Like my previous suggestions, happy to prepare a PR for this.
We have two use cases for this:
.swiftlint.yml). Swiftlint is a core part of our workflow and we've found some people are not sure where the configuration is, because, by default, macOS doesn't show hidden files.I'd imagine simply another command line param e.g.: swiftlint --config-path=./swiftlint-ci.yml
Given that you can have swiftlint configuration files nested in folders, I'd expect them all to be named the same in the case, you can't mix and match.
Is this something useful or on your roadmap?
You can use --config already.
Although I don't think nested configurations are supported currently (e.g. having all of them to be called config.yml).
cool, couldn't find anything documented but I see it in the code now.
Thanks!
You can use swiftlint help lint to see all available options 馃槉
@amlcurran, #1693 has a discussion on the possible future interaction of configuration merging and command line flags. (As Fabri said above, they are currently mutually exclusive.)
From what you鈥檝e said, it would directly affect (and hopefully help) your use case. I would love it if you would read #1693 and share some of your own thoughts.
Most helpful comment
You can use
swiftlint help lintto see all available options 馃槉