Skip to content
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

onlyEnableWithConfig confusion #82

Open
goodwillcoding opened this issue Nov 21, 2023 · 1 comment
Open

onlyEnableWithConfig confusion #82

goodwillcoding opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@goodwillcoding
Copy link

goodwillcoding commented Nov 21, 2023

Is there more information on onlyEnableWithConfig. This does not seem to work. I have following directory structure

foo.code-workspace
bar\
  .swiftlint.yml

And it does not lint based on that file being present with the onlyEnableWithConfig option enabled.

I tried adding moving .swiftlint.yml to the same level as foo.code-workspace and it still did not work

foo.code-workspace
.swiftlint.yml
bar\
  .swiftlint.yml

I do NOT have and Swiftlint: Config Search Paths defined.

@vknabel
Copy link
Owner

vknabel commented Jun 22, 2024

If you want to only lint if there is a config, you also need to provide swiftlint.configSearchPaths along with swiftlint.onlyEnableWithConfig. I'll update the docs accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants