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

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

Build:
Build:
LAST BUILD BRANCH: perf/build-headers-each-header
DEFAULT BRANCH: master
Ran 22 Apr 2026 02:01AM 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

22 Apr 2026 02:00AM UTC coverage: 96.98% (-0.003%) from 96.983%
24756277250

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%)

3353 of 3407 relevant lines covered (98.42%)

32199.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.2-Gemfile - 24756277250.1 22 Apr 2026 02:01AM UTC 154
95.68
GitHub Action Run
2 run-4.0-gemfiles/hashie.gemfile - 24756277250.2 22 Apr 2026 02:01AM UTC 154
62.49
GitHub Action Run
3 run-4.0-gemfiles/dry_validation.gemfile - 24756277250.3 22 Apr 2026 02:01AM UTC 154
57.8
GitHub Action Run
4 run-3.2-gemfiles/rack_3_1.gemfile - 24756277250.4 22 Apr 2026 02:01AM UTC 154
95.68
GitHub Action Run
5 run-4.0-gemfiles/rails_7_2.gemfile - 24756277250.5 22 Apr 2026 02:01AM UTC 155
95.66
GitHub Action Run
6 run-4.0-gemfiles/rails_8_1.gemfile - 24756277250.6 22 Apr 2026 02:01AM UTC 155
95.66
GitHub Action Run
7 run-3.3-gemfiles/rails_8_1.gemfile - 24756277250.7 22 Apr 2026 02:01AM UTC 155
95.64
GitHub Action Run
8 run-4.0-gemfiles/multi_xml.gemfile - 24756277250.8 22 Apr 2026 02:01AM UTC 154
35.97
GitHub Action Run
9 run-3.4-gemfiles/rails_7_2.gemfile - 24756277250.9 22 Apr 2026 02:01AM UTC 155
95.66
GitHub Action Run
10 run-3.2-gemfiles/rack_3_0.gemfile - 24756277250.10 22 Apr 2026 02:01AM UTC 154
95.68
GitHub Action Run
11 run-3.4-gemfiles/rack_3_0.gemfile - 24756277250.11 22 Apr 2026 02:01AM UTC 154
95.66
GitHub Action Run
12 run-4.0-gemfiles/rack_2_2.gemfile - 24756277250.12 22 Apr 2026 02:01AM UTC 154
95.61
GitHub Action Run
13 run-4.0-gemfiles/rack_3_0.gemfile - 24756277250.13 22 Apr 2026 02:01AM UTC 154
95.66
GitHub Action Run
14 run-3.2-gemfiles/rails_8_1.gemfile - 24756277250.14 22 Apr 2026 02:01AM UTC 155
95.68
GitHub Action Run
15 run-3.3-gemfiles/rack_3_2.gemfile - 24756277250.15 22 Apr 2026 02:02AM UTC 154
95.64
GitHub Action Run
16 run-4.0-gemfiles/rack_3_2.gemfile - 24756277250.16 22 Apr 2026 02:02AM UTC 154
95.66
GitHub Action Run
17 run-3.4-gemfiles/rack_3_2.gemfile - 24756277250.17 22 Apr 2026 02:01AM UTC 154
95.66
GitHub Action Run
18 run-3.3-gemfiles/rails_7_2.gemfile - 24756277250.18 22 Apr 2026 02:01AM UTC 155
95.64
GitHub Action Run
19 run-3.2-gemfiles/rails_8_0.gemfile - 24756277250.19 22 Apr 2026 02:01AM UTC 155
95.68
GitHub Action Run
20 run-4.0-gemfiles/multi_json.gemfile - 24756277250.20 22 Apr 2026 02:01AM UTC 154
35.97
GitHub Action Run
21 run-3.4-gemfiles/rack_3_1.gemfile - 24756277250.21 22 Apr 2026 02:01AM UTC 154
95.66
GitHub Action Run
22 run-3.3-gemfiles/rack_2_2.gemfile - 24756277250.22 22 Apr 2026 02:01AM UTC 154
95.59
GitHub Action Run
23 run-3.2-gemfiles/rails_7_2.gemfile - 24756277250.23 22 Apr 2026 02:01AM UTC 155
95.68
GitHub Action Run
24 run-3.4-gemfiles/rails_8_0.gemfile - 24756277250.24 22 Apr 2026 02:01AM UTC 155
95.66
GitHub Action Run
25 run-3.4-Gemfile - 24756277250.25 22 Apr 2026 02:02AM UTC 154
95.66
GitHub Action Run
26 run-3.2-gemfiles/rack_3_2.gemfile - 24756277250.26 22 Apr 2026 02:01AM UTC 154
95.68
GitHub Action Run
27 run-4.0-Gemfile - 24756277250.27 22 Apr 2026 02:02AM UTC 154
95.66
GitHub Action Run
28 run-3.3-gemfiles/rails_8_0.gemfile - 24756277250.28 22 Apr 2026 02:01AM UTC 155
95.64
GitHub Action Run
29 run-4.0-gemfiles/rack_3_1.gemfile - 24756277250.29 22 Apr 2026 02:01AM UTC 154
95.66
GitHub Action Run
30 run-3.2-gemfiles/rack_2_2.gemfile - 24756277250.30 22 Apr 2026 02:01AM UTC 154
95.64
GitHub Action Run
31 run-4.0-gemfiles/grape_entity.gemfile - 24756277250.31 22 Apr 2026 02:01AM UTC 154
49.46
GitHub Action Run
32 run-3.4-gemfiles/rails_8_1.gemfile - 24756277250.32 22 Apr 2026 02:01AM UTC 155
95.66
GitHub Action Run
33 run-3.3-gemfiles/rack_3_0.gemfile - 24756277250.33 22 Apr 2026 02:01AM UTC 154
95.64
GitHub Action Run
34 run-4.0-gemfiles/rails_8_0.gemfile - 24756277250.34 22 Apr 2026 02:01AM UTC 155
95.66
GitHub Action Run
35 run-3.4-gemfiles/rack_2_2.gemfile - 24756277250.35 22 Apr 2026 02:01AM UTC 154
95.61
GitHub Action Run
36 run-3.3-Gemfile - 24756277250.36 22 Apr 2026 02:01AM UTC 154
95.64
GitHub Action Run
37 run-3.3-gemfiles/rack_3_1.gemfile - 24756277250.37 22 Apr 2026 02:01AM UTC 154
95.64
GitHub Action Run
Source Files on build 24756277250
  • 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 #24756277250
  • Pull Request #2695
  • PR Base - master (#24754841764)
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