Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
smudge committed Nov 13, 2024
1 parent 6b18a0d commit 0a73ca1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 99999999999`
# on 2023-03-28 16:02:29 UTC using RuboCop version 1.46.0.
# on 2024-11-13 17:45:18 UTC using RuboCop version 1.46.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -11,11 +11,12 @@ Betterment/NonStandardActions:
Exclude:
- 'config/routes.rb'

# Offense count: 13
# Offense count: 14
Betterment/UnscopedFind:
Exclude:
- 'app/controllers/admin/bulk_assignments_controller.rb'
- 'app/controllers/admin/decisions_controller.rb'
- 'app/controllers/admin/screenshots_controller.rb'
- 'app/controllers/admin/split_configs_controller.rb'
- 'app/controllers/admin/split_details_controller.rb'
- 'app/controllers/admin/splits_controller.rb'
Expand Down Expand Up @@ -44,12 +45,11 @@ Layout/ArgumentAlignment:
- 'spec/models/deterministic_assignment_creation_spec.rb'
- 'spec/models/visitor_supersession_spec.rb'

# Offense count: 2
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLines:
Exclude:
- 'config/initializers/devise.rb'
- 'config/routes.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Expand All @@ -76,7 +76,7 @@ Layout/LineLength:
- 'config/initializers/devise.rb'
- 'config/initializers/simple_form.rb'

# Offense count: 11
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
Exclude:
Expand All @@ -88,7 +88,6 @@ Lint/RedundantCopDisableDirective:
- 'app/models/arbitrary_assignment_creation.rb'
- 'app/models/concerns/delegate_attribute.rb'
- 'app/models/deterministic_assignment_creation.rb'
- 'app/models/split_upsert.rb'
- 'app/models/visitor_supersession.rb'
- 'lib/test_track/attachment_settings.rb'

Expand Down Expand Up @@ -156,12 +155,11 @@ Rails/EnumHash:
Exclude:
- 'app/models/split.rb'

# Offense count: 6
# Offense count: 5
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Exclude:
- 'config/environments/development.rb'
- 'lib/tasks/seed_app.rake'
- 'spec/rails_helper.rb'
- 'spec/requests/api/v1/split_details_spec.rb'
Expand Down Expand Up @@ -210,12 +208,6 @@ Style/ColonMethodCall:
Exclude:
- 'config/initializers/airbrake.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ExpandPathArguments:
Exclude:
- 'config.ru'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
Expand Down
1 change: 1 addition & 0 deletions app/controllers/admin/screenshots_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class Admin::ScreenshotsController < ApplicationController
def show
split = Split.find(params[:split_id])
Expand Down
1 change: 1 addition & 0 deletions spec/requests/admin/screenshots_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::ScreenshotsController do
Expand Down

0 comments on commit 0a73ca1

Please sign in to comment.