diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-05 18:19:07 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-04-07 18:58:37 +0200 |
| commit | a058946a0d78771157b07f1803527a2263c44dd7 (patch) | |
| tree | 801b561b27632020db11c6902f47712d3789ed62 | |
| parent | c9133ad108ca80c5d99195a70a9bdd95e50dde1a (diff) | |
| download | caxlsx-a058946a0d78771157b07f1803527a2263c44dd7.tar.gz caxlsx-a058946a0d78771157b07f1803527a2263c44dd7.zip | |
Add RuboCop workflow and configuration
| -rw-r--r-- | .gitattributes | 1 | ||||
| -rw-r--r-- | .github/workflows/rubocop.yml | 32 | ||||
| -rw-r--r-- | .rubocop.yml | 13 | ||||
| -rw-r--r-- | .rubocop_todo.yml | 1434 |
4 files changed, 1480 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6fd60616 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.rubocop_todo.yml linguist-generated diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 00000000..2daa2926 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,32 @@ +name: RuboCop + +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +permissions: + contents: read + +jobs: + rubocop: + name: RuboCop + runs-on: ${{ matrix.os }} + env: + BUNDLE_JOBS: 4 + BUNDLE_RETRY: 3 + strategy: + matrix: + os: [ubuntu-latest] + ruby-version: ['3.2'] + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run RuboCop + run: bundle exec rubocop diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 00000000..fe5b876a --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,13 @@ +inherit_from: .rubocop_todo.yml + +AllCops: + NewCops: enable + SuggestExtensions: false + TargetRubyVersion: 2.3 + Exclude: + - 'docs/**/*' + - 'examples/**/*' + - 'vendor/bundle/**/*' + +Layout/CommentIndentation: + AllowForAlignment: true diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 00000000..f2f2e40e --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,1434 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2023-04-05 15:57:00 UTC using RuboCop version 1.49.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: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. +# Include: **/*.gemspec +Gemspec/OrderedDependencies: + Exclude: + - 'axlsx.gemspec' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Severity, Include. +# Include: **/*.gemspec +Gemspec/RequireMFA: + Exclude: + - 'axlsx.gemspec' + +# Offense count: 15 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: with_first_argument, with_fixed_indentation +Layout/ArgumentAlignment: + Exclude: + - 'lib/axlsx/drawing/picture_locking.rb' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/workbook/defined_name.rb' + - 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb' + - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' + - 'lib/axlsx/workbook/worksheet/sheet_view.rb' + - 'lib/axlsx/workbook/worksheet/table_style_info.rb' + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleAlignWith. +# SupportedStylesAlignWith: either, start_of_block, start_of_line +Layout/BlockAlignment: + Exclude: + - 'lib/axlsx/util/simple_typed_list.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/workbook/tc_defined_name.rb' + - 'test/workbook/worksheet/tc_header_footer.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Layout/ClosingParenthesisIndentation: + Exclude: + - 'lib/axlsx/stylesheet/styles.rb' + +# Offense count: 5 +# This cop supports safe autocorrection (--autocorrect). +Layout/ElseAlignment: + Exclude: + - 'lib/axlsx/workbook/worksheet/merged_cells.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/workbook/worksheet/tc_date_time_converter.rb' + +# Offense count: 90 +# This cop supports safe autocorrection (--autocorrect). +Layout/EmptyLineAfterGuardClause: + Enabled: false + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: empty_lines, no_empty_lines +Layout/EmptyLinesAroundBlockBody: + Exclude: + - 'lib/axlsx/drawing/bar_series.rb' + - 'test/benchmark.rb' + +# Offense count: 285 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only +Layout/EmptyLinesAroundClassBody: + Enabled: false + +# Offense count: 32 +# This cop supports safe autocorrection (--autocorrect). +Layout/EmptyLinesAroundMethodBody: + Enabled: false + +# Offense count: 96 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines +Layout/EmptyLinesAroundModuleBody: + Enabled: false + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleAlignWith, Severity. +# SupportedStylesAlignWith: keyword, variable, start_of_line +Layout/EndAlignment: + Exclude: + - 'lib/axlsx/workbook/worksheet/merged_cells.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/workbook/worksheet/tc_date_time_converter.rb' + +# Offense count: 58 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. +Layout/ExtraSpacing: + Enabled: false + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: special_inside_parentheses, consistent, align_brackets +Layout/FirstArrayElementIndentation: + Exclude: + - 'lib/axlsx/package.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: IndentationWidth. +# SupportedStyles: special_inside_parentheses, consistent, align_braces +Layout/FirstHashElementIndentation: + EnforcedStyle: consistent + +# Offense count: 48 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. +# SupportedHashRocketStyles: key, separator, table +# SupportedColonStyles: key, separator, table +# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit +Layout/HashAlignment: + Exclude: + - 'lib/axlsx/package.rb' + - 'lib/axlsx/util/storage.rb' + - 'lib/axlsx/workbook/worksheet/border_creator.rb' + - 'test/stylesheet/tc_cell_alignment.rb' + - 'test/tc_axlsx.rb' + - 'test/workbook/tc_workbook_view.rb' + - 'test/workbook/worksheet/auto_filter/tc_filters.rb' + - 'test/workbook/worksheet/tc_conditional_formatting.rb' + - 'test/workbook/worksheet/tc_data_validation.rb' + - 'test/workbook/worksheet/tc_sheet_view.rb' + - 'test/workbook/worksheet/tc_table_style_info.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Layout/HeredocIndentation: + Exclude: + - 'lib/axlsx/drawing/vml_drawing.rb' + - 'lib/axlsx/drawing/vml_shape.rb' + +# Offense count: 48 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: normal, indented_internal_methods +Layout/IndentationConsistency: + Enabled: false + +# Offense count: 126 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Width, AllowedPatterns. +Layout/IndentationWidth: + Enabled: false + +# Offense count: 218 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment. +Layout/LeadingCommentSpace: + Enabled: false + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: symmetrical, new_line, same_line +Layout/MultilineHashBraceLayout: + Exclude: + - 'lib/axlsx/stylesheet/styles.rb' + - 'test/tc_axlsx.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: symmetrical, new_line, same_line +Layout/MultilineMethodCallBraceLayout: + Exclude: + - 'lib/axlsx/stylesheet/styles.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: aligned, indented +Layout/MultilineOperationIndentation: + Exclude: + - 'lib/axlsx/package.rb' + +# Offense count: 264 +# This cop supports safe autocorrection (--autocorrect). +Layout/SpaceAfterComma: + Enabled: false + +# Offense count: 8 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleInsidePipes. +# SupportedStylesInsidePipes: space, no_space +Layout/SpaceAroundBlockParameters: + Exclude: + - 'lib/axlsx/workbook/worksheet/row.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 184 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: space, no_space +Layout/SpaceAroundEqualsInParameterDefault: + Enabled: false + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Layout/SpaceAroundKeyword: + Exclude: + - 'lib/axlsx/package.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + +# Offense count: 343 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. +# SupportedStylesForExponentOperator: space, no_space +Layout/SpaceAroundOperators: + Enabled: false + +# Offense count: 55 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. +# SupportedStyles: space, no_space +# SupportedStylesForEmptyBraces: space, no_space +Layout/SpaceBeforeBlockBraces: + Enabled: false + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +Layout/SpaceBeforeComma: + Exclude: + - 'test/workbook/worksheet/auto_filter/tc_filters.rb' + - 'test/workbook/worksheet/tc_comment.rb' + - 'test/workbook/worksheet/tc_page_setup.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowForAlignment. +Layout/SpaceBeforeFirstArg: + Exclude: + - 'lib/axlsx/stylesheet/font.rb' + - 'lib/axlsx/workbook/workbook_view.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 5 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. +# SupportedStyles: space, no_space, compact +# SupportedStylesForEmptyBrackets: space, no_space +Layout/SpaceInsideArrayLiteralBrackets: + Exclude: + - 'lib/axlsx/workbook/worksheet/data_validation.rb' + - 'lib/axlsx/workbook/worksheet/sheet_view.rb' + - 'test/workbook/worksheet/auto_filter/tc_filters.rb' + +# Offense count: 139 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. +# SupportedStyles: space, no_space +# SupportedStylesForEmptyBraces: space, no_space +Layout/SpaceInsideBlockBraces: + Enabled: false + +# Offense count: 227 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. +# SupportedStyles: space, no_space, compact +# SupportedStylesForEmptyBraces: space, no_space +Layout/SpaceInsideHashLiteralBraces: + Enabled: false + +# Offense count: 82 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: space, compact, no_space +Layout/SpaceInsideParens: + Enabled: false + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Layout/SpaceInsidePercentLiteralDelimiters: + Exclude: + - 'axlsx.gemspec' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. +# SupportedStyles: space, no_space +# SupportedStylesForEmptyBrackets: space, no_space +Layout/SpaceInsideReferenceBrackets: + Exclude: + - 'test/drawing/tc_d_lbls.rb' + +# Offense count: 1 +Lint/AmbiguousAssignment: + Exclude: + - 'test/workbook/worksheet/tc_rich_text.rb' + +# Offense count: 2 +# Configuration parameters: AllowedMethods, AllowedPatterns. +Lint/AmbiguousBlockAssociation: + Exclude: + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 24 +# This cop supports safe autocorrection (--autocorrect). +Lint/AmbiguousOperatorPrecedence: + Exclude: + - 'lib/axlsx/drawing/area_series.rb' + - 'lib/axlsx/drawing/line_series.rb' + - 'lib/axlsx/drawing/pie_series.rb' + - 'lib/axlsx/workbook/worksheet/dimension.rb' + - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/tc_axlsx.rb' + - 'test/workbook/worksheet/tc_cell.rb' + - 'test/workbook/worksheet/tc_date_time_converter.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 3 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowSafeAssignment. +Lint/AssignmentInCondition: + Exclude: + - 'lib/axlsx/drawing/area_chart.rb' + - 'lib/axlsx/drawing/line_chart.rb' + - 'lib/axlsx/workbook/shared_strings_table.rb' + +# Offense count: 11 +# This cop supports unsafe autocorrection (--autocorrect-all). +Lint/BooleanSymbol: + Exclude: + - 'lib/axlsx/stylesheet/font.rb' + - 'lib/axlsx/util/validators.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + - 'test/util/tc_validators.rb' + - 'test/workbook/tc_workbook.rb' + +# Offense count: 3 +# This cop supports unsafe autocorrection (--autocorrect-all). +Lint/DisjunctiveAssignmentInConstructor: + Exclude: + - 'lib/axlsx/drawing/num_data_source.rb' + +# Offense count: 2 +# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. +Lint/DuplicateBranch: + Exclude: + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/merged_cells.rb' + +# Offense count: 4 +# Configuration parameters: AllowComments, AllowEmptyLambdas. +Lint/EmptyBlock: + Exclude: + - 'test/stylesheet/tc_styles.rb' + +# Offense count: 1 +Lint/NonLocalExitFromIterator: + Exclude: + - 'lib/axlsx/util/validators.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowPercentLiteralArrayArgument. +Lint/RedundantSplatExpansion: + Exclude: + - 'test/drawing/tc_d_lbls.rb' + +# Offense count: 8 +# This cop supports safe autocorrection (--autocorrect). +Lint/RedundantStringCoercion: + Exclude: + - 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + - 'test/drawing/tc_axis.rb' + - 'test/stylesheet/tc_table_style_element.rb' + - 'test/workbook/worksheet/tc_comment.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Lint/ScriptPermission: + Exclude: + - 'test/benchmark.rb' + - 'test/profile.rb' + +# Offense count: 23 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: strict, consistent +Lint/SymbolConversion: + Exclude: + - 'test/doc_props/tc_app.rb' + +# Offense count: 15 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. +Lint/UnusedBlockArgument: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/drawing/axes.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table.rb' + - 'lib/axlsx/workbook/worksheet/sheet_view.rb' + - 'test/drawing/tc_bar_series.rb' + - 'test/stylesheet/tc_styles.rb' + - 'test/util/tc_validators.rb' + - 'test/workbook/worksheet/tc_data_validation.rb' + - 'test/workbook/worksheet/tc_sheet_protection.rb' + - 'test/workbook/worksheet/tc_sheet_view.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 6 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. +Lint/UnusedMethodArgument: + Exclude: + - 'lib/axlsx/package.rb' + - 'lib/axlsx/util/serialized_attributes.rb' + - 'lib/axlsx/util/validators.rb' + +# Offense count: 2 +Lint/UselessAssignment: + Exclude: + - 'lib/axlsx/workbook/worksheet/header_footer.rb' + - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' + +# Offense count: 7 +# Configuration parameters: CheckForMethodsWithNoSideEffects. +Lint/Void: + Exclude: + - 'lib/axlsx/drawing/title.rb' + - 'lib/axlsx/util/simple_typed_list.rb' + - 'lib/axlsx/util/storage.rb' + - 'lib/axlsx/workbook/worksheet/data_bar.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table.rb' + +# Offense count: 163 +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. +Metrics/AbcSize: + Max: 227 + +# Offense count: 2 +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. +# AllowedMethods: refine +Metrics/BlockLength: + Max: 54 + +# Offense count: 28 +# Configuration parameters: CountComments, CountAsOne. +Metrics/ClassLength: + Max: 710 + +# Offense count: 21 +# Configuration parameters: AllowedMethods, AllowedPatterns. +Metrics/CyclomaticComplexity: + Max: 25 + +# Offense count: 141 +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. +Metrics/MethodLength: + Max: 128 + +# Offense count: 2 +# Configuration parameters: CountComments, CountAsOne. +Metrics/ModuleLength: + Max: 115 + +# Offense count: 17 +# Configuration parameters: AllowedMethods, AllowedPatterns. +Metrics/PerceivedComplexity: + Max: 29 + +# Offense count: 2 +Naming/AccessorMethodName: + Exclude: + - 'lib/axlsx/drawing/axes.rb' + - 'lib/axlsx/workbook/worksheet/data_validation.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Naming/BinaryOperatorParameterName: + Exclude: + - 'lib/axlsx/util/simple_typed_list.rb' + +# Offense count: 7 +# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms. +# CheckDefinitionPathHierarchyRoots: lib, spec, test, src +# 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: + - 'lib/axlsx/drawing/bar_3D_chart.rb' + - 'lib/axlsx/drawing/line_3D_chart.rb' + - 'lib/axlsx/drawing/pie_3D_chart.rb' + - 'lib/axlsx/drawing/view_3D.rb' + - 'test/drawing/tc_bar_3D_chart.rb' + - 'test/drawing/tc_pie_3D_chart.rb' + - 'test/drawing/tc_view_3D.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: lowercase, uppercase +Naming/HeredocDelimiterCase: + Exclude: + - 'axlsx.gemspec' + +# Offense count: 1 +# Configuration parameters: ForbiddenDelimiters. +# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$)) +Naming/HeredocDelimiterNaming: + Exclude: + - 'axlsx.gemspec' + +# Offense count: 1 +# Configuration parameters: EnforcedStyleForLeadingUnderscores. +# SupportedStylesForLeadingUnderscores: disallowed, required, optional +Naming/MemoizedInstanceVariableName: + Exclude: + - 'lib/axlsx/workbook/worksheet/sheet_pr.rb' + +# Offense count: 201 +# Configuration parameters: EnforcedStyle, AllowedPatterns. +# SupportedStyles: snake_case, camelCase +Naming/MethodName: + Enabled: false + +# Offense count: 422 +# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. +# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to +Naming/MethodParameterName: + Enabled: false + +# Offense count: 5 +# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. +# NamePrefix: is_, has_, have_ +# ForbiddenPrefixes: is_, has_, have_ +# AllowedMethods: is_a? +# MethodDefinitionMacros: define_method, define_singleton_method +Naming/PredicateName: + Exclude: + - 'spec/**/*' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/worksheet_comments.rb' + - 'lib/axlsx/workbook/worksheet/worksheet_drawing.rb' + +# Offense count: 96 +# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns. +# SupportedStyles: snake_case, camelCase +Naming/VariableName: + Enabled: false + +# Offense count: 34 +# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. +# SupportedStyles: snake_case, normalcase, non_integer +# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64 +Naming/VariableNumber: + Exclude: + - 'lib/axlsx/util/validators.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/cell_serializer.rb' + - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' + - 'test/rels/tc_relationship.rb' + - 'test/rels/tc_relationships.rb' + - 'test/tc_package.rb' + - 'test/workbook/worksheet/tc_cell.rb' + - 'test/workbook/worksheet/tc_date_time_converter.rb' + - 'test/workbook/worksheet/tc_sheet_view.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Security/IoMethods: + Exclude: + - 'lib/axlsx/package.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: separated, grouped +Style/AccessorGrouping: + Exclude: + - 'lib/axlsx/workbook/worksheet/worksheet_drawing.rb' + +# Offense count: 149 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: prefer_alias, prefer_alias_method +Style/Alias: + Enabled: false + +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: always, conditionals +Style/AndOr: + Exclude: + - 'lib/axlsx/workbook/worksheet/data_validation.rb' + +# Offense count: 5 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. +# 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 +# AllowedMethods: lambda, proc, it +Style/BlockDelimiters: + Exclude: + - 'test/benchmark.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: MinBranchesCount. +Style/CaseLikeIf: + Exclude: + - 'lib/axlsx/workbook/worksheet/merged_cells.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Style/CharacterLiteral: + Exclude: + - 'lib/axlsx/workbook/worksheet/cell.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: is_a?, kind_of? +Style/ClassCheck: + Exclude: + - 'lib/axlsx/drawing/axes.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedMethods, AllowedPatterns. +# AllowedMethods: ==, equal?, eql? +Style/ClassEqualityComparison: + Exclude: + - 'lib/axlsx/workbook/worksheet/pane.rb' + - 'lib/axlsx/workbook/worksheet/selection.rb' + - 'lib/axlsx/workbook/worksheet/sheet_view.rb' + +# Offense count: 6 +Style/ClassVars: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/dimension.rb' + +# Offense count: 267 +# This cop supports safe autocorrection (--autocorrect). +Style/ColonMethodCall: + Enabled: false + +# Offense count: 9 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Keywords, RequireColon. +# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE +Style/CommentAnnotation: + Exclude: + - 'lib/axlsx/drawing/axis.rb' + - 'lib/axlsx/drawing/chart.rb' + - 'lib/axlsx/drawing/view_3D.rb' + - 'test/drawing/tc_pie_series.rb' + - 'test/workbook/worksheet/tc_cell.rb' + - 'test/workbook/worksheet/tc_col.rb' + - 'test/workbook/worksheet/tc_comments.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/ConcatArrayLiterals: + Exclude: + - 'lib/axlsx/workbook/worksheet/icon_set.rb' + +# Offense count: 5 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. +# SupportedStyles: assign_to_condition, assign_inside_condition +Style/ConditionalAssignment: + Exclude: + - 'lib/axlsx/drawing/title.rb' + - 'lib/axlsx/stylesheet/styles.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/data_bar.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/DefWithParentheses: + Exclude: + - 'lib/axlsx/stylesheet/styles.rb' + +# Offense count: 1 +Style/DocumentDynamicEvalDefinition: + Exclude: + - 'lib/axlsx/util/simple_typed_list.rb' + +# Offense count: 10 +# Configuration parameters: AllowedConstants. +Style/Documentation: + Exclude: + - 'spec/**/*' + - 'test/**/*' + - 'lib/axlsx/content_type/content_type.rb' + - 'lib/axlsx/drawing/drawing.rb' + - 'lib/axlsx/rels/relationships.rb' + - 'lib/axlsx/stylesheet/styles.rb' + - 'lib/axlsx/util/constants.rb' + - 'lib/axlsx/util/validators.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/border_creator.rb' + - 'lib/axlsx/workbook/worksheet/row_breaks.rb' + - 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/EachForSimpleLoop: + Exclude: + - 'test/workbook/worksheet/tc_rich_text.rb' + +# Offense count: 44 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: compact, expanded +Style/EmptyMethod: + Enabled: false + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/EvalWithLocation: + Exclude: + - 'lib/axlsx/util/simple_typed_list.rb' + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +Style/ExpandPathArguments: + Exclude: + - 'axlsx.gemspec' + - 'test/tc_package.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Style/FileWrite: + Exclude: + - 'lib/axlsx/util/zip_command.rb' + - 'test/benchmark.rb' + +# Offense count: 12 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: format, sprintf, percent +Style/FormatString: + Exclude: + - 'lib/axlsx/drawing/pic.rb' + - 'lib/axlsx/drawing/view_3D.rb' + - 'lib/axlsx/drawing/vml_drawing.rb' + - 'lib/axlsx/util/accessors.rb' + - 'lib/axlsx/util/validators.rb' + - 'lib/axlsx/workbook/worksheet/dimension.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns. +# SupportedStyles: annotated, template, unannotated +Style/FormatStringToken: + EnforcedStyle: unannotated + +# Offense count: 267 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: always, always_true, never +Style/FrozenStringLiteralComment: + Enabled: false + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/GlobalStdStream: + Exclude: + - 'test/profile.rb' + +# Offense count: 11 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. +Style/GuardClause: + Exclude: + - 'lib/axlsx/drawing/num_val.rb' + - 'lib/axlsx/drawing/str_val.rb' + - 'lib/axlsx/stylesheet/styles.rb' + - 'lib/axlsx/util/zip_command.rb' + - 'lib/axlsx/workbook/worksheet/pane.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table.rb' + - 'lib/axlsx/workbook/worksheet/row.rb' + - 'lib/axlsx/workbook/worksheet/sheet_pr.rb' + - 'lib/axlsx/workbook/worksheet/table.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowSplatArgument. +Style/HashConversion: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/workbook/worksheet/cell_serializer.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + +# Offense count: 6 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowedReceivers. +# AllowedReceivers: Thread.current +Style/HashEachMethods: + Exclude: + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + - 'test/workbook/worksheet/tc_table_style_info.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 1230 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. +# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys +# SupportedShorthandSyntax: always, never, either, consistent +Style/HashSyntax: + Enabled: false + +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/HashTransformKeys: + Exclude: + - 'lib/axlsx/workbook/worksheet/cell_serializer.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowIfModifier. +Style/IfInsideElse: + Exclude: + - 'lib/axlsx/stylesheet/styles.rb' + +# Offense count: 37 +# This cop supports safe autocorrection (--autocorrect). +Style/IfUnlessModifier: + Enabled: false + +# Offense count: 9 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: line_count_dependent, lambda, literal +Style/Lambda: + Exclude: + - 'lib/axlsx/drawing/chart.rb' + - 'lib/axlsx/drawing/scaling.rb' + - 'lib/axlsx/stylesheet/gradient_fill.rb' + - 'lib/axlsx/stylesheet/gradient_stop.rb' + - 'lib/axlsx/stylesheet/styles.rb' + - 'lib/axlsx/util/validators.rb' + +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/LineEndConcatenation: + Exclude: + - 'lib/axlsx/package.rb' + +# Offense count: 6 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedMethods, AllowedPatterns. +Style/MethodCallWithoutArgsParentheses: + Exclude: + - 'lib/axlsx/package.rb' + - 'test/benchmark.rb' + - 'test/drawing/tc_vml_drawing.rb' + - 'test/drawing/tc_vml_shape.rb' + - 'test/workbook/worksheet/tc_comments.rb' + - 'test/workbook/worksheet/tc_rich_text.rb' + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline +Style/MethodDefParentheses: + Exclude: + - 'lib/axlsx/util/simple_typed_list.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + +# Offense count: 6 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowMethodComparison. +Style/MultipleComparison: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/stylesheet/font.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + - 'test/workbook/tc_workbook_view.rb' + +# Offense count: 17 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: literals, strict +Style/MutableConstant: + Exclude: + - 'lib/axlsx/content_type/default.rb' + - 'lib/axlsx/content_type/override.rb' + - 'lib/axlsx/drawing/cat_axis.rb' + - 'lib/axlsx/drawing/line_3D_chart.rb' + - 'lib/axlsx/drawing/pic.rb' + - 'lib/axlsx/drawing/view_3D.rb' + - 'lib/axlsx/stylesheet/dxf.rb' + - 'lib/axlsx/util/constants.rb' + - 'lib/axlsx/util/simple_typed_list.rb' + - 'lib/axlsx/util/storage.rb' + - 'lib/axlsx/version.rb' + - 'lib/axlsx/workbook/worksheet/auto_filter/filter_column.rb' + - 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb' + - 'lib/axlsx/workbook/worksheet/data_bar.rb' + - 'lib/axlsx/workbook/worksheet/sheet_view.rb' + +# Offense count: 12 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: both, prefix, postfix +Style/NegatedIf: + Exclude: + - 'lib/axlsx/drawing/num_val.rb' + - 'lib/axlsx/drawing/str_val.rb' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/stylesheet/styles.rb' + - 'lib/axlsx/util/zip_command.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/border_creator.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + +# Offense count: 9 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedMethods. +# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with +Style/NestedParenthesizedCalls: + Exclude: + - 'test/stylesheet/tc_styles.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, MinBodyLength. +# SupportedStyles: skip_modifier_ifs, always +Style/Next: + Exclude: + - 'lib/axlsx/stylesheet/styles.rb' + +# Offense count: 17 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: predicate, comparison +Style/NilComparison: + Exclude: + - 'lib/axlsx/drawing/axis.rb' + - 'lib/axlsx/drawing/chart.rb' + - 'lib/axlsx/drawing/view_3D.rb' + - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/drawing/tc_series_title.rb' + - 'test/drawing/tc_title.rb' + - 'test/workbook/worksheet/tc_page_setup.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 5 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: IncludeSemanticChanges. +Style/NonNilCheck: + Exclude: + - 'lib/axlsx/drawing/d_lbls.rb' + - 'lib/axlsx/util/serialized_attributes.rb' + - 'lib/axlsx/workbook/worksheet/col.rb' + - 'lib/axlsx/workbook/worksheet/page_setup.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedOctalStyle. +# SupportedOctalStyles: zero_with_o, zero_only +Style/NumericLiteralPrefix: + Exclude: + - 'test/doc_props/tc_core.rb' + +# Offense count: 46 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns. +Style/NumericLiterals: + MinDigits: 11 + +# Offense count: 32 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns. +# SupportedStyles: predicate, comparison +Style/NumericPredicate: + Exclude: + - 'spec/**/*' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/stylesheet/font.rb' + - 'lib/axlsx/util/simple_typed_list.rb' + - 'lib/axlsx/util/validators.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/sheet_pr.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/drawing/tc_marker.rb' + - 'test/drawing/tc_one_cell_anchor.rb' + - 'test/drawing/tc_two_cell_anchor.rb' + - 'test/rels/tc_relationships.rb' + - 'test/stylesheet/tc_styles.rb' + - 'test/tc_package.rb' + - 'test/util/tc_simple_typed_list.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/OperatorMethodCall: + Exclude: + - 'lib/axlsx/drawing/vml_shape.rb' + +# Offense count: 11 +# Configuration parameters: AllowedMethods. +# AllowedMethods: respond_to_missing? +Style/OptionalBooleanParameter: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/util/validators.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/col.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + +# Offense count: 12 +# This cop supports safe autocorrection (--autocorrect). +Style/ParallelAssignment: + Exclude: + - 'lib/axlsx/drawing/area_series.rb' + - 'lib/axlsx/drawing/bar_3D_chart.rb' + - 'lib/axlsx/drawing/bar_chart.rb' + - 'lib/axlsx/drawing/line_series.rb' + - 'lib/axlsx/drawing/marker.rb' + - 'lib/axlsx/drawing/scaling.rb' + - 'lib/axlsx/drawing/ser_axis.rb' + - 'lib/axlsx/drawing/two_cell_anchor.rb' + - 'lib/axlsx/drawing/view_3D.rb' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/workbook/worksheet/row.rb' + - 'test/rels/tc_relationships.rb' + +# Offense count: 8 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. +Style/ParenthesesAroundCondition: + Exclude: + - 'lib/axlsx/stylesheet/font.rb' + - 'lib/axlsx/util/validators.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/data_validation.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + +# Offense count: 17 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: PreferredDelimiters. +Style/PercentLiteralDelimiters: + Exclude: + - 'axlsx.gemspec' + - 'lib/axlsx/drawing/d_lbls.rb' + - 'lib/axlsx/drawing/pic.rb' + - 'lib/axlsx/drawing/view_3D.rb' + - 'lib/axlsx/workbook/worksheet/auto_filter/filters.rb' + - 'lib/axlsx/workbook/worksheet/table_style_info.rb' + - 'test/stylesheet/tc_styles.rb' + - 'test/tc_package.rb' + - 'test/workbook/tc_defined_name.rb' + - 'test/workbook/tc_workbook_view.rb' + - 'test/workbook/worksheet/tc_header_footer.rb' + - 'test/workbook/worksheet/tc_pivot_table.rb' + - 'test/workbook/worksheet/tc_table_style_info.rb' + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +Style/PerlBackrefs: + Exclude: + - 'lib/axlsx.rb' + - 'test/workbook/worksheet/tc_sheet_protection.rb' + +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: short, verbose +Style/PreferredHashMethods: + Exclude: + - 'lib/axlsx.rb' + - 'test/workbook/tc_shared_strings_table.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: same_as_string_literals, single_quotes, double_quotes +Style/QuotedSymbols: + Exclude: + - 'lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb' + +# Offense count: 5 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, AllowedCompactTypes. +# SupportedStyles: compact, exploded +Style/RaiseArgs: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/util/zip_command.rb' + - 'lib/axlsx/workbook/worksheet/border_creator.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/RandomWithOffset: + Exclude: + - 'lib/axlsx/drawing/vml_shape.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantCondition: + Exclude: + - 'lib/axlsx/drawing/area_series.rb' + - 'lib/axlsx/drawing/line_series.rb' + +# Offense count: 238 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantFileExtensionInRequire: + Enabled: false + +# Offense count: 14 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/RedundantInterpolation: + Exclude: + - 'lib/axlsx/drawing/chart.rb' + - 'lib/axlsx/drawing/drawing.rb' + - 'lib/axlsx/drawing/pic.rb' + - 'lib/axlsx/drawing/vml_drawing.rb' + - 'lib/axlsx/workbook/worksheet/comments.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb' + - 'lib/axlsx/workbook/worksheet/table.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/content_type/tc_content_type.rb' + +# Offense count: 13 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantParentheses: + Exclude: + - 'lib/axlsx/drawing/area_series.rb' + - 'lib/axlsx/drawing/bar_3D_chart.rb' + - 'lib/axlsx/drawing/bar_chart.rb' + - 'lib/axlsx/drawing/line_3D_chart.rb' + - 'lib/axlsx/drawing/line_series.rb' + - 'lib/axlsx/drawing/scatter_series.rb' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'test/stylesheet/tc_styles.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantRegexpEscape: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table.rb' + - 'lib/axlsx/workbook/worksheet/table.rb' + +# Offense count: 7 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowMultipleReturnValues. +Style/RedundantReturn: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/package.rb' + - 'lib/axlsx/stylesheet/styles.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + +# Offense count: 37 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantSelf: + Enabled: false + +# Offense count: 18 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, AllowInnerSlashes. +# SupportedStyles: slashes, percent_r, mixed +Style/RegexpLiteral: + Exclude: + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'test/tc_package.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: implicit, explicit +Style/RescueStandardError: + Exclude: + - 'lib/axlsx.rb' + - 'test/workbook/worksheet/tc_date_time_converter.rb' + +# Offense count: 28 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. +# AllowedMethods: present?, blank?, presence, try, try! +Style/SafeNavigation: + Enabled: false + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/SelfAssignment: + Exclude: + - 'lib/axlsx/stylesheet/color.rb' + +# Offense count: 367 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowAsExpressionSeparator. +Style/Semicolon: + Enabled: false + +# Offense count: 244 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowIfMethodIsEmpty. +Style/SingleLineMethods: + Enabled: false + +# Offense count: 6 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/SlicingWithRange: + Exclude: + - 'lib/axlsx.rb' + - 'lib/axlsx/drawing/area_chart.rb' + - 'lib/axlsx/drawing/line_chart.rb' + - 'lib/axlsx/util/simple_typed_list.rb' + - 'lib/axlsx/workbook/worksheet/pivot_table.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowModifier. +Style/SoleNestedConditional: + Exclude: + - 'lib/axlsx/util/validators.rb' + +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: RequireEnglish, EnforcedStyle. +# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names +Style/SpecialGlobalVars: + Exclude: + - 'test/benchmark.rb' + - 'test/profile.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/StringChars: + Exclude: + - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' + +# Offense count: 28 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: Mode. +Style/StringConcatenation: + Enabled: false + +# Offense count: 1571 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. +# SupportedStyles: single_quotes, double_quotes +Style/StringLiterals: + Enabled: false + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: single_quotes, double_quotes +Style/StringLiteralsInInterpolation: + Exclude: + - 'test/content_type/tc_content_type.rb' + +# Offense count: 97 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: MinSize. +# SupportedStyles: percent, brackets +Style/SymbolArray: + EnforcedStyle: brackets + +# Offense count: 23 +# This cop supports safe autocorrection (--autocorrect). +Style/SymbolLiteral: + Exclude: + - 'test/doc_props/tc_app.rb' + +# Offense count: 14 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments. +# AllowedMethods: define_method +Style/SymbolProc: + Exclude: + - 'lib/axlsx/drawing/drawing.rb' + - 'lib/axlsx/stylesheet/styles.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/cell.rb' + - 'lib/axlsx/workbook/worksheet/conditional_formatting.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' + - 'lib/axlsx/workbook/worksheet/worksheet_hyperlinks.rb' + - 'test/doc_props/tc_app.rb' + - 'test/doc_props/tc_core.rb' + - 'test/stylesheet/tc_styles.rb' + - 'test/workbook/tc_shared_strings_table.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, AllowSafeAssignment. +# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex +Style/TernaryParentheses: + Exclude: + - 'lib/axlsx/drawing/area_series.rb' + - 'lib/axlsx/drawing/line_series.rb' + - 'lib/axlsx/drawing/scatter_series.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleForMultiline. +# SupportedStylesForMultiline: comma, consistent_comma, no_comma +Style/TrailingCommaInArguments: + Exclude: + - 'lib/axlsx/stylesheet/styles.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleForMultiline. +# SupportedStylesForMultiline: comma, consistent_comma, no_comma +Style/TrailingCommaInArrayLiteral: + Exclude: + - 'test/stylesheet/tc_styles.rb' + - 'test/workbook/worksheet/tc_pivot_table.rb' + +# Offense count: 6 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleForMultiline. +# SupportedStylesForMultiline: comma, consistent_comma, no_comma +Style/TrailingCommaInHashLiteral: + Exclude: + - 'lib/axlsx/workbook/worksheet/border_creator.rb' + - 'test/workbook/worksheet/tc_date_time_converter.rb' + - 'test/workbook/worksheet/tc_worksheet.rb' + +# Offense count: 11 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods. +# AllowedMethods: 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/axlsx/drawing/area_series.rb' + - 'lib/axlsx/drawing/axis.rb' + - 'lib/axlsx/drawing/bar_series.rb' + - 'lib/axlsx/drawing/bubble_series.rb' + - 'lib/axlsx/drawing/line_series.rb' + - 'lib/axlsx/drawing/scatter_series.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/conditional_formatting.rb' + - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' + - 'lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Style/UnpackFirst: + Exclude: + - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/WhileUntilDo: + Exclude: + - 'lib/axlsx.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Style/WhileUntilModifier: + Exclude: + - 'lib/axlsx/workbook/worksheet/color_scale.rb' + +# Offense count: 41 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, MinSize, WordRegex. +# SupportedStyles: percent, brackets +Style/WordArray: + Enabled: false + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only +Style/YodaCondition: + Exclude: + - 'lib/axlsx/workbook/worksheet/col.rb' + +# Offense count: 12 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/ZeroLengthPredicate: + Exclude: + - 'lib/axlsx/package.rb' + - 'lib/axlsx/util/simple_typed_list.rb' + - 'lib/axlsx/workbook/workbook.rb' + - 'lib/axlsx/workbook/worksheet/sheet_pr.rb' + - 'test/rels/tc_relationships.rb' + - 'test/stylesheet/tc_styles.rb' + - 'test/tc_package.rb' + - 'test/util/tc_simple_typed_list.rb' + +# Offense count: 345 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. +# URISchemes: http, https +Layout/LineLength: + Max: 574 |
