yoheimuta / protolint

A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
MIT License
556 stars 51 forks source link

fix: allow ignored directories that already end in a path separator #342

Closed jedevc closed 1 year ago

jedevc commented 1 year ago

Previously, a config of the form:

lint:
  directories:
    exclude:
      - vendor/

would not ignore files in the vendor directory, since we would be attempting to match paths that begin with vendor//.

To fix this, we only append the path separator when the target does not already end in one.

yoheimuta commented 1 year ago

I've just released it as https://github.com/yoheimuta/protolint/releases/tag/v0.45.1.