-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Hi there
So I'm facing the issue which is actually very common for all other linters and formatters, such as SwiftLint and SwiftFormat.
I've created a file called .iblinter.yml in my project root folder, and I choose to ignore all storyboards in Example/Storyboards path.
excluded:
- Example/StoryboardsThis all works as expected if I just run iblinter in the root folder.
But, if I use --path option, e.g. iblinter --path Example, then IBLinter ignores my config file even if I run this command from the project root.
As I said, this is not something specific for IBLinter, SwiftFormat and SwiftLint have same behavior.
While I must say rubocop is different and respects config files from the project root.
With SwiftLint and SwiftFormat I was able to use -c / --config option and tell the tools that doesn't matter which paths I want to check, they still should use specific config file.
IBLinter is missing the -c / --config option though.
Could this option be added?
Then I would be able to run
iblinter --config $(pwd)/.iblinter.yml --path Example
and all my custom rules / exclude paths defined in the config will still apply