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

MushroomObserver / mushroom-observer / 28751530117
99%
main: 99%

Build:
Build:
LAST BUILD BRANCH: jdc-fix-4706-url-with-unimportable-iconic-taxon
DEFAULT BRANCH: main
Ran 05 Jul 2026 07:06PM UTC
Jobs 1
Files 1718
Run time 2min
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

05 Jul 2026 07:01PM UTC coverage: 98.477% (+0.004%) from 98.473%
28751530117

Pull #4688

github

nimmolo
Close remaining User.current reads in controllers/views; drop cop exemptions

The NoUserCurrentInViews cop only covered app/controllers and
app/components, and its matcher missed the ::User.current cbase-qualified
form and never flagged =~/comparison operators correctly (its assignment
guard misfired on == too, since == also ends with "="). That let three
real reads through: Map#location_format_value's ::User.current_location_format
fallback, Form::LocationHelp#scientific?, and
Projects::FieldSlips::New#member?, plus a genuine read in
ApplicationController::Authentication#update_sudo_session.

Extended the cop's Include to app/views, fixed the matcher to catch
::User.current too, and removed the fixed-arity assignment guard (dead
code - the pattern's 2-child shape already can't match a 3-child
assignment send). Replaced every flagged read with @user / current_user
(the registered Phlex value helper) instead. No exemptions remain in
.rubocop.yml - the three previously-excluded controllers no longer need
them since the cop never actually flagged their (legitimate) writes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Pull Request #4688: Close remaining User.current reads in controllers/views; drop cop exemptions

3 of 4 new or added lines in 4 files covered. (75.0%)

16 existing lines in 3 files now uncovered.

51401 of 52196 relevant lines covered (98.48%)

753.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
0.0
0.0% lib/rubocop/cop/mushroom_observer/no_user_current_in_views.rb

Coverage Regressions

Lines Coverage ∆ File
10
70.21
0.0% app/controllers/observations/images/uploads_controller.rb
4
0.0
0.0% lib/rubocop/cop/mushroom_observer/no_user_current_in_views.rb
2
97.89
0.0% app/controllers/application_controller/indexes.rb
Jobs
ID Job ID Ran Files Coverage
1 28751530117.1 05 Jul 2026 07:06PM UTC 1718
98.48
GitHub Action Run
Source Files on build 28751530117
  • Tree
  • List 1718
  • Changed 5
  • Source Changed 5
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28751530117
  • Pull Request #4688
  • PR Base - main (#28750597140)
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