.rubocop.yml in browse-everything-0.15.1 vs .rubocop.yml in browse-everything-0.16.0
- old
+ new
@@ -1,44 +1,96 @@
inherit_from: .rubocop_todo.yml
AllCops:
- TargetRubyVersion: 2.1
+ TargetRubyVersion: 2.4
DisplayCopNames: true
Include:
- '**/Rakefile'
Exclude:
- 'vendor/**/*'
Rails:
Enabled: true
+Rails/FilePath:
+ Exclude:
+ - 'lib/generators/browse_everything/config_generator.rb'
Metrics/ClassLength:
Max: 130
-
-# Configuration parameters: AllowURI, URISchemes.
+ Exclude:
+ - 'lib/browse_everything/driver/google_drive.rb'
Metrics/LineLength:
Max: 400
+Metrics/BlockLength:
+ Exclude:
+ - 'spec/views/browse_everything/_files.html.erb_spec.rb'
+ - 'spec/unit/browse_everything_helper_spec.rb'
+ - 'spec/unit/browse_everything/retriever_spec.rb'
+ - 'spec/unit/browse_everything/file_entry_spec.rb'
+ - 'spec/unit/browse_everything/driver/s3_spec.rb'
+ - 'spec/unit/browse_everything/driver/google_drive_spec.rb'
+ - 'spec/unit/browse_everything/driver/file_system_spec.rb'
+ - 'spec/unit/browse_everything/driver/dropbox_spec.rb'
+ - 'spec/unit/browse_everything/driver/box_spec.rb'
+ - 'spec/unit/browse_everything/browser_spec.rb'
+ - 'spec/services/browser_factory_spec.rb'
+ - 'spec/services/browse_everything_session/provider_session_spec.rb'
+ - 'spec/helper/browse_everything_controller_helper_spec.rb'
+ - 'spec/controllers/browse_everything_controller_spec.rb'
+ - 'browse-everything.gemspec'
RSpec/NestedGroups:
Enabled: false
-RSpec/FilePath:
- Enabled: false
-
RSpec/LeadingSubject:
Enabled: false
RSpec/ExampleLength:
Exclude:
- - 'spec/unit/dropbox_spec.rb'
+ - 'spec/unit/browse_everything/driver/base_spec.rb'
+ - 'spec/unit/browse_everything/driver/box_spec.rb'
+ - 'spec/unit/browse_everything/driver/dropbox_spec.rb'
+ - 'spec/unit/browse_everything/driver/file_system_spec.rb'
+ - 'spec/unit/browse_everything/driver/google_drive_spec.rb'
+ - 'spec/unit/browse_everything/driver/s3_spec.rb'
- 'spec/features/select_files_spec.rb'
- 'spec/javascripts/jasmine_spec.rb'
RSpec/MultipleExpectations:
Exclude:
- - 'spec/unit/dropbox_spec.rb'
+ - 'spec/unit/browse_everything/driver/base_spec.rb'
+ - 'spec/unit/browse_everything/driver/box_spec.rb'
+ - 'spec/unit/browse_everything/driver/dropbox_spec.rb'
+ - 'spec/unit/browse_everything/driver/file_system_spec.rb'
+ - 'spec/unit/browse_everything/driver/google_drive_spec.rb'
+ - 'spec/unit/browse_everything/driver/s3_spec.rb'
+ - 'spec/features/**/*'
+ - 'spec/controllers/browse_everything_controller_spec.rb'
+ - 'spec/unit/browse_everything/browser_spec.rb'
Style/NumericLiterals:
MinDigits: 7
-Style/IndentationConsistency:
+Layout/IndentationConsistency:
EnforcedStyle: rails
+
+Naming/FileName:
+ Exclude:
+ - 'browse-everything.gemspec'
+ - 'Gemfile'
+ - 'lib/browse-everything.rb'
+
+Style/MixinUsage:
+ Exclude:
+ - 'spec/unit/browse_everything/driver/s3_spec.rb'
+ - 'spec/unit/browse_everything/driver/google_drive_spec.rb'
+ - 'spec/unit/browse_everything/driver/file_system_spec.rb'
+ - 'spec/unit/browse_everything/driver/dropbox_spec.rb'
+ - 'spec/unit/browse_everything/driver/box_spec.rb'
+ - 'spec/unit/browse_everything/driver/base_spec.rb'
+ - 'spec/unit/browse_everything/browser_spec.rb'
+ - 'spec/services/browser_factory_spec.rb'
+ - 'spec/helper/browse_everything_controller_helper_spec.rb'
+
+Bundler/DuplicatedGem:
+ Exclude:
+ - 'Gemfile'