-
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
Allow parent config as an argument #5421
Comments
You can also pass multiple configurations to the command in which case the first configuration is treated as a parent and the second one as a child. Is this already sufficient for your use case? |
@SimplyDanny I didn't know about this. This might work. Do you know if in this case any further children would still be able to override any rules if they want. e.g for this directory structure
So in this case if I run |
I don't think it works. There is also this comment there
|
I noticed another issue.. If I pass in the path to lint then the
|
New Issue Checklist
Feature Request
I would like to add
--parent-config
argument to thelint
command. That way we don't have to specify theparent-config:
inside of the config file. The use case for this is that the parent config path is not known ahead of time and I need to pass it in from a temporary directory where it is pulled and I don't control the path of the directory.This is how it would look
It would add the parent config to the
.swiftlint
config file it reads during execution.The text was updated successfully, but these errors were encountered: