@@ -87,30 +87,28 @@ tasks:
8787 - " {{.BUNDLE}} exec rspec --format documentation --color"
8888
8989 lint :
90- desc : Auto-fix Ruby code linting (rubocop + steep)
91- dir : packages/ruby
90+ desc : Lint all Ruby code with auto-fix (rubocop + steep across all directories)
9291 cmds :
93- - " {{.BUNDLE}} exec rubocop --config .rubocop.yml --autocorrect-all "
94- - " {{.BUNDLE}} exec steep check "
92+ - cmd : bash scripts/task/ruby-lint.sh fix
93+ platforms : [linux, darwin]
9594
9695 lint:check :
97- desc : Check Ruby code linting without modifications (rubocop + steep, no fixes)
98- dir : packages/ruby
96+ desc : Check all Ruby code linting without modifications (rubocop + steep)
9997 cmds :
100- - " {{.BUNDLE}} exec rubocop --config .rubocop.yml "
101- - " {{.BUNDLE}} exec steep check "
98+ - cmd : bash scripts/task/ruby-lint.sh check
99+ platforms : [linux, darwin]
102100
103101 format :
104- desc : Format Ruby code with modifications (rubocop)
105- dir : packages/ruby
102+ desc : Format all Ruby code with modifications (rubocop across all directories)
106103 cmds :
107- - " {{.BUNDLE}} exec rubocop --config .rubocop.yml --autocorrect-all"
104+ - cmd : bash scripts/task/ruby-lint.sh fix
105+ platforms : [linux, darwin]
108106
109107 format:check :
110- desc : Check Ruby code formatting without modifications (rubocop)
111- dir : packages/ruby
108+ desc : Check all Ruby code formatting without modifications (rubocop)
112109 cmds :
113- - " {{.BUNDLE}} exec rubocop --config .rubocop.yml"
110+ - cmd : bash scripts/task/ruby-lint.sh check
111+ platforms : [linux, darwin]
114112
115113 typecheck :
116114 desc : Run steep type checking
@@ -141,12 +139,13 @@ tasks:
141139 - " {{.BUNDLE}} outdated || true"
142140
143141 e2e:generate :
144- desc : Generate Ruby E2E tests from fixtures
142+ desc : Generate and auto-fix Ruby E2E tests from fixtures
145143 cmds :
146144 - cmd : bash scripts/task/e2e-generate.sh ruby
147145 platforms : [linux, darwin]
148146 - cmd : echo "E2E generation not yet supported on Windows - use WSL or CI"
149147 platforms : [windows]
148+ - task : e2e:format
150149
151150 e2e:test :
152151 desc : Run Ruby E2E tests
@@ -155,11 +154,16 @@ tasks:
155154 - BUNDLE_GEMFILE="../../packages/ruby/Gemfile" {{.BUNDLE}} exec rspec
156155
157156 e2e:lint :
158- desc : Lint Ruby E2E code
157+ desc : Lint Ruby E2E code (check only)
158+ dir : e2e/ruby
159+ cmds :
160+ - " {{.BUNDLE}} exec rubocop --config .rubocop.yaml"
161+
162+ e2e:format :
163+ desc : Auto-fix Ruby E2E code formatting
159164 dir : e2e/ruby
160165 cmds :
161- - BUNDLE_GEMFILE="../../packages/ruby/Gemfile" {{.BUNDLE}} exec rubocop --config .rubocop.yml
162- - BUNDLE_GEMFILE="../../packages/ruby/Gemfile" {{.BUNDLE}} exec steep check
166+ - " {{.BUNDLE}} exec rubocop --config .rubocop.yaml --autocorrect-all"
163167
164168 e2e:verify :
165169 desc : Regenerate and validate Ruby E2E suite (generate + lint + test)
0 commit comments