-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the Bixby gem for rubocop styles
- Loading branch information
Showing
3 changed files
with
68 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,4 @@ | ||
require: rubocop-rspec | ||
inherit_gem: | ||
bixby: bixby_default.yml | ||
|
||
AllCops: | ||
DisplayCopNames: true | ||
Include: | ||
- '**/Rakefile' | ||
|
||
Metrics/LineLength: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Max: 17 | ||
|
||
Style/CollectionMethods: | ||
PreferredMethods: | ||
collect: 'map' | ||
collect!: 'map!' | ||
inject: 'reduce' | ||
detect: 'find' | ||
find_all: 'select' | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
RSpec/ExampleWording: | ||
CustomTransform: | ||
be: is | ||
have: has | ||
not: does not | ||
NOT: does NOT | ||
IgnoredWords: | ||
- only | ||
|
||
RSpec/FilePath: | ||
Enabled: false | ||
|
||
RSpec/InstanceVariable: | ||
Enabled: false | ||
|
||
RSpec/NamedSubject: | ||
Enabled: false | ||
|
||
RSpec/MultipleExpectations: | ||
Exclude: | ||
- spec/hydra/pcdm/collection_indexer_spec.rb | ||
- spec/hydra/pcdm/pcdm_indexer_spec.rb | ||
- spec/hydra/pcdm/models/* | ||
|
||
RSpec/ExampleLength: | ||
Exclude: | ||
- spec/hydra/pcdm/models/* | ||
|
||
RSpec/NestedGroups: | ||
Enabled: false | ||
inherit_from: .rubocop_todo.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2018-07-16 07:38:44 -0500 using RuboCop version 0.52.1. | ||
# 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 | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 29 | ||
# Configuration parameters: CountComments, ExcludedMethods. | ||
Metrics/BlockLength: | ||
Max: 527 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. | ||
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS | ||
Naming/FileName: | ||
Exclude: | ||
- '**/Gemfile' | ||
- '**/*.rake' | ||
- 'Capfile' | ||
- 'config/deploy/*' | ||
- 'hydra-pcdm.gemspec' | ||
|
||
# Offense count: 7 | ||
# Configuration parameters: Max. | ||
RSpec/ExampleLength: | ||
Exclude: | ||
- 'spec/hydra/pcdm/models/collection_spec.rb' | ||
- 'spec/hydra/pcdm/models/object_spec.rb' | ||
|
||
# Offense count: 69 | ||
# Configuration parameters: AssignmentOnly. | ||
RSpec/InstanceVariable: | ||
Exclude: | ||
- 'spec/hydra/pcdm/models/collection_spec.rb' | ||
- 'spec/hydra/pcdm/models/object_spec.rb' | ||
|
||
# Offense count: 199 | ||
RSpec/NamedSubject: | ||
Exclude: | ||
- 'spec/hydra/pcdm/collection_indexer_spec.rb' | ||
- 'spec/hydra/pcdm/models/collection_spec.rb' | ||
- 'spec/hydra/pcdm/models/file_spec.rb' | ||
- 'spec/hydra/pcdm/models/object_spec.rb' | ||
- 'spec/hydra/pcdm/object_indexer_spec.rb' | ||
- 'spec/hydra/pcdm/pcdm_indexer_spec.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: Max. | ||
RSpec/NestedGroups: | ||
Exclude: | ||
- 'spec/hydra/pcdm/models/object_spec.rb' | ||
|
||
# Offense count: 10 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: PreferredDelimiters. | ||
Style/PercentLiteralDelimiters: | ||
Exclude: | ||
- 'spec/hydra/pcdm/collection_indexer_spec.rb' | ||
- 'spec/hydra/pcdm/models/collection_spec.rb' | ||
- 'spec/hydra/pcdm/models/object_spec.rb' | ||
- 'spec/hydra/pcdm/object_indexer_spec.rb' | ||
- 'spec/hydra/pcdm/pcdm_indexer_spec.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters