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

ruby-grape / grape / 25088561312
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: perf/build-headers-each-header
DEFAULT BRANCH: master
Ran 29 Apr 2026 02:54AM 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 02:53AM UTC coverage: 96.98% (-0.002%) from 96.982%
25088561312

Pull #2695

github

ericproulx
Lift trailing if/else into guard clauses

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>
Pull Request #2695: Lift trailing if/else into guard clauses

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.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_8_1.gemfile - 25088561312.1 29 Apr 2026 02:54AM UTC 155
95.64
GitHub Action Run
2 run-3.2-gemfiles/rails_7_2.gemfile - 25088561312.2 29 Apr 2026 02:54AM UTC 155
95.68
GitHub Action Run
3 run-3.3-gemfiles/rack_3_0.gemfile - 25088561312.3 29 Apr 2026 02:54AM UTC 154
95.63
GitHub Action Run
4 run-3.3-Gemfile - 25088561312.4 29 Apr 2026 02:54AM UTC 154
95.63
GitHub Action Run
5 run-3.4-gemfiles/rails_8_1.gemfile - 25088561312.5 29 Apr 2026 02:54AM UTC 155
95.66
GitHub Action Run
6 run-3.3-gemfiles/rack_3_1.gemfile - 25088561312.6 29 Apr 2026 02:54AM UTC 154
95.63
GitHub Action Run
7 run-3.2-gemfiles/rack_3_0.gemfile - 25088561312.7 29 Apr 2026 02:54AM UTC 154
95.68
GitHub Action Run
8 run-3.4-gemfiles/rack_3_2.gemfile - 25088561312.8 29 Apr 2026 02:54AM UTC 154
95.66
GitHub Action Run
9 run-4.0-gemfiles/rack_3_2.gemfile - 25088561312.9 29 Apr 2026 02:54AM UTC 154
95.66
GitHub Action Run
10 run-4.0-gemfiles/grape_entity.gemfile - 25088561312.10 29 Apr 2026 02:54AM UTC 154
49.47
GitHub Action Run
11 run-4.0-gemfiles/rack_3_0.gemfile - 25088561312.11 29 Apr 2026 02:54AM UTC 154
95.66
GitHub Action Run
12 run-3.4-gemfiles/rails_8_0.gemfile - 25088561312.12 29 Apr 2026 02:54AM UTC 155
95.66
GitHub Action Run
13 run-3.2-gemfiles/rails_8_1.gemfile - 25088561312.13 29 Apr 2026 02:54AM UTC 155
95.68
GitHub Action Run
14 run-3.4-Gemfile - 25088561312.14 29 Apr 2026 02:55AM UTC 154
95.66
GitHub Action Run
15 run-4.0-gemfiles/rails_8_1.gemfile - 25088561312.15 29 Apr 2026 02:55AM UTC 155
95.66
GitHub Action Run
16 run-4.0-gemfiles/rails_8_0.gemfile - 25088561312.16 29 Apr 2026 02:54AM UTC 155
95.66
GitHub Action Run
17 run-4.0-gemfiles/rack_2_2.gemfile - 25088561312.17 29 Apr 2026 02:54AM UTC 154
95.61
GitHub Action Run
18 run-3.4-gemfiles/rack_2_2.gemfile - 25088561312.18 29 Apr 2026 02:55AM UTC 154
95.61
GitHub Action Run
19 run-3.3-gemfiles/rack_3_2.gemfile - 25088561312.19 29 Apr 2026 02:54AM UTC 154
95.63
GitHub Action Run
20 run-4.0-gemfiles/hashie.gemfile - 25088561312.20 29 Apr 2026 02:54AM UTC 154
62.51
GitHub Action Run
21 run-4.0-gemfiles/multi_json.gemfile - 25088561312.21 29 Apr 2026 02:54AM UTC 154
35.98
GitHub Action Run
22 run-3.2-Gemfile - 25088561312.22 29 Apr 2026 02:54AM UTC 154
95.68
GitHub Action Run
23 run-3.4-gemfiles/rack_3_1.gemfile - 25088561312.23 29 Apr 2026 02:54AM UTC 154
95.66
GitHub Action Run
24 run-3.4-gemfiles/rack_3_0.gemfile - 25088561312.24 29 Apr 2026 02:54AM UTC 154
95.66
GitHub Action Run
25 run-4.0-gemfiles/rails_7_2.gemfile - 25088561312.25 29 Apr 2026 02:55AM UTC 155
95.66
GitHub Action Run
26 run-4.0-gemfiles/multi_xml.gemfile - 25088561312.26 29 Apr 2026 02:54AM UTC 154
35.98
GitHub Action Run
27 run-4.0-Gemfile - 25088561312.27 29 Apr 2026 02:54AM UTC 154
95.66
GitHub Action Run
28 run-3.3-gemfiles/rails_7_2.gemfile - 25088561312.28 29 Apr 2026 02:54AM UTC 155
95.64
GitHub Action Run
29 run-3.2-gemfiles/rack_3_2.gemfile - 25088561312.29 29 Apr 2026 02:54AM UTC 154
95.68
GitHub Action Run
30 run-4.0-gemfiles/dry_validation.gemfile - 25088561312.30 29 Apr 2026 02:55AM UTC 154
57.81
GitHub Action Run
31 run-3.2-gemfiles/rails_8_0.gemfile - 25088561312.31 29 Apr 2026 02:54AM UTC 155
95.68
GitHub Action Run
32 run-4.0-gemfiles/rack_3_1.gemfile - 25088561312.32 29 Apr 2026 02:55AM UTC 154
95.66
GitHub Action Run
33 run-3.3-gemfiles/rails_8_0.gemfile - 25088561312.33 29 Apr 2026 02:54AM UTC 155
95.64
GitHub Action Run
34 run-3.4-gemfiles/rails_7_2.gemfile - 25088561312.34 29 Apr 2026 02:54AM UTC 155
95.66
GitHub Action Run
35 run-3.2-gemfiles/rack_2_2.gemfile - 25088561312.35 29 Apr 2026 02:54AM UTC 154
95.64
GitHub Action Run
36 run-3.3-gemfiles/rack_2_2.gemfile - 25088561312.36 29 Apr 2026 02:54AM UTC 154
95.59
GitHub Action Run
37 run-3.2-gemfiles/rack_3_1.gemfile - 25088561312.37 29 Apr 2026 02:54AM UTC 154
95.68
GitHub Action Run
Source Files on build 25088561312
  • 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 #25088561312
  • Pull Request #2695
  • PR Base - master (#24756585669)
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