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

Default location of configuration file #30

Open
tobijdc opened this issue Jan 11, 2023 · 1 comment
Open

Default location of configuration file #30

tobijdc opened this issue Jan 11, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tobijdc
Copy link

tobijdc commented Jan 11, 2023

At the moment the only default location for the configuration file .nginx-linter.json is in the home directory (~/.nginx-linter.json).
This means if you use one configuration file per repository/project to have this consistent and use it in CI, you will always have to add --config .nginx-linter.json.

My proposal would be to:

  • check for .nginx-linter.json in current directory
  • if not found check ~/.nginx-linter.json
@jhinch
Copy link
Owner

jhinch commented Jan 11, 2023

Seems like a reasonable idea. You are welcome to raise a pull request if you wanted to contribute

@jhinch jhinch added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants