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

Comments

Projects
None yet
3 participants
@auryn31

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

This comment has been minimized.

Show comment
Hide comment
@bestlem

bestlem 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

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

This comment has been minimized.

Show comment
Hide comment
@auryn31

auryn31 May 15, 2017

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

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 from Use global files in .swiftlint.yml file to Use environment variables in .swiftlint.yml file Jul 4, 2017

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 22, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 22, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 22, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 23, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 23, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 25, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 26, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Jul 29, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)

marcelofabri added a commit to marcelofabri/SwiftLint that referenced this issue Aug 1, 2017

Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes realm#1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes realm#1424)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment