Commit 9468b079 authored by Connor Shea's avatar Connor Shea

Resolve feedback.

parent c4cbf3ef
# This configuration was generated by # This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 8` # `rubocop --auto-gen-config --exclude-limit 8`
# on 2016-07-05 10:30:07 -0600 using RuboCop version 0.41.1. # on 2016-07-13 12:03:44 -0600 using RuboCop version 0.41.2.
# The point is for the user to remove these configuration records # The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base. # one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new # Note that changes in the inspected code, or installation of new
...@@ -10,21 +10,16 @@ ...@@ -10,21 +10,16 @@
Lint/AmbiguousRegexpLiteral: Lint/AmbiguousRegexpLiteral:
Enabled: false Enabled: false
# Offense count: 42 # Offense count: 43
# Configuration parameters: AllowSafeAssignment. # Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition: Lint/AssignmentInCondition:
Enabled: false Enabled: false
# Offense count: 1
Lint/DuplicateMethods:
Exclude:
- 'lib/gitlab/github_import/branch_formatter.rb'
# Offense count: 14 # Offense count: 14
Lint/HandleExceptions: Lint/HandleExceptions:
Enabled: false Enabled: false
# Offense count: 20 # Offense count: 21
Lint/IneffectiveAccessModifier: Lint/IneffectiveAccessModifier:
Enabled: false Enabled: false
...@@ -34,7 +29,7 @@ Lint/Loop: ...@@ -34,7 +29,7 @@ Lint/Loop:
- 'app/mailers/notify.rb' - 'app/mailers/notify.rb'
- 'lib/gitlab/bitbucket_import/client.rb' - 'lib/gitlab/bitbucket_import/client.rb'
# Offense count: 12 # Offense count: 15
Lint/ShadowingOuterLocalVariable: Lint/ShadowingOuterLocalVariable:
Enabled: false Enabled: false
...@@ -46,7 +41,7 @@ Lint/StringConversionInInterpolation: ...@@ -46,7 +41,7 @@ Lint/StringConversionInInterpolation:
- 'app/services/system_hooks_service.rb' - 'app/services/system_hooks_service.rb'
- 'app/services/system_note_service.rb' - 'app/services/system_note_service.rb'
# Offense count: 42 # Offense count: 44
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument: Lint/UnusedBlockArgument:
...@@ -81,14 +76,13 @@ Performance/RedundantBlockCall: ...@@ -81,14 +76,13 @@ Performance/RedundantBlockCall:
- 'app/controllers/application_controller.rb' - 'app/controllers/application_controller.rb'
- 'lib/gitlab/backend/shell.rb' - 'lib/gitlab/backend/shell.rb'
# Offense count: 5 # Offense count: 4
# Cop supports --auto-correct. # Cop supports --auto-correct.
Performance/RedundantMatch: Performance/RedundantMatch:
Exclude: Exclude:
- 'app/models/external_issue.rb' - 'app/models/external_issue.rb'
- 'lib/extracts_path.rb' - 'lib/extracts_path.rb'
- 'lib/gitlab/diff/highlight.rb' - 'lib/gitlab/diff/highlight.rb'
- 'lib/gitlab/diff/inline_diff.rb'
- 'lib/gitlab/diff/parser.rb' - 'lib/gitlab/diff/parser.rb'
# Offense count: 24 # Offense count: 24
...@@ -97,11 +91,11 @@ Performance/RedundantMatch: ...@@ -97,11 +91,11 @@ Performance/RedundantMatch:
Performance/RedundantMerge: Performance/RedundantMerge:
Enabled: false Enabled: false
# Offense count: 59 # Offense count: 60
Rails/OutputSafety: Rails/OutputSafety:
Enabled: false Enabled: false
# Offense count: 125 # Offense count: 128
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: strict, flexible # SupportedStyles: strict, flexible
Rails/TimeZone: Rails/TimeZone:
...@@ -114,7 +108,7 @@ Rails/TimeZone: ...@@ -114,7 +108,7 @@ Rails/TimeZone:
Rails/Validation: Rails/Validation:
Enabled: false Enabled: false
# Offense count: 218 # Offense count: 217
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: with_first_parameter, with_fixed_indentation # SupportedStyles: with_first_parameter, with_fixed_indentation
...@@ -135,18 +129,19 @@ Style/AndOr: ...@@ -135,18 +129,19 @@ Style/AndOr:
Style/BarePercentLiterals: Style/BarePercentLiterals:
Enabled: false Enabled: false
# Offense count: 256 # Offense count: 258
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: braces, no_braces, context_dependent # SupportedStyles: braces, no_braces, context_dependent
Style/BracesAroundHashParameters: Style/BracesAroundHashParameters:
Enabled: false Enabled: false
# Offense count: 4 # Offense count: 5
Style/CaseEquality: Style/CaseEquality:
Exclude: Exclude:
- 'app/helpers/auth_helper.rb' - 'app/helpers/auth_helper.rb'
- 'app/models/commit.rb' - 'app/models/commit.rb'
- 'app/models/protected_branch.rb'
- 'app/services/projects/download_service.rb' - 'app/services/projects/download_service.rb'
- 'config/initializers/trusted_proxies.rb' - 'config/initializers/trusted_proxies.rb'
...@@ -165,21 +160,21 @@ Style/CommentAnnotation: ...@@ -165,21 +160,21 @@ Style/CommentAnnotation:
- 'lib/api/entities.rb' - 'lib/api/entities.rb'
- 'spec/requests/api/project_snippets_spec.rb' - 'spec/requests/api/project_snippets_spec.rb'
# Offense count: 35 # Offense count: 34
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly. # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
# SupportedStyles: assign_to_condition, assign_inside_condition # SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment: Style/ConditionalAssignment:
Enabled: false Enabled: false
# Offense count: 773 # Offense count: 788
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing # SupportedStyles: leading, trailing
Style/DotPosition: Style/DotPosition:
Enabled: false Enabled: false
# Offense count: 14 # Offense count: 13
Style/DoubleNegation: Style/DoubleNegation:
Enabled: false Enabled: false
...@@ -205,7 +200,7 @@ Style/EmptyLiteral: ...@@ -205,7 +200,7 @@ Style/EmptyLiteral:
- 'lib/gitlab/fogbugz_import/importer.rb' - 'lib/gitlab/fogbugz_import/importer.rb'
- 'spec/lib/gitlab/workhorse_spec.rb' - 'spec/lib/gitlab/workhorse_spec.rb'
# Offense count: 119 # Offense count: 123
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing: Style/ExtraSpacing:
...@@ -223,44 +218,36 @@ Style/FormatString: ...@@ -223,44 +218,36 @@ Style/FormatString:
- 'lib/gitlab/version_info.rb' - 'lib/gitlab/version_info.rb'
- 'spec/requests/api/issues_spec.rb' - 'spec/requests/api/issues_spec.rb'
# Offense count: 50 # Offense count: 48
# Configuration parameters: MinBodyLength. # Configuration parameters: MinBodyLength.
Style/GuardClause: Style/GuardClause:
Enabled: false Enabled: false
# Offense count: 9 # Offense count: 11
Style/IdenticalConditionalBranches:
Exclude:
- 'app/controllers/projects_controller.rb'
- 'app/models/project_services/irker_service.rb'
- 'app/services/merge_requests/refresh_service.rb'
- 'lib/rouge/formatters/html_gitlab.rb'
# Offense count: 10
Style/IfInsideElse: Style/IfInsideElse:
Enabled: false Enabled: false
# Offense count: 179 # Offense count: 177
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: MaxLineLength. # Configuration parameters: MaxLineLength.
Style/IfUnlessModifier: Style/IfUnlessModifier:
Enabled: false Enabled: false
# Offense count: 48 # Offense count: 50
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets # SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray: Style/IndentArray:
Enabled: false Enabled: false
# Offense count: 85 # Offense count: 89
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces # SupportedStyles: special_inside_parentheses, consistent, align_braces
Style/IndentHash: Style/IndentHash:
Enabled: false Enabled: false
# Offense count: 11 # Offense count: 12
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: line_count_dependent, lambda, literal # SupportedStyles: line_count_dependent, lambda, literal
...@@ -269,6 +256,7 @@ Style/Lambda: ...@@ -269,6 +256,7 @@ Style/Lambda:
- 'app/models/ci/runner.rb' - 'app/models/ci/runner.rb'
- 'app/models/event.rb' - 'app/models/event.rb'
- 'app/models/note.rb' - 'app/models/note.rb'
- 'app/models/notification_setting.rb'
- 'config/routes.rb' - 'config/routes.rb'
- 'lib/api/entities.rb' - 'lib/api/entities.rb'
- 'spec/models/concerns/participable_spec.rb' - 'spec/models/concerns/participable_spec.rb'
...@@ -299,7 +287,7 @@ Style/MultilineTernaryOperator: ...@@ -299,7 +287,7 @@ Style/MultilineTernaryOperator:
- 'lib/banzai/filter/relative_link_filter.rb' - 'lib/banzai/filter/relative_link_filter.rb'
- 'spec/support/api_helpers.rb' - 'spec/support/api_helpers.rb'
# Offense count: 61 # Offense count: 62
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/MutableConstant: Style/MutableConstant:
Enabled: false Enabled: false
...@@ -314,14 +302,14 @@ Style/NestedParenthesizedCalls: ...@@ -314,14 +302,14 @@ Style/NestedParenthesizedCalls:
- 'spec/lib/gitlab/email/message/repository_push_spec.rb' - 'spec/lib/gitlab/email/message/repository_push_spec.rb'
- 'spec/services/ci/create_builds_service_spec.rb' - 'spec/services/ci/create_builds_service_spec.rb'
# Offense count: 13 # Offense count: 12
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles. # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
# SupportedStyles: skip_modifier_ifs, always # SupportedStyles: skip_modifier_ifs, always
Style/Next: Style/Next:
Enabled: false Enabled: false
# Offense count: 6 # Offense count: 8
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles. # Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
# SupportedOctalStyles: zero_with_o, zero_only # SupportedOctalStyles: zero_with_o, zero_only
...@@ -330,6 +318,7 @@ Style/NumericLiteralPrefix: ...@@ -330,6 +318,7 @@ Style/NumericLiteralPrefix:
- 'config/initializers/1_settings.rb' - 'config/initializers/1_settings.rb'
- 'config/initializers/secret_token.rb' - 'config/initializers/secret_token.rb'
- 'lib/gitlab/backend/shell.rb' - 'lib/gitlab/backend/shell.rb'
- 'spec/lib/gitlab/git/hook_spec.rb'
- 'spec/support/test_env.rb' - 'spec/support/test_env.rb'
- 'spec/tasks/gitlab/backup_rake_spec.rb' - 'spec/tasks/gitlab/backup_rake_spec.rb'
...@@ -338,7 +327,7 @@ Style/NumericLiteralPrefix: ...@@ -338,7 +327,7 @@ Style/NumericLiteralPrefix:
Style/ParallelAssignment: Style/ParallelAssignment:
Enabled: false Enabled: false
# Offense count: 206 # Offense count: 208
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters. # Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters: Style/PercentLiteralDelimiters:
...@@ -356,12 +345,12 @@ Style/PercentQLiterals: ...@@ -356,12 +345,12 @@ Style/PercentQLiterals:
- 'spec/models/project_services/teamcity_service_spec.rb' - 'spec/models/project_services/teamcity_service_spec.rb'
- 'spec/workers/repository_import_worker_spec.rb' - 'spec/workers/repository_import_worker_spec.rb'
# Offense count: 14 # Offense count: 13
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/PerlBackrefs: Style/PerlBackrefs:
Enabled: false Enabled: false
# Offense count: 30 # Offense count: 32
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_ # NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_
...@@ -369,7 +358,7 @@ Style/PerlBackrefs: ...@@ -369,7 +358,7 @@ Style/PerlBackrefs:
Style/PredicateName: Style/PredicateName:
Enabled: false Enabled: false
# Offense count: 27 # Offense count: 28
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/PreferredHashMethods: Style/PreferredHashMethods:
Enabled: false Enabled: false
...@@ -405,24 +394,24 @@ Style/RedundantException: ...@@ -405,24 +394,24 @@ Style/RedundantException:
Exclude: Exclude:
- 'app/helpers/preferences_helper.rb' - 'app/helpers/preferences_helper.rb'
# Offense count: 21 # Offense count: 23
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/RedundantFreeze: Style/RedundantFreeze:
Enabled: false Enabled: false
# Offense count: 321 # Offense count: 377
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/RedundantSelf: Style/RedundantSelf:
Enabled: false Enabled: false
# Offense count: 92 # Offense count: 94
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed # SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral: Style/RegexpLiteral:
Enabled: false Enabled: false
# Offense count: 14 # Offense count: 17
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/RescueModifier: Style/RescueModifier:
Enabled: false Enabled: false
...@@ -477,7 +466,7 @@ Style/SpaceBeforeFirstArg: ...@@ -477,7 +466,7 @@ Style/SpaceBeforeFirstArg:
- 'spec/services/projects/fork_service_spec.rb' - 'spec/services/projects/fork_service_spec.rb'
- 'spec/services/system_note_service_spec.rb' - 'spec/services/system_note_service_spec.rb'
# Offense count: 129 # Offense count: 130
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space # SupportedStyles: space, no_space
...@@ -501,7 +490,7 @@ Style/SpaceInsidePercentLiteralDelimiters: ...@@ -501,7 +490,7 @@ Style/SpaceInsidePercentLiteralDelimiters:
- 'lib/event_filter.rb' - 'lib/event_filter.rb'
- 'lib/gitlab/git_access.rb' - 'lib/gitlab/git_access.rb'
# Offense count: 33 # Offense count: 36
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: SupportedStyles. # Configuration parameters: SupportedStyles.
# SupportedStyles: use_perl_names, use_english_names # SupportedStyles: use_perl_names, use_english_names
...@@ -529,7 +518,7 @@ Style/SymbolProc: ...@@ -529,7 +518,7 @@ Style/SymbolProc:
Style/TrailingCommaInArguments: Style/TrailingCommaInArguments:
Enabled: false Enabled: false
# Offense count: 117 # Offense count: 114
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# SupportedStyles: comma, consistent_comma, no_comma # SupportedStyles: comma, consistent_comma, no_comma
...@@ -545,10 +534,10 @@ Style/TrailingUnderscoreVariable: ...@@ -545,10 +534,10 @@ Style/TrailingUnderscoreVariable:
- 'app/controllers/invites_controller.rb' - 'app/controllers/invites_controller.rb'
- 'app/controllers/projects/git_http_controller.rb' - 'app/controllers/projects/git_http_controller.rb'
- 'app/helpers/tab_helper.rb' - 'app/helpers/tab_helper.rb'
- 'lib/gitlab/force_push_check.rb' - 'lib/gitlab/checks/force_push.rb'
- 'lib/gitlab/logger.rb' - 'lib/gitlab/logger.rb'
# Offense count: 88 # Offense count: 90
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/TrailingWhitespace: Style/TrailingWhitespace:
Enabled: false Enabled: false
...@@ -570,7 +559,7 @@ Style/UnlessElse: ...@@ -570,7 +559,7 @@ Style/UnlessElse:
- 'lib/gitlab/backend/grack_auth.rb' - 'lib/gitlab/backend/grack_auth.rb'
- 'lib/gitlab/project_search_results.rb' - 'lib/gitlab/project_search_results.rb'
# Offense count: 14 # Offense count: 13
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/UnneededInterpolation: Style/UnneededInterpolation:
Enabled: false Enabled: false
...@@ -585,4 +574,4 @@ Style/ZeroLengthPredicate: ...@@ -585,4 +574,4 @@ Style/ZeroLengthPredicate:
- 'app/models/project_services/asana_service.rb' - 'app/models/project_services/asana_service.rb'
- 'app/models/repository.rb' - 'app/models/repository.rb'
- 'lib/extracts_path.rb' - 'lib/extracts_path.rb'
- 'lib/gitlab/force_push_check.rb' - 'lib/gitlab/checks/force_push.rb'
...@@ -299,7 +299,7 @@ group :development, :test do ...@@ -299,7 +299,7 @@ group :development, :test do
gem 'spring-commands-spinach', '~> 1.1.0' gem 'spring-commands-spinach', '~> 1.1.0'
gem 'spring-commands-teaspoon', '~> 0.0.2' gem 'spring-commands-teaspoon', '~> 0.0.2'
gem 'rubocop', '~> 0.41.1', require: false gem 'rubocop', '~> 0.41.2', require: false
gem 'rubocop-rspec', '~> 1.5.0', require: false gem 'rubocop-rspec', '~> 1.5.0', require: false
gem 'scss_lint', '~> 0.47.0', require: false gem 'scss_lint', '~> 0.47.0', require: false
gem 'simplecov', '~> 0.11.0', require: false gem 'simplecov', '~> 0.11.0', require: false
......
...@@ -937,7 +937,7 @@ DEPENDENCIES ...@@ -937,7 +937,7 @@ DEPENDENCIES
rqrcode-rails3 (~> 0.1.7) rqrcode-rails3 (~> 0.1.7)
rspec-rails (~> 3.5.0) rspec-rails (~> 3.5.0)
rspec-retry (~> 0.4.5) rspec-retry (~> 0.4.5)
rubocop (~> 0.41.1) rubocop (~> 0.41.2)
rubocop-rspec (~> 1.5.0) rubocop-rspec (~> 1.5.0)
ruby-fogbugz (~> 0.2.1) ruby-fogbugz (~> 0.2.1)
sanitize (~> 2.0) sanitize (~> 2.0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment