Skip to content

Commit

Permalink
Merge pull request #1155 from sul-dlss/prune-rubocop
Browse files Browse the repository at this point in the history
Remove unecessary rubocop exclusions
  • Loading branch information
jcoyne authored May 22, 2024
2 parents 6e1beac + 8910a51 commit 6023021
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
27 changes: 4 additions & 23 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,24 @@ AllCops:
- "db/**/*"
- "config/**/*"
- "spec/spec_helper.rb"
- "spec/teaspoon_env.rb"
- "vendor/**/*"
- "app/controllers/concerns/action_controller/**/*"
- vendor/bundle/**/* # Needed on Github Actions for airbrussh, which ships an incompatible .rubocop.yml

Rails:
Enabled: true

Metrics/CyclomaticComplexity:
Exclude:
- "app/models/ability.rb"
- "app/models/cocina_ability.rb"

Metrics/PerceivedComplexity:
Exclude:
- "app/models/ability.rb"
- "app/models/cocina_ability.rb"

Metrics/AbcSize:
Exclude:
- "app/models/ability.rb"
- "app/models/cocina_ability.rb"
- "app/controllers/iiif_controller.rb"

Layout/EmptyLinesAroundBlockBody:
Exclude:
- "spec/requests/file_auth_request_spec.rb"
- "spec/requests/iiif_auth_request_spec.rb"
- "spec/requests/media_auth_request_spec.rb"

Lint/AssignmentInCondition:
Enabled: false

Metrics/BlockLength:
Exclude:
- "spec/**/*"

Metrics/ClassLength:
Exclude:
- "app/controllers/iiif_controller.rb"
Expand All @@ -62,19 +44,18 @@ Layout/LineLength:

Metrics/MethodLength:
Exclude:
- "app/models/ability.rb"
- "app/models/cocina_ability.rb"
- "app/services/cdl_service.rb"

Naming/HeredocDelimiterNaming:
Enabled: false
Exclude:
- spec/requests/**/*

Naming/MemoizedInstanceVariableName:
Exclude:
- "app/controllers/**/*"

Naming/PredicateName:
NamePrefix:
ForbiddenPrefixes:
- "is_"

Style/StringLiterals:
Expand Down
1 change: 0 additions & 1 deletion spec/requests/iiif_auth_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require 'rails_helper'

RSpec.describe "Authentication for IIIF requests" do

let(:allowed_loc) { 'ip.address1' }
let(:user_no_loc_no_webauth) { User.new }
let(:user_loc_no_webauth) { User.new(ip_address: allowed_loc) }
Expand Down

0 comments on commit 6023021

Please sign in to comment.