• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 25137726391
97%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2026 10:44PM UTC
Jobs 37
Files 155
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Apr 2026 10:43PM UTC coverage: 96.98% (-0.002%) from 96.982%
25137726391

push

github

web-flow
Lift trailing if/else into guard clauses (#2695)

Four methods ended in an `if/else` where one branch was a one-line
special-case detour and the other was the main flow. The `else`
existed only as a syntactic counterpart to `if`, pushing multi-line
main paths down an extra indentation level.

- `Grape::DSL::Parameters#requires` — `if opts[:using]` is the
  shortcut form; the main flow is `validate_attributes` + scope/push.
- `Grape::DSL::Parameters#optional` — same shape.
- `Grape::DSL::Parameters#declared_param?` — `if lateral?` delegates
  to `@parent`; the main flow is the `.any?` check.
- `Grape::API.configure` — `unless block_given?` returns the config
  reader; the main flow yields and returns `self`.

Each now uses a `return … if …` guard, leaving the main flow at the
method's top indentation. No behavior change; all 2,236 specs pass.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1079 of 1163 branches covered (92.78%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 2 files covered. (100.0%)

3352 of 3406 relevant lines covered (98.41%)

32203.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_0.gemfile - 25137726391.1 29 Apr 2026 10:44PM UTC 154
95.63
GitHub Action Run
2 run-3.2-Gemfile - 25137726391.2 29 Apr 2026 10:44PM UTC 154
95.68
GitHub Action Run
3 run-4.0-gemfiles/multi_xml.gemfile - 25137726391.3 29 Apr 2026 10:44PM UTC 154
35.98
GitHub Action Run
4 run-4.0-gemfiles/rack_3_2.gemfile - 25137726391.4 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
5 run-3.2-gemfiles/rack_2_2.gemfile - 25137726391.5 29 Apr 2026 10:44PM UTC 154
95.64
GitHub Action Run
6 run-3.3-Gemfile - 25137726391.6 29 Apr 2026 10:44PM UTC 154
95.63
GitHub Action Run
7 run-4.0-gemfiles/rack_2_2.gemfile - 25137726391.7 29 Apr 2026 10:44PM UTC 154
95.61
GitHub Action Run
8 run-3.4-gemfiles/rack_2_2.gemfile - 25137726391.8 29 Apr 2026 10:44PM UTC 154
95.61
GitHub Action Run
9 run-3.4-gemfiles/rails_8_1.gemfile - 25137726391.9 29 Apr 2026 10:44PM UTC 155
95.66
GitHub Action Run
10 run-4.0-gemfiles/hashie.gemfile - 25137726391.10 29 Apr 2026 10:44PM UTC 154
62.51
GitHub Action Run
11 run-3.4-gemfiles/rails_7_2.gemfile - 25137726391.11 29 Apr 2026 10:44PM UTC 155
95.66
GitHub Action Run
12 run-3.4-gemfiles/rack_3_2.gemfile - 25137726391.12 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
13 run-4.0-gemfiles/dry_validation.gemfile - 25137726391.13 29 Apr 2026 10:44PM UTC 154
57.81
GitHub Action Run
14 run-3.3-gemfiles/rails_8_0.gemfile - 25137726391.14 29 Apr 2026 10:44PM UTC 155
95.64
GitHub Action Run
15 run-3.4-gemfiles/rails_8_0.gemfile - 25137726391.15 29 Apr 2026 10:44PM UTC 155
95.66
GitHub Action Run
16 run-3.2-gemfiles/rails_8_0.gemfile - 25137726391.16 29 Apr 2026 10:44PM UTC 155
95.68
GitHub Action Run
17 run-4.0-gemfiles/rack_3_1.gemfile - 25137726391.17 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
18 run-4.0-gemfiles/rails_8_1.gemfile - 25137726391.18 29 Apr 2026 10:44PM UTC 155
95.66
GitHub Action Run
19 run-3.2-gemfiles/rails_7_2.gemfile - 25137726391.19 29 Apr 2026 10:44PM UTC 155
95.68
GitHub Action Run
20 run-3.2-gemfiles/rack_3_1.gemfile - 25137726391.20 29 Apr 2026 10:44PM UTC 154
95.68
GitHub Action Run
21 run-4.0-gemfiles/rails_7_2.gemfile - 25137726391.21 29 Apr 2026 10:44PM UTC 155
95.66
GitHub Action Run
22 run-4.0-gemfiles/grape_entity.gemfile - 25137726391.22 29 Apr 2026 10:44PM UTC 154
49.47
GitHub Action Run
23 run-3.2-gemfiles/rails_8_1.gemfile - 25137726391.23 29 Apr 2026 10:44PM UTC 155
95.68
GitHub Action Run
24 run-4.0-gemfiles/rack_3_0.gemfile - 25137726391.24 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
25 run-3.2-gemfiles/rack_3_0.gemfile - 25137726391.25 29 Apr 2026 10:44PM UTC 154
95.68
GitHub Action Run
26 run-3.4-gemfiles/rack_3_1.gemfile - 25137726391.26 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
27 run-3.3-gemfiles/rack_2_2.gemfile - 25137726391.27 29 Apr 2026 10:44PM UTC 154
95.59
GitHub Action Run
28 run-4.0-gemfiles/multi_json.gemfile - 25137726391.28 29 Apr 2026 10:44PM UTC 154
35.98
GitHub Action Run
29 run-4.0-gemfiles/rails_8_0.gemfile - 25137726391.29 29 Apr 2026 10:44PM UTC 155
95.66
GitHub Action Run
30 run-3.3-gemfiles/rack_3_2.gemfile - 25137726391.30 29 Apr 2026 10:44PM UTC 154
95.63
GitHub Action Run
31 run-3.3-gemfiles/rails_8_1.gemfile - 25137726391.31 29 Apr 2026 10:45PM UTC 155
95.64
GitHub Action Run
32 run-4.0-Gemfile - 25137726391.32 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
33 run-3.3-gemfiles/rack_3_1.gemfile - 25137726391.33 29 Apr 2026 10:44PM UTC 154
95.63
GitHub Action Run
34 run-3.4-gemfiles/rack_3_0.gemfile - 25137726391.34 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
35 run-3.3-gemfiles/rails_7_2.gemfile - 25137726391.35 29 Apr 2026 10:44PM UTC 155
95.64
GitHub Action Run
36 run-3.4-Gemfile - 25137726391.36 29 Apr 2026 10:44PM UTC 154
95.66
GitHub Action Run
37 run-3.2-gemfiles/rack_3_2.gemfile - 25137726391.37 29 Apr 2026 10:44PM UTC 154
95.68
GitHub Action Run
Source Files on build 25137726391
  • Tree
  • List 155
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25137726391
  • d234bfa5 on github
  • Prev Build on master (#24756585669)
  • Next Build on master (#25254882190)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc