forked from tobi/delayed_job
-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit cc52c72.
- Loading branch information
Showing
20 changed files
with
138 additions
and
107 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,67 +1,108 @@ | ||
Metrics/AbcSize: | ||
AbcSize: | ||
Enabled: false | ||
|
||
Metrics/BlockNesting: | ||
Max: 2 | ||
# Enforce outdenting of access modifiers (i.e. public, private, protected) | ||
AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
|
||
Metrics/LineLength: | ||
AllowURI: true | ||
Enabled: false | ||
AllCops: | ||
Include: | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'delayed_job.gemspec' | ||
|
||
Metrics/MethodLength: | ||
CountComments: false | ||
Max: 47 # TODO: Lower to 15 | ||
# Avoid more than `Max` levels of nesting. | ||
BlockNesting: | ||
Max: 2 | ||
|
||
Metrics/ModuleLength: | ||
Max: 150 # TODO: Lower to 100 | ||
# Indentation of when/else | ||
CaseIndentation: | ||
IndentWhenRelativeTo: end | ||
IndentOneStep: false | ||
|
||
Metrics/ParameterLists: | ||
Max: 4 | ||
CountKeywordArgs: true | ||
|
||
Style/AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
ClassLength: | ||
Max: 100 | ||
|
||
Style/CollectionMethods: | ||
# Align with the style guide. | ||
CollectionMethods: | ||
PreferredMethods: | ||
map: 'collect' | ||
collect: 'map' | ||
collect!: 'map!' | ||
reduce: 'inject' | ||
find: 'detect' | ||
find_all: 'select' | ||
|
||
Style/Documentation: | ||
# Disable documentation checking until a class needs to be documented once | ||
Documentation: | ||
Enabled: false | ||
|
||
Style/DotPosition: | ||
# Allow dots at the end of lines | ||
DotPosition: | ||
EnforcedStyle: trailing | ||
|
||
Style/DoubleNegation: | ||
DoubleNegation: | ||
Enabled: false | ||
|
||
Style/EachWithObject: | ||
Enabled: false | ||
EmptyLinesAroundAccessModifier: | ||
Enabled: true | ||
|
||
Style/Encoding: | ||
# Don't require magic comment at the top of every file | ||
Encoding: | ||
Enabled: false | ||
|
||
Style/HashSyntax: | ||
# Align ends correctly | ||
EndAlignment: | ||
AlignWith: variable | ||
|
||
# Enforce Ruby 1.8-compatible hash syntax | ||
HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
Style/Lambda: | ||
Lambda: | ||
Enabled: false | ||
|
||
Style/RaiseArgs: | ||
EnforcedStyle: compact | ||
LineLength: | ||
Enabled: false | ||
|
||
MethodLength: | ||
CountComments: false | ||
Max: 53 | ||
|
||
MultilineOperationIndentation: | ||
EnforcedStyle: indented | ||
|
||
# Avoid long parameter lists | ||
ParameterLists: | ||
Max: 4 | ||
CountKeywordArgs: true | ||
|
||
Style/RegexpLiteral: | ||
Exclude: | ||
- lib/delayed/psych_ext.rb | ||
PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
'%': () | ||
'%i': () | ||
'%q': () | ||
'%Q': () | ||
'%r': '{}' | ||
'%s': () | ||
'%w': '[]' | ||
'%W': '[]' | ||
'%x': () | ||
|
||
RaiseArgs: | ||
EnforcedStyle: exploded | ||
|
||
RescueModifier: | ||
Enabled: false | ||
|
||
Style/SpaceInsideHashLiteralBraces: | ||
SignalException: | ||
EnforcedStyle: only_raise | ||
|
||
# No spaces inside hash literals | ||
SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: no_space | ||
|
||
Style/StructInheritance: | ||
SymbolProc: | ||
Enabled: false | ||
|
||
Style/TrailingComma: | ||
EnforcedStyleForMultiline: 'comma' | ||
TrailingComma: | ||
Enabled: false |
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ Gem::Specification.new do |spec| | |
spec.authors = ['Brandon Keepers', 'Brian Ryckbost', 'Chris Gaffney', 'David Genord II', 'Erik Michaels-Ober', 'Matt Griffin', 'Steve Richert', 'Tobias Lütke'] | ||
spec.description = 'Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.' | ||
spec.email = ['[email protected]'] | ||
spec.files = %w(CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md Rakefile delayed_job.gemspec) | ||
spec.files += Dir.glob('{contrib,lib,recipes,spec}/**/*') | ||
spec.files = %w[CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md Rakefile delayed_job.gemspec] | ||
spec.files += Dir.glob('{contrib,lib,recipes,spec}/**/*') | ||
spec.homepage = 'http:https://github.com/collectiveidea/delayed_job' | ||
spec.licenses = ['MIT'] | ||
spec.name = 'delayed_job' | ||
|
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
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
Oops, something went wrong.