1184 lines
32 KiB
YAML
1184 lines
32 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2019-11-24 03:18:41 +0100 using RuboCop version 0.76.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
|
|
# versions of RuboCop, may require this file to be generated again.
|
|
|
|
# Offense count: 26
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
|
# SupportedStyles: case, end
|
|
Layout/CaseIndentation:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/sass.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Layout/CommentIndentation:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/scanners/lua.rb'
|
|
|
|
# Offense count: 82
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: leading, trailing
|
|
Layout/DotPosition:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowBorderComment, AllowMarginComment.
|
|
Layout/EmptyComment:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
|
|
# Offense count: 30
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLineAfterGuardClause:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/debug_lint.rb'
|
|
- 'lib/coderay/encoders/encoder.rb'
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
- 'lib/coderay/encoders/html/numbering.rb'
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/encoders/lint.rb'
|
|
- 'lib/coderay/encoders/xml.rb'
|
|
- 'lib/coderay/helpers/file_type.rb'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
- 'lib/coderay/tokens.rb'
|
|
- 'rake_tasks/generator.rake'
|
|
- 'rake_tasks/test.rake'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLineAfterMagicComment:
|
|
Exclude:
|
|
- 'lib/coderay.rb'
|
|
- 'lib/coderay/scanners/clojure.rb'
|
|
- 'lib/coderay/scanners/php.rb'
|
|
- 'lib/coderay/scanners/ruby/patterns.rb'
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
- 'test/functional/basic.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
Layout/EmptyLineBetweenDefs:
|
|
Exclude:
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
- 'lib/coderay/tokens.rb'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: around, only_before
|
|
Layout/EmptyLinesAroundAccessModifier:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/filter.rb'
|
|
- 'lib/coderay/encoders/json.rb'
|
|
- 'lib/coderay/encoders/text.rb'
|
|
- 'lib/coderay/encoders/token_kind_filter.rb'
|
|
- 'lib/coderay/encoders/xml.rb'
|
|
- 'lib/coderay/encoders/yaml.rb'
|
|
|
|
# Offense count: 18
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
Layout/EmptyLinesAroundClassBody:
|
|
Exclude:
|
|
- 'lib/coderay/duo.rb'
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/scanners/c.rb'
|
|
- 'lib/coderay/scanners/cpp.rb'
|
|
- 'lib/coderay/scanners/delphi.rb'
|
|
- 'lib/coderay/scanners/java.rb'
|
|
- 'lib/coderay/scanners/xml.rb'
|
|
- 'rake_tasks/code_statistics.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLinesAroundMethodBody:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/c.rb'
|
|
- 'lib/coderay/scanners/cpp.rb'
|
|
- 'lib/coderay/scanners/java.rb'
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
Layout/EmptyLinesAroundModuleBody:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/scanners/c.rb'
|
|
- 'lib/coderay/scanners/cpp.rb'
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/delphi.rb'
|
|
- 'lib/coderay/scanners/java.rb'
|
|
- 'lib/coderay/scanners/lua.rb'
|
|
- 'lib/coderay/scanners/xml.rb'
|
|
- 'lib/coderay/styles.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
|
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
Layout/EndAlignment:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/sass.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: native, lf, crlf
|
|
Layout/EndOfLine:
|
|
Exclude:
|
|
- 'rake_tasks/documentation.rake'
|
|
- 'rake_tasks/statistic.rake'
|
|
|
|
# Offense count: 140
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
Layout/ExtraSpacing:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IndentationWidth.
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
Layout/IndentFirstArrayElement:
|
|
EnforcedStyle: consistent
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IndentationWidth.
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
Layout/IndentFirstHashElement:
|
|
EnforcedStyle: consistent
|
|
|
|
# Offense count: 48
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: squiggly, active_support, powerpack, unindent
|
|
Layout/IndentHeredoc:
|
|
Enabled: false
|
|
|
|
# Offense count: 53
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Width, IgnoredPatterns.
|
|
Layout/IndentationWidth:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowDoxygenCommentStyle.
|
|
Layout/LeadingCommentSpace:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/html.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineArrayBraceLayout:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/lua.rb'
|
|
|
|
# Offense count: 78
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
Layout/MultilineMethodCallIndentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: aligned, indented
|
|
Layout/MultilineOperationIndentation:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/numbering.rb'
|
|
- 'lib/coderay/encoders/token_kind_filter.rb'
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
- 'lib/coderay/scanners/php.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
- 'test/functional/basic.rb'
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAfterComma:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
- 'lib/coderay/scanners/sass.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
- 'lib/coderay/token_kinds.rb'
|
|
|
|
# Offense count: 37
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment.
|
|
Layout/SpaceAroundOperators:
|
|
AllowForAlignment: true
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeComment:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
- 'lib/coderay/token_kinds.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeSemicolon:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
# SupportedStyles: space, no_space, compact
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/encoder.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'lib/coderay/styles/style.rb'
|
|
- 'test/unit/json_encoder.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceInsideParens:
|
|
Exclude:
|
|
- 'rake_tasks/code_statistics.rb'
|
|
|
|
# Offense count: 32
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/clojure.rb'
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
- 'lib/coderay/scanners/java.rb'
|
|
- 'lib/coderay/scanners/java_script.rb'
|
|
- 'lib/coderay/scanners/php.rb'
|
|
- 'lib/coderay/scanners/ruby/patterns.rb'
|
|
- 'lib/coderay/scanners/sql.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsideRangeLiteral:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
- 'lib/coderay/encoders/html/numbering.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
# SupportedStyles: space, no_space
|
|
# SupportedStylesForEmptyBrackets: space, no_space
|
|
Layout/SpaceInsideReferenceBrackets:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceInsideStringInterpolation:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: final_newline, final_blank_line
|
|
Layout/TrailingBlankLines:
|
|
Exclude:
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
- 'lib/coderay/scanners/clojure.rb'
|
|
- 'test/executable/source.rb'
|
|
- 'test/functional/for_redcloth.rb'
|
|
- 'test/unit/comment_filter.rb'
|
|
- 'test/unit/count.rb'
|
|
- 'test/unit/json_encoder.rb'
|
|
- 'test/unit/lines_of_code.rb'
|
|
- 'test/unit/null.rb'
|
|
- 'test/unit/statistic.rb'
|
|
- 'test/unit/text.rb'
|
|
- 'test/unit/tokens.rb'
|
|
|
|
# Offense count: 1680
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowInHeredoc.
|
|
Layout/TrailingWhitespace:
|
|
Enabled: false
|
|
|
|
# Offense count: 485
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
Lint/AssignmentInCondition:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: AllowComments.
|
|
Lint/HandleExceptions:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
|
|
# Offense count: 2
|
|
Lint/IneffectiveAccessModifier:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: runtime_error, standard_error
|
|
Lint/InheritException:
|
|
Exclude:
|
|
- 'lib/coderay/helpers/file_type.rb'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
|
|
# Offense count: 3
|
|
Lint/LiteralAsCondition:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
- 'lib/coderay/scanners/haml.rb'
|
|
- 'test/executable/suite.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/LiteralInInterpolation:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
|
|
# Offense count: 2
|
|
Lint/Loop:
|
|
Exclude:
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
- 'lib/coderay/tokens.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/RedundantSplatExpansion:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/SendWithMixinArgument:
|
|
Exclude:
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: IgnoreImplicitReferences.
|
|
Lint/ShadowedArgument:
|
|
Exclude:
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
Lint/UnusedBlockArgument:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/statistic.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'rake_tasks/code_statistics.rb'
|
|
|
|
# Offense count: 38
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
|
Lint/UnusedMethodArgument:
|
|
Enabled: false
|
|
|
|
# Offense count: 8
|
|
Lint/UselessAssignment:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/sql.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
- 'rake_tasks/code_statistics.rb'
|
|
- 'test/executable/suite.rb'
|
|
|
|
# Offense count: 7
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
Lint/Void:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
|
|
# Offense count: 49
|
|
Metrics/AbcSize:
|
|
Max: 361
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
# ExcludedMethods: refine
|
|
Metrics/BlockLength:
|
|
Max: 71
|
|
|
|
# Offense count: 183
|
|
# Configuration parameters: CountBlocks.
|
|
Metrics/BlockNesting:
|
|
Max: 8
|
|
|
|
# Offense count: 27
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ClassLength:
|
|
Max: 380
|
|
|
|
# Offense count: 34
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 148
|
|
|
|
# Offense count: 63
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/MethodLength:
|
|
Max: 366
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ModuleLength:
|
|
Max: 410
|
|
|
|
# Offense count: 34
|
|
Metrics/PerceivedComplexity:
|
|
Max: 161
|
|
|
|
# Offense count: 2
|
|
Naming/AccessorMethodName:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 24
|
|
Naming/ConstantName:
|
|
Exclude:
|
|
- 'lib/coderay/helpers/file_type.rb'
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/java/builtin_types.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
Naming/FileName:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
Naming/MemoizedInstanceVariableName:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredName.
|
|
Naming/RescuedExceptionsVariableName:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
|
Naming/UncommunicativeMethodParamName:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 8
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: snake_case, camelCase
|
|
Naming/VariableName:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/encoder.rb'
|
|
- 'lib/coderay/encoders/html.rb'
|
|
- 'test/functional/basic.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
Naming/VariableNumber:
|
|
Exclude:
|
|
- 'test/unit/tokens.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect.
|
|
Security/JSONLoad:
|
|
Exclude:
|
|
- 'test/unit/json_encoder.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Security/YAMLLoad:
|
|
Exclude:
|
|
- 'test/unit/duo.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: inline, group
|
|
Style/AccessModifierDeclarations:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/encoder.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: always, conditionals
|
|
Style/AndOr:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/scanners/clojure.rb'
|
|
- 'lib/coderay/scanners/erb.rb'
|
|
- 'lib/coderay/scanners/lua.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
|
|
# Offense count: 9
|
|
# Configuration parameters: AllowedChars.
|
|
Style/AsciiComments:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/lua.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/Attr:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
# 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/coderay/scanners/python.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: braces, no_braces, context_dependent
|
|
Style/BracesAroundHashParameters:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/ruby/patterns.rb'
|
|
|
|
# Offense count: 3
|
|
Style/CaseEquality:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'rake_tasks/generator.rake'
|
|
- 'test/executable/suite.rb'
|
|
|
|
# Offense count: 35
|
|
# Cop supports --auto-correct.
|
|
Style/CharacterLiteral:
|
|
Exclude:
|
|
- 'ideosyncratic-ruby.rb'
|
|
- 'lib/coderay/encoders/html/numbering.rb'
|
|
- 'lib/coderay/scanners/c.rb'
|
|
- 'lib/coderay/scanners/cpp.rb'
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/go.rb'
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
- 'lib/coderay/scanners/java_script.rb'
|
|
- 'lib/coderay/scanners/python.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
- 'lib/coderay/scanners/sass.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'lib/coderay/scanners/sql.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
# SupportedStyles: nested, compact
|
|
Style/ClassAndModuleChildren:
|
|
Exclude:
|
|
- 'lib/coderay/helpers/word_list.rb'
|
|
- 'lib/coderay/scanners/java/builtin_types.rb'
|
|
- 'lib/coderay/scanners/ruby/patterns.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/ClassMethods:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
|
|
# Offense count: 2
|
|
Style/ClassVars:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/encoder.rb'
|
|
|
|
# Offense count: 2
|
|
Style/CommentedKeyword:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
Style/ConditionalAssignment:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'coderay.gemspec'
|
|
- 'lib/coderay/encoders/html.rb'
|
|
- 'lib/coderay/encoders/html/numbering.rb'
|
|
- 'lib/coderay/encoders/xml.rb'
|
|
- 'lib/coderay/scanners/debug.rb'
|
|
- 'lib/coderay/scanners/html.rb'
|
|
- 'lib/coderay/scanners/java_script.rb'
|
|
- 'lib/coderay/scanners/php.rb'
|
|
- 'lib/coderay/scanners/raydebug.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'rake_tasks/code_statistics.rb'
|
|
- 'test/executable/suite.rb'
|
|
|
|
# Offense count: 21
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
Style/DoubleNegation:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/python.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Style/EachWithObject:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay/helpers/plugin.rb'
|
|
- 'rake_tasks/code_statistics.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Style/EmptyCaseCondition:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/xml.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/EmptyLiteral:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: compact, expanded
|
|
Style/EmptyMethod:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/encoder.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
Style/Encoding:
|
|
Exclude:
|
|
- 'lib/coderay.rb'
|
|
- 'lib/coderay/scanners/clojure.rb'
|
|
- 'lib/coderay/scanners/lua.rb'
|
|
- 'lib/coderay/scanners/php.rb'
|
|
- 'lib/coderay/scanners/ruby/patterns.rb'
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'test/functional/basic.rb'
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
Style/ExpandPathArguments:
|
|
Exclude:
|
|
- 'bench/bench.rb'
|
|
- 'coderay.gemspec'
|
|
- 'lib/coderay.rb'
|
|
- 'test/executable/suite.rb'
|
|
- 'test/functional/basic.rb'
|
|
- 'test/functional/examples.rb'
|
|
- 'test/functional/for_redcloth.rb'
|
|
- 'test/functional/suite.rb'
|
|
- 'test/unit/file_type.rb'
|
|
- 'test/unit/lines_of_code.rb'
|
|
- 'test/unit/plugin.rb'
|
|
|
|
# Offense count: 22
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: each, for
|
|
Style/For:
|
|
Exclude:
|
|
- 'Rakefile'
|
|
- 'lib/coderay/encoders/encoder.rb'
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
- 'lib/coderay/helpers/file_type.rb'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/tokens.rb'
|
|
- 'rake_tasks/generator.rake'
|
|
- 'rake_tasks/test.rake'
|
|
- 'test/functional/basic.rb'
|
|
- 'test/functional/suite.rb'
|
|
- 'test/unit/html.rb'
|
|
- 'test/unit/json_encoder.rb'
|
|
- 'test/unit/suite.rb'
|
|
- 'test/unit/token_kind_filter.rb'
|
|
|
|
# Offense count: 62
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: format, sprintf, percent
|
|
Style/FormatString:
|
|
Enabled: false
|
|
|
|
# Offense count: 87
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: annotated, template, unannotated
|
|
Style/FormatStringToken:
|
|
Enabled: false
|
|
|
|
# Offense count: 112
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: always, never
|
|
Style/FrozenStringLiteralComment:
|
|
Enabled: false
|
|
|
|
# Offense count: 9
|
|
# Configuration parameters: AllowedVariables.
|
|
Style/GlobalVars:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay.rb'
|
|
- 'lib/coderay/encoders/html.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
- 'test/functional/suite.rb'
|
|
- 'test/unit/suite.rb'
|
|
|
|
# Offense count: 16
|
|
# Configuration parameters: MinBodyLength.
|
|
Style/GuardClause:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html.rb'
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/encoders/terminal.rb'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
- 'lib/coderay/scanners/haml.rb'
|
|
- 'lib/coderay/scanners/html.rb'
|
|
- 'lib/coderay/scanners/python.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'test/executable/suite.rb'
|
|
- 'test/unit/file_type.rb'
|
|
|
|
# Offense count: 306
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
Style/HashSyntax:
|
|
EnforcedStyle: hash_rockets
|
|
|
|
# Offense count: 4
|
|
Style/IdenticalConditionalBranches:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/html.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: AllowIfModifier.
|
|
Style/IfInsideElse:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/sass.rb'
|
|
|
|
# Offense count: 42
|
|
# Cop supports --auto-correct.
|
|
Style/IfUnlessModifier:
|
|
Enabled: false
|
|
|
|
# Offense count: 3
|
|
Style/IfUnlessModifierOfIfUnless:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/text.rb'
|
|
- 'lib/coderay/scanners/erb.rb'
|
|
- 'rake_tasks/test.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/InfiniteLoop:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/haml.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/LineEndConcatenation:
|
|
Exclude:
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
- 'test/functional/basic.rb'
|
|
|
|
# Offense count: 221
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
|
Style/MethodDefParentheses:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
Style/MethodMissingSuper:
|
|
Exclude:
|
|
- 'lib/coderay/tokens_proxy.rb'
|
|
|
|
# Offense count: 2
|
|
Style/MissingRespondToMissing:
|
|
Exclude:
|
|
- 'lib/coderay/tokens.rb'
|
|
- 'lib/coderay/tokens_proxy.rb'
|
|
|
|
# Offense count: 1
|
|
Style/MultilineBlockChain:
|
|
Exclude:
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Style/MultilineIfModifier:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/text.rb'
|
|
- 'lib/coderay/scanners/erb.rb'
|
|
- 'rake_tasks/documentation.rake'
|
|
- 'rake_tasks/test.rake'
|
|
- 'test/functional/for_redcloth.rb'
|
|
|
|
# Offense count: 10
|
|
Style/MultilineTernaryOperator:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
|
|
# Offense count: 7
|
|
Style/MultipleComparison:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
- 'lib/coderay/scanners/html.rb'
|
|
- 'lib/coderay/scanners/java.rb'
|
|
- 'lib/coderay/scanners/java_script.rb'
|
|
- 'lib/coderay/scanners/sass.rb'
|
|
- 'lib/coderay/scanners/yaml.rb'
|
|
|
|
# Offense count: 247
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: literals, strict
|
|
Style/MutableConstant:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: both, prefix, postfix
|
|
Style/NegatedIf:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
|
|
# Offense count: 6
|
|
Style/NestedTernaryOperator:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'lib/coderay/scanners/php.rb'
|
|
- 'lib/coderay/scanners/python.rb'
|
|
- 'lib/coderay/scanners/sass.rb'
|
|
- 'lib/coderay/scanners/sql.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NilComparison:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/numbering.rb'
|
|
- 'lib/coderay/scanners/python.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/Not:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/scanners/clojure.rb'
|
|
- 'lib/coderay/scanners/erb.rb'
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'lib/coderay/encoders/html.rb'
|
|
- 'lib/coderay/encoders/html/numbering.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
- 'lib/coderay/scanners/haml.rb'
|
|
- 'lib/coderay/scanners/lua.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
- 'lib/coderay/tokens.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/OneLineConditional:
|
|
Exclude:
|
|
- 'rake_tasks/code_statistics.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/OrAssignment:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/ParallelAssignment:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/statistic.rb'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
|
|
# Offense count: 30
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredDelimiters.
|
|
Style/PercentLiteralDelimiters:
|
|
Enabled: false
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Style/PerlBackrefs:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: short, verbose
|
|
Style/PreferredHashMethods:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/debug_lint.rb'
|
|
- 'lib/coderay/encoders/lint.rb'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
Style/RedundantReturn:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/css.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSelf:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html/output.rb'
|
|
- 'lib/coderay/helpers/plugin_host.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSort:
|
|
Exclude:
|
|
- 'test/unit/plugin.rb'
|
|
|
|
# Offense count: 58
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
Style/RegexpLiteral:
|
|
Enabled: false
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Style/RescueModifier:
|
|
Exclude:
|
|
- 'rake_tasks/code_statistics.rb'
|
|
- 'rake_tasks/test.rake'
|
|
- 'test/functional/for_redcloth.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: implicit, explicit
|
|
Style/RescueStandardError:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
|
|
# Whitelist: present?, blank?, presence, try, try!
|
|
Style/SafeNavigation:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay/scanners/ruby.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
Style/Semicolon:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
Style/SingleLineMethods:
|
|
Exclude:
|
|
- 'lib/coderay/tokens.rb'
|
|
|
|
# Offense count: 24
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: .
|
|
# SupportedStyles: use_perl_names, use_english_names
|
|
Style/SpecialGlobalVars:
|
|
EnforcedStyle: use_perl_names
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/StderrPuts:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/json.rb'
|
|
|
|
# Offense count: 131
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiterals:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiteralsInInterpolation:
|
|
Exclude:
|
|
- 'rake_tasks/code_statistics.rb'
|
|
|
|
# Offense count: 1
|
|
Style/StructInheritance:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/ruby/string_state.rb'
|
|
|
|
# Offense count: 37
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MinSize.
|
|
# SupportedStyles: percent, brackets
|
|
Style/SymbolArray:
|
|
EnforcedStyle: brackets
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
# IgnoredMethods: respond_to, define_method
|
|
Style/SymbolProc:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'test/unit/plugin.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
Style/TernaryParentheses:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
|
|
# Offense count: 21
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInArrayLiteral:
|
|
Exclude:
|
|
- 'lib/coderay/scanners/c.rb'
|
|
- 'lib/coderay/scanners/cpp.rb'
|
|
- 'lib/coderay/scanners/css.rb'
|
|
- 'lib/coderay/scanners/delphi.rb'
|
|
- 'lib/coderay/scanners/go.rb'
|
|
- 'lib/coderay/scanners/html.rb'
|
|
- 'lib/coderay/scanners/json.rb'
|
|
- 'lib/coderay/scanners/python.rb'
|
|
- 'lib/coderay/scanners/scanner.rb'
|
|
- 'test/unit/json_encoder.rb'
|
|
|
|
# Offense count: 26
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInHashLiteral:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html.rb'
|
|
- 'lib/coderay/encoders/terminal.rb'
|
|
- 'lib/coderay/encoders/xml.rb'
|
|
- 'lib/coderay/for_redcloth.rb'
|
|
- 'lib/coderay/helpers/file_type.rb'
|
|
- 'lib/coderay/scanners/diff.rb'
|
|
- 'lib/coderay/scanners/groovy.rb'
|
|
- 'lib/coderay/scanners/html.rb'
|
|
- 'lib/coderay/scanners/java.rb'
|
|
- 'lib/coderay/scanners/java_script.rb'
|
|
- 'lib/coderay/scanners/ruby/patterns.rb'
|
|
- 'lib/coderay/scanners/sql.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/VariableInterpolation:
|
|
Exclude:
|
|
- 'bin/coderay'
|
|
- 'ideosyncratic-ruby.rb'
|
|
|
|
# Offense count: 10
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: WordRegex.
|
|
# SupportedStyles: percent, brackets
|
|
Style/WordArray:
|
|
EnforcedStyle: percent
|
|
MinSize: 69
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/ZeroLengthPredicate:
|
|
Exclude:
|
|
- 'lib/coderay/encoders/html.rb'
|
|
|
|
# Offense count: 813
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 266
|