Skip to content

Check .bash scripts in the Bashate workflow - #346

Open
EazyHood wants to merge 1 commit into
zerocracy:masterfrom
EazyHood:345
Open

EazyHood wants to merge 1 commit into
zerocracy:masterfrom
EazyHood:345

Conversation

@EazyHood

@EazyHood EazyHood commented Dec 3, 2026

Copy link
Copy Markdown

Fixes #345.

Lint both shell extensions listed in the workflow triggers. The existing Git metadata exclusion and handling of symlinked shell scripts remain in effect.

The regression test executes the workflow’s file-selection step and checks its arguments for a nested .bash script with a space in its name, a root .sh script, an unrelated text file, and Git metadata. It fails on master and passes here (1 test, 3 assertions). On Linux, Bashate 2.1.1 also reported the same E001 error in a .bash script and a symlinked .sh script, and skipped the file in .git. RuboCop passed for the new test.

The full Rake build passed on Linux with 7 tests and 44 assertions, one judge test, and no RuboCop offenses across eight files.

@EazyHood
EazyHood requested a review from yegor256 as a code owner December 3, 2026 15:15
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.

The Bashate workflow skips .bash files that trigger it

1 participant