Commit 20f6271
Changed files (1)
.rubocop.yml
@@ -0,0 +1,66 @@
+require:
+ - rubocop/cop/internal_affairs
+ - rubocop-rspec
+
+AllCops:
+ Exclude:
+ - 'coverage/**/*'
+ - 'pkg/**/*'
+ - 'spec/fixtures/**/*'
+ - 'spec/examples/**/*'
+ - 'tmp/**/*'
+ - 'vendor/**/*'
+ TargetRubyVersion: 2.2
+
+Layout/EndOfLine:
+ EnforcedStyle: lf
+
+Layout/ClassStructure:
+ Enabled: true
+ Categories:
+ module_inclusion:
+ - include
+ - prepend
+ - extend
+ ExpectedOrder:
+ - module_inclusion
+ - constants
+ - public_class_methods
+ - initializer
+ - instance_methods
+ - protected_methods
+ - private_methods
+
+Lint/AmbiguousBlockAssociation:
+ Exclude:
+ - 'spec/**/*.rb'
+
+Lint/InterpolationCheck:
+ Exclude:
+ - 'spec/**/*.rb'
+
+Metrics/BlockLength:
+ Exclude:
+ - 'Rakefile'
+ - '**/*.rake'
+ - 'spec/**/*.rb'
+
+Metrics/ModuleLength:
+ Exclude:
+ - 'spec/**/*.rb'
+
+Metrics/LineLength:
+ Exclude:
+ - 'spec/**/*.rb'
+
+Style/StringLiterals:
+ EnforcedStyle: 'double_quotes'
+
+Style/TrailingCommaInLiteral:
+ Enabled: false
+
+RSpec/NestedGroups:
+ Max: 7
+
+RSpec/NamedSubject:
+ Enabled: false