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

Check for missing keys #206

Open
KristobalJunta opened this issue Mar 24, 2020 · 2 comments
Open

Check for missing keys #206

KristobalJunta opened this issue Mar 24, 2020 · 2 comments

Comments

@KristobalJunta
Copy link
Contributor

Have you considered adding a rule to check for missing keys?

One possible use for that: on a system where application is running for some time and with periodical updates, a situation is possible, where an update will introduce a new key and that should be checked in .env

Not sure if this is in scope of a linter though, or should this be enforced by sane defaults/exceptions on application end.

@sobolevn
Copy link
Member

Can you please provide an example?

Something like dotenv-linter .env --strict-keys=SHOULD_BE_PRESENT,OTHER_REQUIRED?

@KristobalJunta
Copy link
Contributor Author

I was more about validating a .env file against some example or template one. Like, validating the current .env against version-controlled .env.example.

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

No branches or pull requests

2 participants