Commit f88fc8b
ci: fix brew style violations in generated cask
The Casks/nssh.rb that goreleaser pushed for v2.4.1 fails `brew test-bot`
with two RuboCop offenses:
- Style/IfUnlessModifier on the `if OS.mac?` postflight block — fixed
by rewriting it as a modifier-if. The guard is still needed because
the cask has on_linux URL stanzas, so postflight can theoretically
run on linuxbrew where /usr/bin/xattr doesn't exist.
- Layout/EmptyLinesAroundBlockBody on the trailing blank before the
cask's closing `end`. That blank is from goreleaser's template
emitting `# No zap stanza required\n\n` when no zap is configured.
Adding a real zap stanza replaces the placeholder. The paths chosen
(~/.local/state/nssh, ~/.config/nssh) match what nssh actually writes
on the local Mac (logs, session state, optional config.toml).
Cut a v2.4.2 release after this merges to regenerate Casks/nssh.rb
and clear the red status on abizer/homebrew-tap master.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 08d386c commit f88fc8b
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
0 commit comments