Skip to content

Linter: Fix tinyglobby migration issues in linter CLI#1074

Merged
marcoroth merged 1 commit into
mainfrom
fix-tinyglobby-migration-issues
Jan 16, 2026
Merged

Linter: Fix tinyglobby migration issues in linter CLI#1074
marcoroth merged 1 commit into
mainfrom
fix-tinyglobby-migration-issues

Conversation

@marcoroth

Copy link
Copy Markdown
Owner

This pul request fixes an issue introduced by the tinyglobby migration in #843.

The linter CLI incorrectly processed files outside the specified directory when running commands like herb-lint app/views.

This was caused by the glob pattern construction producing app/views/{**/*.html,**/*.html.erb} which tinyglobby doesn't support.

The fix now correctly produces {app/views/**/*.html,app/views/**/*.html.erb} by prepending the directory path to each pattern individually before joining them.

Additionally migrates the custom rule loader from the old glob package to tinyglobby for consistency.

Resolves #1045

@pkg-pr-new

pkg-pr-new Bot commented Jan 16, 2026

Copy link
Copy Markdown
npx https://pkg.pr.new/@herb-tools/formatter@1074
npx https://pkg.pr.new/@herb-tools/language-server@1074
npx https://pkg.pr.new/@herb-tools/linter@1074

commit: c7108bd

@github-actions

github-actions Bot commented Jan 16, 2026

Copy link
Copy Markdown

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit c7108bd


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth merged commit a08f1e3 into main Jan 16, 2026
20 checks passed
@marcoroth marcoroth deleted the fix-tinyglobby-migration-issues branch January 16, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linter: CLI processes other files when I pass it a directory

1 participant