Closed aleinin closed 4 months ago
Thanks @aleinin for your contribution!
For now i am not sure if this will make it into ls-lint in case of some downsides to this - but i will leave this open! the pr LGTM
I like this rule. This one is somehow a negation of "exists" rules
its like the new exists:0
definition
I assumed it, thanks for confirming
For anyone interested. You can now use exists:0
as a rule. Please check the documentation
@ccoVeille v2.3.0
is not released yet - there is one single piece that is missing
Author opened the issue 4 months ago. I assumed he could wait a few more days/week.
But you are right, it's not yet available or documented
As far i can tell this is one of the most challenging tasks for me - its beautiful how wildcard extensions, selected files and exists working together magically
Exists without wildcards would have been very limited
This feature is now available in the v2.3.0-beta.1
release.
Please test it and let me know if there are any issues ❤️
The upcoming v2.3.0 blog post: https://ls-lint.org/blog/announcements/v2.3.0.html The docs: https://ls-lint.org/2.3/getting-started/introduction.html The release notes: https://github.com/loeffel-io/ls-lint/releases/tag/v2.3.0-beta.1
Example implementation for a disallow rule as I mentioned in #201 if the maintainers are interested in the feature. Open to all feedback.
I have not written Go before, so I apologize if there are beginner mistakes, but I added testing where possible.
I compiled and installed it locally and here is an example usage and the results:
will result in (given matches for each)