Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
projects.thm.de
GitLab
Commits
721014c9
Commit
721014c9
authored
Jun 03, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix merge conflicts - squashed commit"
This reverts commit
3e991230
.
parent
3e991230
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
665 additions
and
1661 deletions
+665
-1661
.gitignore
.gitignore
+39
-39
.rubocop.yml
.rubocop.yml
+91
-182
CHANGELOG
CHANGELOG
+12
-142
CONTRIBUTING.md
CONTRIBUTING.md
+4
-2
GITLAB_SHELL_VERSION
GITLAB_SHELL_VERSION
+1
-1
GITLAB_WORKHORSE_VERSION
GITLAB_WORKHORSE_VERSION
+1
-1
Gemfile
Gemfile
+17
-22
Gemfile.lock
Gemfile.lock
+149
-63
README.md
README.md
+4
-2
VERSION
VERSION
+1
-1
app/assets/images/ci/arch.jpg
app/assets/images/ci/arch.jpg
+0
-0
app/assets/images/ci/favicon.ico
app/assets/images/ci/favicon.ico
+0
-0
app/assets/images/ci/loader.gif
app/assets/images/ci/loader.gif
+0
-0
app/assets/images/ci/no_avatar.png
app/assets/images/ci/no_avatar.png
+0
-0
app/assets/images/ci/rails.png
app/assets/images/ci/rails.png
+0
-0
app/assets/images/ci/service_sample.png
app/assets/images/ci/service_sample.png
+0
-0
app/assets/images/mailers/gitlab_header_logo.png
app/assets/images/mailers/gitlab_header_logo.png
+0
-0
app/assets/images/mailers/gitlab_tanuki_2x.png
app/assets/images/mailers/gitlab_tanuki_2x.png
+0
-0
app/assets/javascripts/api.js.coffee
app/assets/javascripts/api.js.coffee
+14
-21
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+35
-8
app/assets/javascripts/blob/blob_gitignore_selector.js.coffee
...assets/javascripts/blob/blob_gitignore_selector.js.coffee
+0
-58
app/assets/javascripts/blob/edit_blob.js.coffee
app/assets/javascripts/blob/edit_blob.js.coffee
+0
-1
app/assets/javascripts/calendar.js.coffee
app/assets/javascripts/calendar.js.coffee
+34
-0
app/assets/javascripts/ci/application.js.coffee
app/assets/javascripts/ci/application.js.coffee
+28
-0
app/assets/javascripts/ci/build.coffee
app/assets/javascripts/ci/build.coffee
+7
-17
app/assets/javascripts/dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+2
-1
app/assets/javascripts/due_date_select.js.coffee
app/assets/javascripts/due_date_select.js.coffee
+9
-26
app/assets/javascripts/gfm_auto_complete.js.coffee
app/assets/javascripts/gfm_auto_complete.js.coffee
+0
-19
app/assets/javascripts/gl_dropdown.js.coffee
app/assets/javascripts/gl_dropdown.js.coffee
+15
-67
app/assets/javascripts/graphs/application.js.coffee
app/assets/javascripts/graphs/application.js.coffee
+0
-7
app/assets/javascripts/issuable.js.coffee
app/assets/javascripts/issuable.js.coffee
+7
-41
app/assets/javascripts/issuable_form.js.coffee
app/assets/javascripts/issuable_form.js.coffee
+0
-26
app/assets/javascripts/issues.js.coffee
app/assets/javascripts/issues.js.coffee
+38
-0
app/assets/javascripts/layout_nav.js.coffee
app/assets/javascripts/layout_nav.js.coffee
+0
-14
app/assets/javascripts/lib/type_utility.js.coffee
app/assets/javascripts/lib/type_utility.js.coffee
+0
-9
app/assets/javascripts/lib/url_utility.js.coffee
app/assets/javascripts/lib/url_utility.js.coffee
+1
-10
app/assets/javascripts/merge_request_tabs.js.coffee
app/assets/javascripts/merge_request_tabs.js.coffee
+0
-3
app/assets/javascripts/merge_request_widget.js.coffee
app/assets/javascripts/merge_request_widget.js.coffee
+3
-12
app/assets/javascripts/notes.js.coffee
app/assets/javascripts/notes.js.coffee
+5
-7
app/assets/javascripts/right_sidebar.js.coffee
app/assets/javascripts/right_sidebar.js.coffee
+1
-35
app/assets/javascripts/search_autocomplete.js.coffee
app/assets/javascripts/search_autocomplete.js.coffee
+12
-10
app/assets/javascripts/shortcuts_dashboard_navigation.js.coffee
...sets/javascripts/shortcuts_dashboard_navigation.js.coffee
+4
-4
app/assets/javascripts/shortcuts_issuable.coffee
app/assets/javascripts/shortcuts_issuable.coffee
+0
-4
app/assets/javascripts/sidebar.js.coffee
app/assets/javascripts/sidebar.js.coffee
+1
-1
app/assets/javascripts/stat_graph.js.coffee
app/assets/javascripts/stat_graph.js.coffee
+0
-0
app/assets/javascripts/stat_graph_contributors.js.coffee
app/assets/javascripts/stat_graph_contributors.js.coffee
+1
-0
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
...ssets/javascripts/stat_graph_contributors_graph.js.coffee
+2
-0
app/assets/javascripts/stat_graph_contributors_util.js.coffee
...assets/javascripts/stat_graph_contributors_util.js.coffee
+0
-0
app/assets/javascripts/user_tabs.js.coffee
app/assets/javascripts/user_tabs.js.coffee
+1
-8
app/assets/javascripts/users/application.js.coffee
app/assets/javascripts/users/application.js.coffee
+0
-8
app/assets/javascripts/users/calendar.js.coffee
app/assets/javascripts/users/calendar.js.coffee
+0
-198
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+5
-7
app/assets/stylesheets/application.scss
app/assets/stylesheets/application.scss
+2
-0
app/assets/stylesheets/framework.scss
app/assets/stylesheets/framework.scss
+0
-1
app/assets/stylesheets/framework/animations.scss
app/assets/stylesheets/framework/animations.scss
+0
-72
app/assets/stylesheets/framework/avatar.scss
app/assets/stylesheets/framework/avatar.scss
+0
-1
app/assets/stylesheets/framework/blocks.scss
app/assets/stylesheets/framework/blocks.scss
+6
-5
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+1
-17
app/assets/stylesheets/framework/calendar.scss
app/assets/stylesheets/framework/calendar.scss
+49
-23
app/assets/stylesheets/framework/common.scss
app/assets/stylesheets/framework/common.scss
+1
-1
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+1
-5
app/assets/stylesheets/framework/files.scss
app/assets/stylesheets/framework/files.scss
+17
-14
app/assets/stylesheets/framework/forms.scss
app/assets/stylesheets/framework/forms.scss
+4
-4
app/assets/stylesheets/framework/gitlab-theme.scss
app/assets/stylesheets/framework/gitlab-theme.scss
+7
-10
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+7
-51
app/assets/stylesheets/framework/mobile.scss
app/assets/stylesheets/framework/mobile.scss
+4
-0
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+6
-116
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+3
-49
app/assets/stylesheets/framework/typography.scss
app/assets/stylesheets/framework/typography.scss
+0
-8
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+6
-9
app/assets/stylesheets/framework/zen.scss
app/assets/stylesheets/framework/zen.scss
+1
-1
app/assets/stylesheets/mailers/devise.scss
app/assets/stylesheets/mailers/devise.scss
+0
-134
app/assets/stylesheets/mailers/repository_push_email.scss
app/assets/stylesheets/mailers/repository_push_email.scss
+0
-43
app/assets/stylesheets/pages/commit.scss
app/assets/stylesheets/pages/commit.scss
+4
-20
app/assets/stylesheets/pages/detail_page.scss
app/assets/stylesheets/pages/detail_page.scss
+2
-0
No files found.
Too many changes to show.
To preserve performance only
1000 of 1000+
files are displayed.
Plain diff
Email patch
.gitignore
View file @
721014c9
...
...
@@ -4,46 +4,46 @@
.bundle
.chef
.directory
/
.envrc
/
.gitlab_shell_secret
.envrc
.gitlab_shell_secret
.idea
/
.rbenv-version
.rbenv-version
.rbx/
/
.ruby-gemset
/
.ruby-version
/
.rvmrc
.ruby-gemset
.ruby-version
.rvmrc
.sass-cache/
/
.secret
/
.vagrant
/
.byebug_history
/
Vagrantfile
/
backups/*
/
config/aws.yml
/
config/database.yml
/
config/gitlab.yml
/
config/gitlab_ci.yml
/
config/initializers/rack_attack.rb
/
config/initializers/smtp_settings.rb
/
config/initializers/relative_url.rb
/
config/resque.yml
/
config/unicorn.rb
/
config/secrets.yml
/
config/sidekiq.yml
/
coverage/*
/
db/*.sqlite3
/
db/*.sqlite3-journal
/
db/data.yml
/
doc/code/*
/
dump.rdb
/
log/*.log*
/
nohup.out
/
public/assets/
/
public/uploads.*
/
public/uploads/
/
shared/artifacts/
/
rails_best_practices_output.html
.secret
.vagrant
.byebug_history
Vagrantfile
backups/*
config/aws.yml
config/database.yml
config/gitlab.yml
config/gitlab_ci.yml
config/initializers/rack_attack.rb
config/initializers/smtp_settings.rb
config/initializers/relative_url.rb
config/resque.yml
config/unicorn.rb
config/secrets.yml
config/sidekiq.yml
coverage/*
db/*.sqlite3
db/*.sqlite3-journal
db/data.yml
doc/code/*
dump.rdb
log/*.log*
nohup.out
public/assets/
public/uploads.*
public/uploads/
shared/artifacts/
rails_best_practices_output.html
/tags
/
tmp/
*
/
vendor/bundle/*
/
builds/*
/
shared/*
tmp/
vendor/bundle/*
builds/*
shared/*
.rubocop.yml
View file @
721014c9
require
:
rubocop-rspec
AllCops
:
TargetRubyVersion
:
2.1
# Cop names are not displayed in offense messages by default. Change behavior
...
...
@@ -23,7 +21,6 @@ AllCops:
-
'
lib/email_validator.rb'
-
'
lib/gitlab/upgrader.rb'
-
'
lib/gitlab/seeder.rb'
-
'
generator_templates/**/*'
##################### Style ##################################
...
...
@@ -59,7 +56,7 @@ Style/AndOr:
# Use `Array#join` instead of `Array#*`.
Style/ArrayJoin
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use only ascii symbols in comments.
Style/AsciiComments
:
...
...
@@ -71,7 +68,7 @@ Style/AsciiIdentifiers:
# Checks for uses of Module#attr.
Style/Attr
:
Enabled
:
tru
e
Enabled
:
fals
e
# Avoid the use of BEGIN blocks.
Style/BeginBlock
:
...
...
@@ -83,7 +80,7 @@ Style/BarePercentLiterals:
# Do not use block comments.
Style/BlockComments
:
Enabled
:
tru
e
Enabled
:
fals
e
# Put end statement of multiline block on its own line.
Style/BlockEndNewline
:
...
...
@@ -124,7 +121,7 @@ Style/ClassCheck:
# Use self when defining module/class methods.
Style/ClassMethods
:
Enabled
:
tru
e
Enabled
:
fals
e
# Avoid the use of class variables.
Style/ClassVars
:
...
...
@@ -154,7 +151,7 @@ Style/ConstantName:
# Use def with parentheses when there are arguments.
Style/DefWithParentheses
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for use of deprecated Hash methods.
Style/DeprecatedHashMethods
:
...
...
@@ -218,15 +215,15 @@ Style/EmptyLiteral:
# Avoid the use of END blocks.
Style/EndBlock
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use Unix-style line endings.
Style/EndOfLine
:
Enabled
:
tru
e
Enabled
:
fals
e
# Favor the use of Fixnum#even? && Fixnum#odd?
Style/EvenOdd
:
Enabled
:
tru
e
Enabled
:
fals
e
# Do not use unnecessary spacing.
Style/ExtraSpacing
:
...
...
@@ -234,20 +231,15 @@ Style/ExtraSpacing:
# Use snake_case for source file names.
Style/FileName
:
Enabled
:
true
# Checks for a line break before the first parameter in a multi-line method
# parameter definition.
Style/FirstMethodParameterLineBreak
:
Enabled
:
true
Enabled
:
false
# Checks for flip flops.
Style/FlipFlop
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks use of for or each in multiline loops.
Style/For
:
Enabled
:
tru
e
Enabled
:
fals
e
# Enforce the use of Kernel#sprintf, Kernel#format or String#%.
Style/FormatString
:
...
...
@@ -255,7 +247,7 @@ Style/FormatString:
# Do not introduce global variables.
Style/GlobalVars
:
Enabled
:
tru
e
Enabled
:
fals
e
# Check for conditionals that can be replaced with guard clauses.
Style/GuardClause
:
...
...
@@ -276,7 +268,7 @@ Style/IfUnlessModifier:
# Do not use if x; .... Use the ternary operator instead.
Style/IfWithSemicolon
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks that conditional statements do not have an identical line at the
# end of each branch, which can validly be moved out of the conditional.
...
...
@@ -284,9 +276,9 @@ Style/IdenticalConditionalBranches:
Enabled
:
false
# Checks the indentation of the first line of the right-hand-side of a
# multi-line assignment.
# multi-line assignment.
Style/IndentAssignment
:
Enabled
:
tru
e
Enabled
:
fals
e
# Keep indentation straight.
Style/IndentationConsistency
:
...
...
@@ -306,7 +298,7 @@ Style/IndentHash:
# Use Kernel#loop for infinite loops.
Style/InfiniteLoop
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use the new lambda literal syntax for single-line blocks.
Style/Lambda
:
...
...
@@ -314,11 +306,11 @@ Style/Lambda:
# Use lambda.call(...) instead of lambda.(...).
Style/LambdaCall
:
Enabled
:
tru
e
Enabled
:
fals
e
# Comments should start with a space.
Style/LeadingCommentSpace
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use \ instead of + or << to concatenate two string literals at line end.
Style/LineEndConcatenation
:
...
...
@@ -330,22 +322,16 @@ Style/MethodCallParentheses:
# Checks if the method definitions have or don't have parentheses.
Style/MethodDefParentheses
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use the configured style when naming methods.
Style/MethodName
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for usage of `extend self` in modules.
Style/ModuleFunction
:
Enabled
:
false
# Checks that the closing brace in an array literal is either on the same line
# as the last array element, or a new line.
Style/MultilineArrayBraceLayout
:
Enabled
:
false
EnforcedStyle
:
symmetrical
# Avoid multi-line chains of blocks.
Style/MultilineBlockChain
:
Enabled
:
false
...
...
@@ -354,32 +340,15 @@ Style/MultilineBlockChain:
Style/MultilineBlockLayout
:
Enabled
:
true
# Checks that the closing brace in a hash literal is either on the same line as
# the last hash element, or a new line.
Style/MultilineHashBraceLayout
:
Enabled
:
false
EnforcedStyle
:
symmetrical
# Do not use then for multi-line if/unless.
Style/MultilineIfThen
:
Enabled
:
true
# Checks that the closing brace in a method call is either on the same line as
# the last method argument, or a new line.
Style/MultilineMethodCallBraceLayout
:
Enabled
:
false
EnforcedStyle
:
symmetrical
# Checks indentation of method calls with the dot operator that span more than
# one line.
Style/MultilineMethodCallIndentation
:
Enabled
:
false
# Checks that the closing brace in a method definition is symmetrical with
# respect to the opening brace and the method parameters.
Style/MultilineMethodDefinitionBraceLayout
:
Enabled
:
false
# Checks indentation of binary operations that span more than one line.
Style/MultilineOperationIndentation
:
Enabled
:
false
...
...
@@ -394,7 +363,7 @@ Style/MutableConstant:
# Favor unless over if for negative conditions (or control flow or).
Style/NegatedIf
:
Enabled
:
tru
e
Enabled
:
fals
e
# Favor until over while for negative conditions.
Style/NegatedWhile
:
...
...
@@ -402,7 +371,7 @@ Style/NegatedWhile:
# Avoid using nested modifiers.
Style/NestedModifier
:
Enabled
:
tru
e
Enabled
:
fals
e
# Parenthesize method calls which are nested inside the argument list of
# another parenthesized method call.
...
...
@@ -439,7 +408,7 @@ Style/OneLineConditional:
# When defining binary operators, name the argument other.
Style/OpMethod
:
Enabled
:
tru
e
Enabled
:
fals
e
# Check for simple usages of parallel assignment. It will only warn when
# the number of variables matches on both sides of the assignment.
...
...
@@ -486,9 +455,10 @@ Style/RedundantException:
Style/RedundantFreeze
:
Enabled
:
false
# TODO: Enable RedundantParentheses Cop.
# Checks for parentheses that seem not to serve any purpose.
Style/RedundantParentheses
:
Enabled
:
tru
e
Enabled
:
fals
e
# Don't use return where it's not required.
Style/RedundantReturn
:
...
...
@@ -514,12 +484,11 @@ Style/SelfAssignment:
# Don't use semicolons to terminate expressions.
Style/Semicolon
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for proper usage of fail and raise.
Style/SignalException
:
EnforcedStyle
:
only_raise
Enabled
:
true
Enabled
:
false
# Enforces the names of some block params.
Style/SingleLineBlockParams
:
...
...
@@ -540,28 +509,29 @@ Style/SpaceAfterComma:
# Do not put a space between a method name and the opening parenthesis in a
# method definition.
Style/SpaceAfterMethodName
:
Enabled
:
tru
e
Enabled
:
fals
e
# Tracks redundant space after the ! operator.
Style/SpaceAfterNot
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use spaces after semicolons.
Style/SpaceAfterSemicolon
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks that the equals signs in parameter default assignments have or don't
# have surrounding space depending on configuration.
Style/SpaceAroundEqualsInParameterDefault
:
Enabled
:
false
# TODO: Enable SpaceAroundKeyword Cop.
# Use a space around keywords if appropriate.
Style/SpaceAroundKeyword
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use a single space around operators.
Style/SpaceAroundOperators
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks that the left block brace has or doesn't have space before it.
Style/SpaceBeforeBlockBraces
:
...
...
@@ -569,11 +539,11 @@ Style/SpaceBeforeBlockBraces:
# No spaces before commas.
Style/SpaceBeforeComma
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for missing space between code and a comment on the same line.
Style/SpaceBeforeComment
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks that exactly one space is used between a method name and the first
# argument for method calls without parentheses.
...
...
@@ -582,7 +552,7 @@ Style/SpaceBeforeFirstArg:
# No spaces before semicolons.
Style/SpaceBeforeSemicolon
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks that block braces have or don't have surrounding space.
# For blocks taking parameters, checks that the left brace has or doesn't
...
...
@@ -604,12 +574,11 @@ Style/SpaceInsideParens:
# No spaces inside range literals.
Style/SpaceInsideRangeLiteral
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for padding/surrounding spaces inside string interpolation.
Style/SpaceInsideStringInterpolation
:
EnforcedStyle
:
no_space
Enabled
:
true
Enabled
:
false
# Avoid Perl-style global variables.
Style/SpecialGlobalVars
:
...
...
@@ -617,8 +586,7 @@ Style/SpecialGlobalVars:
# Check for the usage of parentheses around stabby lambda arguments.
Style/StabbyLambdaParentheses
:
EnforcedStyle
:
require_parentheses
Enabled
:
true
Enabled
:
false
# Checks if uses of quotes match the configured preference.
Style/StringLiterals
:
...
...
@@ -631,9 +599,7 @@ Style/StringLiteralsInInterpolation:
# Checks if configured preferred methods are used over non-preferred.
Style/StringMethods
:
PreferredMethods
:
intern
:
to_sym
Enabled
:
true
Enabled
:
false
# Use %i or %I for arrays of symbols.
Style/SymbolArray
:
...
...
@@ -691,24 +657,23 @@ Style/UnneededPercentQ:
# Don't interpolate global, instance and class variables directly in strings.
Style/VariableInterpolation
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use the configured style when naming variables.
Style/VariableName
:
EnforcedStyle
:
snake_case
Enabled
:
true
Enabled
:
false
# Use when x then ... for one-line cases.
Style/WhenThen
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for redundant do after while or until.
Style/WhileUntilDo
:
Enabled
:
tru
e
Enabled
:
fals
e
# Favor modifier while/until usage when you have a single-line body.
Style/WhileUntilModifier
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use %w or %W for arrays of words.
Style/WordArray
:
...
...
@@ -784,28 +749,28 @@ Lint/AssignmentInCondition:
# Align block ends correctly.
Lint/BlockAlignment
:
Enabled
:
tru
e
Enabled
:
fals
e
# Default values in optional keyword arguments and optional ordinal arguments
# should not refer back to the name of the argument.
Lint/CircularArgumentReference
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for condition placed in a confusing position relative to the keyword.
Lint/ConditionPosition
:
Enabled
:
tru
e
Enabled
:
fals
e
# Check for debugger calls.
Lint/Debugger
:
Enabled
:
tru
e
Enabled
:
fals
e
# Align ends corresponding to defs correctly.
Lint/DefEndAlignment
:
Enabled
:
tru
e
Enabled
:
fals
e
# Check for deprecated class method calls.
Lint/DeprecatedClassMethods
:
Enabled
:
tru
e
Enabled
:
fals
e
# Check for duplicate method definitions.
Lint/DuplicateMethods
:
...
...
@@ -817,15 +782,15 @@ Lint/DuplicatedKey:
# Check for immutable argument given to each_with_object.
Lint/EachWithObjectArgument
:
Enabled
:
tru
e
Enabled
:
fals
e
# Check for odd code arrangement in an else block.
Lint/ElseLayout
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for empty ensure block.
Lint/EmptyEnsure
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for empty string interpolation.
Lint/EmptyInterpolation
:
...
...
@@ -833,36 +798,37 @@ Lint/EmptyInterpolation:
# Align ends correctly.
Lint/EndAlignment
:
Enabled
:
tru
e
Enabled
:
fals
e
# END blocks should not be placed inside method definitions.
Lint/EndInMethod
:
Enabled
:
tru
e
Enabled
:
fals
e
# Do not use return in an ensure block.
Lint/EnsureReturn
:
Enabled
:
tru
e
Enabled
:
fals
e
# The use of eval represents a serious security risk.
Lint/Eval
:
Enabled
:
tru
e
Enabled
:
fals
e
# Catches floating-point literals too large or small for Ruby to represent.
Lint/FloatOutOfRange
:
Enabled
:
tru
e
Enabled
:
fals
e
# The number of parameters to format/sprint must match the fields.
Lint/FormatParameterMismatch
:
Enabled
:
tru
e
Enabled
:
fals
e
# Don't suppress exception.
Lint/HandleExceptions
:
Enabled
:
false
# TODO: Enable ImplicitStringConcatenation Cop.
# Checks for adjacent string literals on the same line, which could better be
# represented as a single string literal.
Lint/ImplicitStringConcatenation
:
Enabled
:
tru
e
Enabled
:
fals
e
# TODO: Enable IneffectiveAccessModifier Cop.
# Checks for attempts to use `private` or `protected` to set the visibility
...
...
@@ -873,15 +839,15 @@ Lint/IneffectiveAccessModifier:
# Checks for invalid character literals with a non-escaped whitespace
# character.
Lint/InvalidCharacterLiteral
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks of literals used in conditions.
Lint/LiteralInCondition
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for literals used in interpolation.
Lint/LiteralInInterpolation
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use Kernel#loop with break rather than begin/end/until or begin/end/while
# for post-loop tests.
...
...
@@ -890,11 +856,11 @@ Lint/Loop:
# Do not use nested method definitions.
Lint/NestedMethodDefinition
:
Enabled
:
tru
e
Enabled
:
fals
e
# Do not omit the accumulator when calling `next` in a `reduce`/`inject` block.
Lint/NextWithoutAccumulator
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for method calls with a space before the opening parenthesis.
Lint/ParenthesesAsGroupedExpression
:
...
...
@@ -903,11 +869,11 @@ Lint/ParenthesesAsGroupedExpression:
# Checks for `rand(1)` calls. Such calls always return `0` and most likely
# a mistake.
Lint/RandOne
:
Enabled
:
tru
e
Enabled
:
fals
e
# Use parentheses in the method call to avoid confusion about precedence.
Lint/RequireParentheses
:
Enabled
:
tru
e
Enabled
:
fals
e
# Avoid rescuing the Exception class.
Lint/RescueException
:
...
...
@@ -942,7 +908,7 @@ Lint/UnusedMethodArgument:
# Unreachable code.
Lint/UnreachableCode
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for useless access modifiers.
Lint/UselessAccessModifier
:
...
...
@@ -954,31 +920,33 @@ Lint/UselessAssignment:
# Checks for comparison of something with itself.
Lint/UselessComparison
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for useless `else` in `begin..end` without `rescue`.
Lint/UselessElseWithoutRescue
:
Enabled
:
tru
e
Enabled
:
fals
e
# Checks for useless setter call to a local variable.
Lint/UselessSetterCall
:
Enabled
:
tru
e
Enabled
:
fals
e
# Possible use of operator/literal/variable in void context.
Lint/Void
:
Enabled
:
tru
e
Enabled
:
fals
e
##################### Performance ############################