Skip to content

Commit 13fbfa7

Browse files
kpumukcodex
andcommitted
Add make style targets for Ruby
Client: rb Run RuboCop safe autocorrection for the Ruby library, cross-language tests, and tutorial through the existing Autotools style hooks. Co-Authored-By: OpenAI Codex (gpt-6.1-sol) <codex@openai.com>
1 parent 5248fb2 commit 13fbfa7

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎lib/rb/Makefile.am‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ check-local: all
4545

4646
endif
4747

48+
style-local:
49+
cd $(srcdir) && bundle exec rubocop -a
50+
4851
dist-hook:
4952
$(RM) -r $(distdir)/spec/gen-rb/
5053

‎test/rb/Makefile.am‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ if HAVE_BUNDLER
3030
$(BUNDLER) exec $(RUBY) -I. test_suite.rb
3131
endif
3232

33+
style-local:
34+
cd $(srcdir) && bundle exec rubocop -a --config ../../lib/rb/.rubocop.yml
35+
3336
clean-local:
3437
$(RM) -r gen-rb/
3538

‎tutorial/rb/Makefile.am‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ tutorialserver: all
2828
tutorialclient: all
2929
${RUBY} RubyClient.rb
3030

31+
style-local:
32+
cd $(top_srcdir)/lib/rb && bundle exec rubocop -a --config .rubocop.yml ../../tutorial/rb
33+
3134
clean-local:
3235
$(RM) -r gen-*
3336

0 commit comments

Comments
 (0)