Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
cbb39b81
Commit
cbb39b81
authored
Jan 18, 2016
by
Guillermo Guerrero Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated rubocop file with last version rubocop.
parent
c2ece7b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
152 additions
and
43 deletions
+152
-43
.rubocop_todo.yml
.rubocop_todo.yml
+152
-43
No files found.
.rubocop_todo.yml
View file @
cbb39b81
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-01-18 1
0:02:27 +0100 using RuboCop version 0.35.1
.
# on 2016-01-18 1
6:32:43 +0100 using RuboCop version 0.36.0
.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
...
...
@@ -14,6 +14,7 @@ Lint/AssignmentInCondition:
-
'
spec/integration/rails_2.3_with_bundler/config/boot.rb'
# Offense count: 1
# Cop supports --auto-correct.
Lint/Debugger
:
Exclude
:
-
'
spec/integration/common_validation.rb'
...
...
@@ -31,9 +32,15 @@ Lint/DeprecatedClassMethods:
-
'
spec/integration/rails_3.2_custom_inflections/config/boot.rb'
-
'
spec/integration/rails_3.2_with_asset_pipeline/config/boot.rb'
# Offense count: 1
Lint/DuplicateMethods
:
Exclude
:
-
'
spec/integration/rails_2.3_with_bundler/config/boot.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
# SupportedStyles: keyword, variable, start_of_line
Lint/EndAlignment
:
Enabled
:
false
...
...
@@ -43,10 +50,11 @@ Lint/HandleExceptions:
-
'
Rakefile'
-
'
lib/annotate.rb'
# Offense count:
1
Lint/
NestedMethodDefinition
:
# Offense count:
6
Lint/
IneffectiveAccessModifier
:
Exclude
:
-
'
spec/integration/rails_2.3_with_bundler/config/boot.rb'
-
'
lib/annotate/annotate_routes.rb'
-
'
spec/integration/common_validation.rb'
# Offense count: 7
Lint/RescueException
:
...
...
@@ -77,6 +85,12 @@ Lint/UnusedMethodArgument:
-
'
lib/annotate/annotate_routes.rb'
-
'
spec/annotate/annotate_models_spec.rb'
# Offense count: 2
Lint/UselessAccessModifier
:
Exclude
:
-
'
lib/annotate/annotate_routes.rb'
-
'
spec/integration/common_validation.rb'
# Offense count: 7
Lint/UselessAssignment
:
Exclude
:
...
...
@@ -87,7 +101,7 @@ Lint/UselessAssignment:
# Offense count: 17
Metrics/AbcSize
:
Max
:
15
6
Max
:
15
7
# Offense count: 2
Metrics/BlockNesting
:
...
...
@@ -97,8 +111,9 @@ Metrics/BlockNesting:
Metrics/CyclomaticComplexity
:
Max
:
36
# Offense count: 297
# Configuration parameters: AllowURI, URISchemes.
# Offense count: 290
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength
:
Max
:
276
...
...
@@ -122,6 +137,19 @@ Performance/Detect:
Exclude
:
-
'
Rakefile'
# Offense count: 2
# Cop supports --auto-correct.
Performance/RedundantMatch
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
-
'
lib/annotate/annotate_routes.rb'
# Offense count: 1
# Cop supports --auto-correct.
Performance/RedundantMerge
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
Performance/StringReplacement
:
...
...
@@ -130,7 +158,8 @@ Performance/StringReplacement:
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: outdent, indent
Style/AccessModifierIndentation
:
Enabled
:
false
...
...
@@ -142,6 +171,7 @@ Style/AccessorMethodName:
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: with_first_parameter, with_fixed_indentation
Style/AlignParameters
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
...
...
@@ -149,6 +179,7 @@ Style/AlignParameters:
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: always, conditionals
Style/AndOr
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
...
...
@@ -156,6 +187,7 @@ Style/AndOr:
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals
:
Exclude
:
-
'
spec/integration/rails_2.3_with_bundler/config/boot.rb'
...
...
@@ -163,6 +195,10 @@ Style/BarePercentLiterals:
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# IgnoredMethods: lambda, proc, it
Style/BlockDelimiters
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
...
...
@@ -171,6 +207,7 @@ Style/BlockDelimiters:
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: braces, no_braces, context_dependent
Style/BracesAroundHashParameters
:
Exclude
:
-
'
spec/integration/standalone/config/init.rb'
...
...
@@ -182,12 +219,14 @@ Style/CaseEquality:
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
Style/CaseIndentation
:
Enabled
:
false
# Offense count: 16
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren
:
Enabled
:
false
...
...
@@ -200,6 +239,7 @@ Style/ClosingParenthesisIndentation:
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
...
...
@@ -210,6 +250,14 @@ Style/CommentIndentation:
Exclude
:
-
'
lib/annotate/annotate_routes.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: SingleLineConditionsOnly.
Style/ConditionalAssignment
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
-
'
spec/integration/common_validation.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/DeprecatedHashMethods
:
...
...
@@ -218,7 +266,6 @@ Style/DeprecatedHashMethods:
-
'
lib/annotate.rb'
# Offense count: 6
# Configuration parameters: Exclude.
Style/Documentation
:
Exclude
:
-
'
spec/**/*'
...
...
@@ -232,6 +279,7 @@ Style/Documentation:
# Offense count: 18
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
Style/DotPosition
:
Enabled
:
false
...
...
@@ -264,6 +312,7 @@ Style/EmptyLinesAroundAccessModifier:
# Offense count: 31
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, no_empty_lines
Style/EmptyLinesAroundBlockBody
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
...
...
@@ -283,13 +332,14 @@ Style/EmptyLinesAroundBlockBody:
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, no_empty_lines
Style/EmptyLinesAroundClassBody
:
Exclude
:
-
'
lib/generators/annotate/install_generator.rb'
# Offense count: 2
2
# Offense count: 2
4
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
# Configuration parameters: AllowForAlignment
, ForceEqualSignAlignment
.
Style/ExtraSpacing
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
...
...
@@ -305,22 +355,30 @@ Style/ExtraSpacing:
# Offense count: 8
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: format, sprintf, percent
Style/FormatString
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
# Offense count:
1
# Offense count:
6
# Configuration parameters: MinBodyLength.
Style/GuardClause
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
-
'
spec/integration/rails_2.3_with_bundler/config/boot.rb'
# Offense count: 142
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
Style/HashSyntax
:
Enabled
:
false
# Offense count: 1
Style/IfInsideElse
:
Exclude
:
-
'
lib/annotate/annotate_routes.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
...
...
@@ -332,19 +390,22 @@ Style/IfUnlessModifier:
# Offense count: 22
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
Enabled
:
false
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
# Configuration parameters: SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Style/IndentHash
:
EnforcedStyle
:
consistent
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: normal, rails
Style/IndentationConsistency
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
...
...
@@ -371,6 +432,7 @@ Style/LeadingCommentSpace:
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
Style/MethodDefParentheses
:
Enabled
:
false
...
...
@@ -380,9 +442,17 @@ Style/MultilineBlockChain:
-
'
Rakefile'
-
'
lib/annotate/annotate_models.rb'
# Offense count:
11
# Offense count:
6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented
Style/MultilineMethodCallIndentation
:
Enabled
:
false
# Offense count: 19
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented
Style/MultilineOperationIndentation
:
Enabled
:
false
...
...
@@ -391,6 +461,19 @@ Style/MultilineTernaryOperator:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
# Offense count: 21
# Cop supports --auto-correct.
Style/MutableConstant
:
Exclude
:
-
'
Rakefile'
-
'
lib/annotate.rb'
-
'
lib/annotate/annotate_models.rb'
-
'
lib/annotate/annotate_routes.rb'
-
'
spec/annotate/annotate_routes_spec.rb'
-
'
spec/integration/rails_2.3_with_bundler/config/boot.rb'
-
'
spec/integration/rails_2.3_with_bundler/config/environment.rb'
-
'
spec/spec_helper.rb'
# Offense count: 7
# Cop supports --auto-correct.
Style/NegatedIf
:
...
...
@@ -404,6 +487,7 @@ Style/NegatedIf:
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
# SupportedStyles: skip_modifier_ifs, always
Style/Next
:
Exclude
:
-
'
Rakefile'
...
...
@@ -445,6 +529,9 @@ Style/PerlBackrefs:
# Offense count: 2
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
...
...
@@ -452,6 +539,7 @@ Style/PredicateName:
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
Style/RaiseArgs
:
Enabled
:
false
...
...
@@ -461,6 +549,13 @@ Style/RedundantBegin:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/RedundantParentheses
:
Exclude
:
-
'
lib/annotate.rb'
-
'
lib/annotate/annotate_models.rb'
# Offense count: 36
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
...
...
@@ -493,6 +588,7 @@ Style/RedundantSelf:
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral
:
Exclude
:
-
'
Rakefile'
...
...
@@ -518,6 +614,7 @@ Style/Semicolon:
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException
:
Exclude
:
-
'
Rakefile'
...
...
@@ -532,21 +629,6 @@ Style/SingleLineMethods:
Exclude
:
-
'
lib/annotate.rb'
# Offense count: 18
# Cop supports --auto-correct.
Style/SingleSpaceBeforeFirstArg
:
Exclude
:
-
'
spec/fixtures/rails_32_schema.rb'
-
'
spec/integration/rails_2.3_with_bundler/db/schema.rb'
-
'
spec/integration/rails_3.2.2/db/schema.rb'
-
'
spec/integration/rails_3.2.8/db/schema.rb'
-
'
spec/integration/rails_3.2_autoloading_factory_girl/db/schema.rb'
-
'
spec/integration/rails_3.2_custom_inflections/db/schema.rb'
-
'
spec/integration/rails_3.2_with_asset_pipeline/db/schema.rb'
-
'
spec/integration/rails_4.1.1/db/schema.rb'
-
'
spec/integration/rails_4.2.0/db/schema.rb'
-
'
spec/integration/standalone/db/schema.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/SpaceAfterComma
:
...
...
@@ -567,6 +649,7 @@ Style/SpaceAfterControlKeyword:
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceAroundBlockParameters
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
...
...
@@ -574,12 +657,13 @@ Style/SpaceAroundBlockParameters:
# Offense count: 21
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceAroundEqualsInParameterDefault
:
Enabled
:
false
# Offense count: 26
# Cop supports --auto-correct.
# Configuration parameters:
MultiSpaceAllowedForOperators
.
# Configuration parameters:
AllowForAlignment
.
Style/SpaceAroundOperators
:
Exclude
:
-
'
Rakefile'
...
...
@@ -592,6 +676,7 @@ Style/SpaceAroundOperators:
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceBeforeBlockBraces
:
Enabled
:
false
...
...
@@ -604,6 +689,7 @@ Style/SpaceBeforeComment:
# Offense count: 23
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
Style/SpaceInsideBlockBraces
:
Enabled
:
false
...
...
@@ -622,27 +708,29 @@ Style/SpaceInsideParens:
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceInsideStringInterpolation
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars
:
Exclude
:
-
'
lib/annotate.rb'
-
'
spec/integration/integration_spec.rb'
-
'
spec/spec_helper.rb'
EnforcedStyle
:
use_perl_names
# Offense count: 403
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals
:
Enabled
:
false
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation
:
Enabled
:
false
...
...
@@ -655,6 +743,7 @@ Style/SymbolLiteral:
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: respond_to
Style/SymbolProc
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
...
...
@@ -671,6 +760,7 @@ Style/Tab:
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: final_newline, final_blank_line
Style/TrailingBlankLines
:
Exclude
:
-
'
spec/integration/rails_4.1.1/app/models/task_observer.rb'
...
...
@@ -678,10 +768,19 @@ Style/TrailingBlankLines:
-
'
spec/integration/rails_4.2.0/app/models/task_observer.rb'
-
'
spec/integration/rails_4.2.0/config/initializers/cookies_serializer.rb'
# Offense count: 13
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments
:
Exclude
:
-
'
spec/annotate/annotate_models_spec.rb'
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma
:
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral
:
Exclude
:
-
'
lib/annotate.rb'
-
'
lib/annotate/annotate_models.rb'
...
...
@@ -699,10 +798,18 @@ Style/TrailingWhitespace:
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
Style/TrivialAccessors
:
Exclude
:
-
'
lib/annotate/annotate_models.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/UnneededInterpolation
:
Exclude
:
-
'
lib/annotate/annotate_routes.rb'
-
'
spec/integration/integration_spec.rb'
# Offense count: 7
# Cop supports --auto-correct.
Style/UnneededPercentQ
:
...
...
@@ -715,6 +822,8 @@ Style/UnneededPercentQ:
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: WordRegex.
# Configuration parameters: SupportedStyles, WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray
:
MinSize
:
2
EnforcedStyle
:
percent
MinSize
:
3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment