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
Release v3.0.0 #334
Comments
Maybe renaming |
If it matters to you then I can do it. |
Totally agree with you 👍 If you don't mind I propose to close the topic about renaming the branch and move on to discussing what should be included in the next release 🙂 |
@dotenv-linter/core What do you think about supporting multi-line values? |
I think we should do 👍 |
What about supporting a config file? |
I think a config file could be cool, but doesn't need to be on the top of the priority list. But of course it would be cool for |
Actually
We can also consider a popular format for configurations - |
I'm not to opinionated about this but somehow like the other ones a bit more. But if you feel like |
I thought about using the |
Why not use ENV as the config format? No dependencies, discourages nested clutter, quite apropos. YAML is rather heavy, and ambiguously interpreted due to the myriad of features in can support in the full spec (I think it has undefined numbers, -0, functions, etc) - none of which is relevant to this kind of project. |
We are planning to store in a config file:
excluded:
- dir1
- dir2/.env.test
UnorderedKey:
enable: false
QuoteCharacter:
enable: true
excluded:
- dir3/.env.test That's an example. Can you give an example of how to do this with ENV? |
My first question would be: Why? That example is too hypothetical for me to be able to understand a particular use case. I'm going to counter with what I think is a practical example, and what I think a solution might be: Example with Multiple Projects~/.config/dotenv-linter/.envlint
~/api-project-a/.env
~/api-project-a/.env.local
~/api-project-a/.env.dev
~/api-project-a/.envlint
~/system-project-q/.env
~/system-project-q/.env.test
~/system-project-q/.envlint
~/system-project-q/sub-project-module/.env
~/system-project-q/sub-project-module/.env.test
~/system-project-q/sub-project-module/.envlint
~/system-project-q/sub-project-module/.envlint-odd Configs might look like this, but again I don't quite understand what kind of use case would need this.
# comma- or space-delimited list
EXCLUDED="dir1/,dir2/.env.test,dir3/"
# empty is default, otherwise TRUE or FALSE
UNORDERED_KEY=
# either
QUOTE_CHARACTER=TRUE # How would this even work? Looks recursively for .env-prefixed files?
# That seems weird in the first place, to me.
dotenv-linter -r ./
# comma- or space-delimited list
EXCLUDED=
# empty is default, otherwise TRUE or FALSE
UNORDERED_KEY=
# empty is default, otherwise TRUE or FALSE
QUOTE_CHARACTER=FALSE dotenv-linter -c .envlint-odd -r ./ -r ./special-dir/ Given
Proposal
I argue that the burden of defying common convention should fall to the defiant party, not to |
I like your proposal @coolaj86 even if it feels a bit odd to me. I would add that we could also add the files/directories which should be linted to the configuration.
|
A few observations:
But using the |
I get that, but what's the use case for config in non-project directories? Personally, I would always want linter config in the project directory and I would that that project's linter config to always take precedence over my own personal default style. What's the opposing view?
Correct, in my proposed solution you would run Again, however, I don't understand the use case. I doubt that it would actually be necessary to do this. If you personally have a use case, please explain. I understand that theoretically there are infinite permutations - I just prefer solutions that handle finite known cases because that tends to lead towards less complexity in decision making and coding.
Tell me more. Show me a directory structure, or tell me a user story of how this could benefit people working on an open source project together, or help co-workers tame config files on-the-job, or whatever... P.S. Not that I have any real say in this project - being more of a passerby that happened to start using it - but, if a config file is desirable, I'd like to drive towards the most likely and most well-defined uses cases. |
I realized that we don't need a configuration file yet, because we don't yet understand what to store there. Moreover, we can now customize dotenv-linter using arguments such as |
We are happy to announce the release of dotenv-linter - v3.0.0 🥳 |
Just wanted to chime in again on the Although I don't play into the politics of the day, I agree that it's just as well if
Since github has made this a hard and fast decision (idiom meaning definite and secure, NOT difficult and hasty), and |
What should be included in the new release v3.0.0.
Features:
--no-color
option (Color output and --no-color option #307)compare
command (Add compare command #282)export
prefix (Support export prefix? #337)Improvements:
QuoteCharacterChecker
and values with whitespaces (Many values SHOULD be quoted #343)Infrastructure:
Site:
GitHub Action:
--no-color
flag (Add --no-color flag action-dotenv-linter#21)What do you think should be included in the new release?
/cc @dotenv-linter/core
The text was updated successfully, but these errors were encountered: