fastruby / dotenv_validator

This gem check if required env variables are present and its format using the .env and .env.sample files from Dotenv.
https://www.fastruby.io/blog/open-source/introducing-dotenv-validator.html
MIT License
50 stars 4 forks source link

Raise exception if `.env.sample` file is not found? #24

Closed etagwerker closed 3 years ago

etagwerker commented 3 years ago

Before we start...:

Branch/Commit:

main branch.

Describe the feature:

Maybe we should raise an exception if the user is trying to use the library without a .env.sample file?

Problem:

This library doesn't do anything if you don't have a .env.sample file in the root directory of your application, which could lead to bug reports because .env.sample is not found.

Resources:

Trying to follow the "principle of least astonishment" here: https://en.wikipedia.org/wiki/Principle_of_least_astonishment

I will abide by the code of conduct