Skip to content

Pass base path for ERBLint#4604

Merged
aduth merged 2 commits intomasterfrom
aduth-quote-lint-erb-glob-pattern
Jan 25, 2021
Merged

Pass base path for ERBLint#4604
aduth merged 2 commits intomasterfrom
aduth-quote-lint-erb-glob-pattern

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Jan 22, 2021

Previously: #4599

Why: So that make lint_erb matches all files (276), not just some (101).

I don't recall this having been an issue in my initial implementation.

A few alternatives exist which all solve the problem:

  • Call as bundle exec erblint --lint-all
  • Quote glob pattern string
  • Pass path (as proposed)

I think the original issue may be caused by differences in shell glob expansion when run through Make? The existing bundle exec call works fine when run standalone.

In any case, the current proposal is based on a bit of sleuthing to determine that the file argument passing supports directories, and by passing directories uses the default glob pattern (source).

aduth added 2 commits January 22, 2021 11:00
**Why**: So that `make lint_erb` matches all files (276), not just some (101).
Leverage internal glob pattern
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit 85fb8da into master Jan 25, 2021
@aduth aduth deleted the aduth-quote-lint-erb-glob-pattern branch January 25, 2021 13:08
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

Successfully merging this pull request may close these issues.

2 participants