-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
87 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
# Allow some style changes in specs | ||
Metrics/ModuleLength: | ||
Exclude: | ||
- spec/**/* | ||
Metrics/BlockLength: | ||
Exclude: | ||
- spec/**/* | ||
Style/BlockDelimiters: | ||
Exclude: | ||
- spec/**/* | ||
Style/RescueModifier: | ||
Exclude: | ||
- spec/**/* | ||
Metrics/MethodLength: | ||
Exclude: | ||
- spec/interactor/hooks_spec.rb | ||
Style/IndentArray: | ||
Exclude: | ||
- spec/integration_spec.rb | ||
- spec/interactor/hooks_spec.rb | ||
|
||
# Allow nice tree-like comments in specs | ||
Style/AsciiComments: | ||
Exclude: | ||
- spec/integration_spec.rb | ||
|
||
# Here inconsistent indentation helps to understand | ||
# tree nature of callbacks. | ||
Style/AlignArray: | ||
Exclude: | ||
- spec/integration_spec.rb | ||
|
||
# Rubocop suggests using $INPUT_RECORD_SEPARATOR | ||
# variable from stdlib 'English' module over $/. | ||
# This module appeared in Ruby 2.0, so we could use it | ||
# only if we drop 1.9.3 support | ||
Style/SpecialGlobalVars: | ||
Exclude: | ||
- interactor.gemspec | ||
|
||
# This could be removed if throws are used instead of | ||
# raising Failure in #fail! | ||
Lint/HandleExceptions: | ||
Exclude: | ||
- lib/interactor.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ rvm: | |
- "2.3.3" | ||
- "2.4.0" | ||
- ruby-head | ||
script: bundle exec rspec | ||
script: bundle exec rake |
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,6 +1,8 @@ | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
require "rubocop/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
RuboCop::RakeTask.new(:rubocop) | ||
|
||
task default: :spec | ||
task default: [:spec, :rubocop] |
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
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
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
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
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
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