From d400df5f7171461c0bb91063ee362edd6ae60b05 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Fri, 13 Sep 2024 10:40:51 +0200 Subject: [PATCH] Add RuboCop workflow --- .gitattributes | 1 + .github/workflows/rubocop.yml | 27 ++ .rubocop.yml | 15 + .rubocop_todo.yml | 624 ++++++++++++++++++++++++++++++++++ README.md | 1 + 5 files changed, 668 insertions(+) create mode 100644 .gitattributes create mode 100644 .github/workflows/rubocop.yml create mode 100644 .rubocop.yml create mode 100644 .rubocop_todo.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6fd6061 --- /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 0000000..c633886 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,27 @@ +name: RuboCop + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +permissions: + contents: read + +jobs: + test: + name: RuboCop + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.6.10' + bundler-cache: false + - name: RuboCop + run: | + gem install rubocop + rubocop diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..edd9eb5 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,15 @@ +inherit_from: .rubocop_todo.yml + +AllCops: + NewCops: enable + TargetRubyVersion: 2.6 + Exclude: + - .git/**/* + - .github/**/* + - gemfiles/**/* + - node_modules/**/* + - tmp/**/* + - vendor/**/* + +Layout/LineLength: + Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 0000000..1a40561 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,624 @@ +# This configuration was generated by +# `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp` +# using RuboCop version 1.50.2. +# 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. + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: with_first_argument, with_fixed_indentation +Layout/ArgumentAlignment: + Exclude: + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: with_first_element, with_fixed_indentation +Layout/ArrayAlignment: + Exclude: + - 'lib/heathen/processor_methods/convert_image.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: special_inside_parentheses, consistent, align_braces +Layout/FirstHashElementIndentation: + Exclude: + - 'lib/app.rb' + - 'lib/autoheathen/email_processor.rb' + - 'lib/sidekiq_workers.rb' + - 'spec/lib/app_spec.rb' + - 'spec/lib/autoheathen/config_spec.rb' + - 'spec/lib/autoheathen/email_processor_spec.rb' + - 'spec/lib/utils_spec.rb' + +# 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/autoheathen/email_processor.rb' + - 'lib/sidekiq_workers.rb' + - 'spec/lib/utils_spec.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: symmetrical, new_line, same_line +Layout/MultilineMethodCallBraceLayout: + Exclude: + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +Lint/AmbiguousOperator: + Exclude: + - 'lib/doc_key.rb' + - 'lib/heathen/processor.rb' + +# This cop supports safe autocorrection (--autocorrect). +Lint/AmbiguousOperatorPrecedence: + Exclude: + - 'bin/autoheathen' + - 'bin/cvheathen' + - 'bin/docpath' + - 'config.ru' + - 'lib/sidekiq_app.rb' + - 'spec/spec_helper.rb' + +# This cop supports safe autocorrection (--autocorrect). +Lint/DeprecatedClassMethods: + Exclude: + - 'spec/lib/document_spec.rb' + +# Configuration parameters: AllowComments, AllowEmptyLambdas. +Lint/EmptyBlock: + Exclude: + - 'lib/heathen/processor.rb' + - 'spec/lib/sidekiq_workers_spec.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +Lint/NonAtomicFileOperation: + Exclude: + - 'lib/document.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +Lint/NonDeterministicRequireOrder: + Exclude: + - 'lib/heathen.rb' + - 'spec/spec_helper.rb' + +# This cop supports safe autocorrection (--autocorrect). +Lint/ParenthesesAsGroupedExpression: + Exclude: + - 'lib/autoheathen/email_processor.rb' + +# This cop supports safe autocorrection (--autocorrect). +Lint/RedundantRequireStatement: + Exclude: + - 'spec/integration/callback.rb' + +# This cop supports safe autocorrection (--autocorrect). +Lint/RedundantStringCoercion: + Exclude: + - 'lib/heathen/errors.rb' + - 'lib/heathen/processor_methods/convert_image.rb' + +# Configuration parameters: IgnoreImplicitReferences. +Lint/ShadowedArgument: + Exclude: + - 'lib/heathen/errors.rb' + +Lint/ShadowingOuterLocalVariable: + Exclude: + - 'lib/app.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. +Lint/UnusedBlockArgument: + Exclude: + - 'lib/app.rb' + - 'lib/heathen/task.rb' + - 'spec/heathen/convert_spec.rb' + - 'spec/lib/document_spec.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. +Lint/UnusedMethodArgument: + Exclude: + - 'lib/document.rb' + +Lint/UriEscapeUnescape: + Exclude: + - 'spec/lib/app_spec.rb' + +Lint/UselessAssignment: + Exclude: + - 'bin/cvheathen' + - 'lib/app.rb' + - 'lib/converter.rb' + - 'lib/document.rb' + - 'lib/heathen/processor_methods/convert_image.rb' + - 'spec/lib/app_spec.rb' + +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. +Metrics/AbcSize: + Max: 52 + +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. +# AllowedMethods: refine +Metrics/BlockLength: + Max: 333 + +# Configuration parameters: CountComments, CountAsOne. +Metrics/ClassLength: + Max: 194 + +# Configuration parameters: AllowedMethods, AllowedPatterns. +Metrics/CyclomaticComplexity: + Max: 10 + +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. +Metrics/MethodLength: + Max: 58 + +# Configuration parameters: CountKeywordArgs, MaxOptionalParameters. +Metrics/ParameterLists: + Max: 7 + +# Configuration parameters: AllowedMethods, AllowedPatterns. +Metrics/PerceivedComplexity: + Max: 11 + +Naming/AccessorMethodName: + Exclude: + - 'lib/document.rb' + +# Configuration parameters: AllowedNames. +# AllowedNames: module_parent +Naming/ClassAndModuleCamelCase: + Exclude: + - 'lib/config.rb' + +# 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/document.rb' + +# 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: + - 'spec/heathen/convert_spec.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +Security/YAMLLoad: + Exclude: + - 'lib/config.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: separated, grouped +Style/AccessorGrouping: + Exclude: + - 'lib/doc_key.rb' + - 'lib/document.rb' + - 'lib/heathen/processor.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: always, conditionals +Style/AndOr: + Exclude: + - 'lib/app.rb' + +# 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: + - 'lib/autoheathen/config.rb' + - 'spec/heathen/convert_spec.rb' + - 'spec/lib/autoheathen/email_processor_spec.rb' + - 'spec/lib/config_spec.rb' + - 'spec/lib/document_spec.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: nested, compact +Style/ClassAndModuleChildren: + Exclude: + - 'spec/heathen/convert_spec.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedMethods, AllowedPatterns. +# AllowedMethods: ==, equal?, eql? +Style/ClassEqualityComparison: + Exclude: + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/ColonMethodCall: + Exclude: + - 'lib/autoheathen/config.rb' + - 'spec/spec_helper.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Keywords, RequireColon. +# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE +Style/CommentAnnotation: + Exclude: + - 'lib/converter.rb' + - 'lib/heathen/filename.rb' + +# Configuration parameters: AllowedConstants. +Style/Documentation: + Exclude: + - 'spec/**/*' + - 'test/**/*' + - 'lib/autoheathen/config.rb' + - 'lib/autoheathen/email_processor.rb' + - 'lib/errors.rb' + - 'lib/heathen/filename.rb' + - 'lib/heathen/processor_methods/convert_image.rb' + - 'lib/heathen/processor_methods/htmltotext.rb' + - 'lib/heathen/processor_methods/libreoffice.rb' + - 'lib/heathen/processor_methods/pdftotext.rb' + - 'lib/heathen/processor_methods/tesseract.rb' + - 'lib/heathen/processor_methods/wkhtmltopdf.rb' + - 'lib/utils.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/EachWithObject: + Exclude: + - 'lib/autoheathen/config.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedVars. +Style/FetchEnvVar: + Exclude: + - 'lib/heathen/processor_methods/libreoffice.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/FileWrite: + Exclude: + - 'bin/cvheathen' + - 'lib/document.rb' + - 'lib/legacy_converter.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: format, sprintf, percent +Style/FormatString: + Exclude: + - 'lib/document.rb' + - 'lib/heathen/executioner.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: always, always_true, never +Style/FrozenStringLiteralComment: + Enabled: false + +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/GlobalStdStream: + Exclude: + - 'bin/autoheathen' + - 'bin/cvheathen' + - 'lib/app.rb' + - 'lib/converter.rb' + - 'lib/heathen/processor.rb' + - 'lib/sidekiq_workers.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. +Style/GuardClause: + Exclude: + - 'spec/lib/app_spec.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowedReceivers. +# AllowedReceivers: Thread.current +Style/HashEachMethods: + Exclude: + - 'lib/heathen/task.rb' + +# 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: + Exclude: + - 'lib/heathen/executioner.rb' + - 'unicorn.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/IfUnlessModifier: + Exclude: + - 'lib/app.rb' + - 'lib/autoheathen/config.rb' + - 'lib/autoheathen/email_processor.rb' + - 'lib/heathen/executioner.rb' + - 'lib/heathen/processor_methods/libreoffice.rb' + - 'lib/heathen/task.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/IfUnlessModifierOfIfUnless: + Exclude: + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedMethods, AllowedPatterns. +Style/MethodCallWithoutArgsParentheses: + Exclude: + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline +Style/MethodDefParentheses: + Enabled: false + +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/MinMaxComparison: + Exclude: + - 'lib/heathen/executioner.rb' + +Style/MissingRespondToMissing: + Exclude: + - 'lib/config.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/MultilineIfModifier: + Exclude: + - 'lib/app.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: literals, strict +Style/MutableConstant: + Exclude: + - 'lib/autoheathen/email_processor.rb' + - 'lib/document.rb' + - 'lib/heathen/processor_methods/libreoffice.rb' + - 'lib/legacy_converter.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/NestedModifier: + Exclude: + - 'lib/heathen/executioner.rb' + +# 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: + - 'lib/autoheathen/config.rb' + - 'spec/heathen/filename_spec.rb' + - 'spec/lib/app_spec.rb' + - 'spec/lib/autoheathen/email_processor_spec.rb' + - 'spec/lib/converter_spec.rb' + - 'spec/lib/document_spec.rb' + - 'spec/lib/legacy_converter_spec.rb' + - 'spec/lib/utils_spec.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns. +Style/NumericLiterals: + MinDigits: 8 + +# Configuration parameters: AllowedMethods. +# AllowedMethods: respond_to_missing? +Style/OptionalBooleanParameter: + Exclude: + - 'lib/autoheathen/email_processor.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: PreferredDelimiters. +Style/PercentLiteralDelimiters: + Exclude: + - 'lib/heathen/processor.rb' + - 'lib/heathen/task.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedCompactTypes. +# SupportedStyles: compact, exploded +Style/RaiseArgs: + EnforcedStyle: compact + +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantBegin: + Exclude: + - 'lib/app.rb' + - 'lib/autoheathen/email_processor.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantCondition: + Exclude: + - 'lib/heathen/processor_methods/tesseract.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantFileExtensionInRequire: + Exclude: + - 'lib/sidekiq_app.rb' + - 'lib/sidekiq_workers.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantRegexpCharacterClass: + Exclude: + - 'lib/heathen/errors.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowMultipleReturnValues. +Style/RedundantReturn: + Exclude: + - 'lib/app.rb' + - 'lib/autoheathen/config.rb' + - 'lib/converter.rb' + - 'lib/document.rb' + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantSelf: + Exclude: + - 'lib/doc_key.rb' + - 'lib/document.rb' + - 'lib/heathen/filename.rb' + - 'lib/heathen/processor.rb' + - 'lib/sidekiq_workers.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, AllowInnerSlashes. +# SupportedStyles: slashes, percent_r, mixed +Style/RegexpLiteral: + Exclude: + - 'lib/heathen/processor.rb' + - 'lib/heathen/task.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/RescueModifier: + Exclude: + - 'lib/document.rb' + - 'lib/heathen/filename.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. +# AllowedMethods: present?, blank?, presence, try, try! +Style/SafeNavigation: + Exclude: + - 'lib/heathen/job.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowAsExpressionSeparator. +Style/Semicolon: + Exclude: + - 'bin/autoheathen' + - 'bin/cvheathen' + - 'bin/docpath' + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowIfMethodIsEmpty. +Style/SingleLineMethods: + Exclude: + - 'lib/errors.rb' + - 'spec/spec_helper.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/SlicingWithRange: + Exclude: + - 'lib/heathen/filename.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowModifier. +Style/SoleNestedConditional: + Exclude: + - 'lib/heathen/executioner.rb' + - 'lib/heathen/processor_methods/wkhtmltopdf.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: RequireEnglish. +# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names +Style/SpecialGlobalVars: + EnforcedStyle: use_perl_names + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: Mode. +Style/StringConcatenation: + Exclude: + - 'bin/autoheathen' + - 'bin/cvheathen' + - 'bin/docpath' + - 'config.ru' + - 'lib/config.rb' + - 'lib/document.rb' + - 'lib/heathen.rb' + - 'lib/heathen/processor.rb' + - 'lib/sidekiq_app.rb' + - 'spec/lib/document_spec.rb' + - 'spec/lib/sidekiq_workers_spec.rb' + - 'spec/spec_helper.rb' + - 'unicorn.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. +# SupportedStyles: single_quotes, double_quotes +Style/StringLiterals: + Enabled: false + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: MinSize. +# SupportedStyles: percent, brackets +Style/SymbolArray: + EnforcedStyle: brackets + +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments. +# AllowedMethods: define_method +Style/SymbolProc: + Exclude: + - 'lib/autoheathen/email_processor.rb' + - 'lib/heathen/processor_methods/htmltotext.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleForMultiline. +# SupportedStylesForMultiline: comma, consistent_comma, no_comma +Style/TrailingCommaInArguments: + Exclude: + - 'lib/heathen/processor_methods/libreoffice.rb' + - 'lib/heathen/processor_methods/tesseract.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleForMultiline. +# SupportedStylesForMultiline: comma, consistent_comma, no_comma +Style/TrailingCommaInArrayLiteral: + Exclude: + - 'lib/heathen/processor_methods/wkhtmltopdf.rb' + - 'spec/lib/utils_spec.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleForMultiline. +# SupportedStylesForMultiline: comma, consistent_comma, no_comma +Style/TrailingCommaInHashLiteral: + Exclude: + - 'lib/app.rb' + - 'lib/autoheathen/email_processor.rb' + - 'lib/document.rb' + - 'lib/heathen/processor_methods/libreoffice.rb' + - 'lib/sidekiq_workers.rb' + - 'spec/lib/app_spec.rb' + - 'spec/lib/autoheathen/config_spec.rb' + - 'spec/lib/autoheathen/email_processor_spec.rb' + - 'spec/lib/utils_spec.rb' + +# This cop supports safe autocorrection (--autocorrect). +Style/VariableInterpolation: + Exclude: + - 'lib/heathen/executioner.rb' + +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, MinSize, WordRegex. +# SupportedStyles: percent, brackets +Style/WordArray: + Exclude: + - 'lib/autoheathen/email_processor.rb' + - 'spec/lib/app_spec.rb' + - 'spec/lib/autoheathen/config_spec.rb' + - 'spec/lib/autoheathen/email_processor_spec.rb' + - 'spec/lib/document_spec.rb' + +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/ZeroLengthPredicate: + Exclude: + - 'lib/heathen/executioner.rb' + - 'lib/heathen/processor_methods/wkhtmltopdf.rb' diff --git a/README.md b/README.md index c202332..1f19fc4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Colore ====== [![Build Status](https://github.com/ifad/colore/actions/workflows/ci.yml/badge.svg)](https://github.com/ifad/colore/actions) +[![RuboCop](https://github.com/ifad/colore/actions/workflows/rubocop.yml/badge.svg)](https://github.com/ifad/colore/actions) [![Inline docs](https://inch-ci.org/github/ifad/colore.svg?branch=master)](https://inch-ci.org/github/ifad/colore) [![Code Climate](https://codeclimate.com/github/ifad/colore/badges/gpa.svg)](https://codeclimate.com/github/ifad/colore)