forked from tobi/delayed_job
-
Notifications
You must be signed in to change notification settings - Fork 954
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
20 changed files
with
107 additions
and
138 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,108 +1,67 @@ | ||
AbcSize: | ||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
# Enforce outdenting of access modifiers (i.e. public, private, protected) | ||
AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
Metrics/BlockNesting: | ||
Max: 2 | ||
|
||
AllCops: | ||
Include: | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'delayed_job.gemspec' | ||
Metrics/LineLength: | ||
AllowURI: true | ||
Enabled: false | ||
|
||
# Avoid more than `Max` levels of nesting. | ||
BlockNesting: | ||
Max: 2 | ||
Metrics/MethodLength: | ||
CountComments: false | ||
Max: 47 # TODO: Lower to 15 | ||
|
||
# Indentation of when/else | ||
CaseIndentation: | ||
IndentWhenRelativeTo: end | ||
IndentOneStep: false | ||
Metrics/ModuleLength: | ||
Max: 150 # TODO: Lower to 100 | ||
|
||
ClassLength: | ||
Max: 100 | ||
Metrics/ParameterLists: | ||
Max: 4 | ||
CountKeywordArgs: true | ||
|
||
Style/AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
|
||
# Align with the style guide. | ||
CollectionMethods: | ||
Style/CollectionMethods: | ||
PreferredMethods: | ||
collect: 'map' | ||
collect!: 'map!' | ||
map: 'collect' | ||
reduce: 'inject' | ||
find: 'detect' | ||
find_all: 'select' | ||
|
||
# Disable documentation checking until a class needs to be documented once | ||
Documentation: | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Allow dots at the end of lines | ||
DotPosition: | ||
Style/DotPosition: | ||
EnforcedStyle: trailing | ||
|
||
DoubleNegation: | ||
Style/DoubleNegation: | ||
Enabled: false | ||
|
||
EmptyLinesAroundAccessModifier: | ||
Enabled: true | ||
|
||
# Don't require magic comment at the top of every file | ||
Encoding: | ||
Style/EachWithObject: | ||
Enabled: false | ||
|
||
# Align ends correctly | ||
EndAlignment: | ||
AlignWith: variable | ||
Style/Encoding: | ||
Enabled: false | ||
|
||
# Enforce Ruby 1.8-compatible hash syntax | ||
HashSyntax: | ||
Style/HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
Lambda: | ||
Style/Lambda: | ||
Enabled: false | ||
|
||
LineLength: | ||
Enabled: false | ||
|
||
MethodLength: | ||
CountComments: false | ||
Max: 53 | ||
|
||
MultilineOperationIndentation: | ||
EnforcedStyle: indented | ||
|
||
# Avoid long parameter lists | ||
ParameterLists: | ||
Max: 4 | ||
CountKeywordArgs: true | ||
Style/RaiseArgs: | ||
EnforcedStyle: compact | ||
|
||
PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
'%': () | ||
'%i': () | ||
'%q': () | ||
'%Q': () | ||
'%r': '{}' | ||
'%s': () | ||
'%w': '[]' | ||
'%W': '[]' | ||
'%x': () | ||
|
||
RaiseArgs: | ||
EnforcedStyle: exploded | ||
|
||
RescueModifier: | ||
Enabled: false | ||
Style/RegexpLiteral: | ||
Exclude: | ||
- lib/delayed/psych_ext.rb | ||
|
||
SignalException: | ||
EnforcedStyle: only_raise | ||
|
||
# No spaces inside hash literals | ||
SpaceInsideHashLiteralBraces: | ||
Style/SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: no_space | ||
|
||
SymbolProc: | ||
Style/StructInheritance: | ||
Enabled: false | ||
|
||
TrailingComma: | ||
Enabled: false | ||
Style/TrailingComma: | ||
EnforcedStyleForMultiline: 'comma' |
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 = '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.