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

Use environment variables in .swiftlint.yml file #1512

Closed
auryn31 opened this issue May 15, 2017 · 2 comments · Fixed by #1703
Closed

Use environment variables in .swiftlint.yml file #1512

auryn31 opened this issue May 15, 2017 · 2 comments · Fixed by #1703

Comments

@auryn31
Copy link

auryn31 commented May 15, 2017

Is it possible to use global vars from project in the .swiftlint.yml file?
I want to create a template for all projects and have a subfolder in these, that I want to exclude like this:

excluded: # paths to ignore during linting. Takes precedence over `included`.
  - $(PROJECT_NAME)/Extensions

is this possible? because this does not work :-(
thanks for help

@bestlem
Copy link

bestlem commented May 15, 2017

In this case just use
excluded: # paths to ignore during linting. Takes precedence over included.
- Extensions

As paths are relative to the current directory

@auryn31
Copy link
Author

auryn31 commented May 15, 2017

But if i only exclude Extensions he does not exclude the Folder
Directory/Extension
so the problem does exists further :-(

@marcelofabri marcelofabri changed the title Use global files in .swiftlint.yml file Use environment variables in .swiftlint.yml file Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants