backup/backup

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2017-04-16 15:04:32 +0200 using RuboCop version 0.48.1.
# 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: 8
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
  Exclude:
    - 'lib/backup/cloud_io/cloud_files.rb'
    - 'lib/backup/cloud_io/s3.rb'
    - 'lib/backup/config/helpers.rb'
    - 'lib/backup/encryptor/gpg.rb'
    - 'lib/backup/logger/logfile.rb'
    - 'lib/backup/storage/dropbox.rb'
    - 'lib/backup/syncer/cloud/local_file.rb'

# Offense count: 2
Lint/HandleExceptions:
  Exclude:
    - 'lib/backup/storage/ftp.rb'
    - 'lib/backup/storage/sftp.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: runtime_error, standard_error
Lint/InheritException:
  Exclude:
    - 'lib/backup/errors.rb'

# Offense count: 13
Lint/RescueException:
  Exclude:
    - 'lib/backup/cli.rb'
    - 'lib/backup/model.rb'
    - 'lib/backup/notifier/base.rb'
    - 'lib/backup/pipeline.rb'
    - 'lib/backup/utilities.rb'
    - 'spec/errors_spec.rb'

# Offense count: 1
Lint/ShadowedException:
  Exclude:
    - 'lib/backup/notifier/base.rb'

# Offense count: 1
Lint/UnderscorePrefixedVariableName:
  Exclude:
    - 'lib/backup/encryptor/gpg.rb'

# Offense count: 64
Metrics/AbcSize:
  Max: 57

# Offense count: 361
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
  Max: 796

# Offense count: 1
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
  Max: 4

# Offense count: 10
# Configuration parameters: CountComments.
Metrics/ClassLength:
  Max: 225

# Offense count: 11
Metrics/CyclomaticComplexity:
  Max: 15

# Offense count: 233
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
  Max: 134

# Offense count: 87
# Configuration parameters: CountComments.
Metrics/MethodLength:
  Max: 58

# Offense count: 38
# Configuration parameters: CountComments.
Metrics/ModuleLength:
  Max: 753

# Offense count: 7
Metrics/PerceivedComplexity:
  Max: 13

# Offense count: 2
# Cop supports --auto-correct.
Performance/Casecmp:
  Exclude:
    - 'lib/backup/storage/s3.rb'
    - 'lib/backup/syncer/cloud/s3.rb'

# Offense count: 2
Style/AccessorMethodName:
  Exclude:
    - 'lib/backup/binder.rb'
    - 'lib/backup/config.rb'

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
  Exclude:
    - 'lib/backup/encryptor/gpg.rb'
    - 'lib/backup/notifier/base.rb'
    - 'lib/backup/storage/base.rb'
    - 'lib/backup/storage/local.rb'

# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Exclude:
    - 'spec/model_spec.rb'

# Offense count: 6
Style/DoubleNegation:
  Exclude:
    - 'lib/backup/cloud_io/cloud_files.rb'
    - 'lib/backup/logger/logfile.rb'
    - 'lib/backup/logger/syslog.rb'
    - 'lib/backup/syncer/cloud/local_file.rb'
    - 'lib/backup/utilities.rb'

# Offense count: 13
# Configuration parameters: MinBodyLength.
Style/GuardClause:
  Exclude:
    - 'lib/backup/cleaner.rb'
    - 'lib/backup/database/mongodb.rb'
    - 'lib/backup/database/mysql.rb'
    - 'lib/backup/database/openldap.rb'
    - 'lib/backup/database/postgresql.rb'
    - 'lib/backup/database/redis.rb'
    - 'lib/backup/logger/logfile.rb'
    - 'lib/backup/model.rb'
    - 'lib/backup/storage/scp.rb'
    - 'lib/backup/utilities.rb'
    - 'spec/support/sandbox_file_utils.rb'

# Offense count: 1
Style/MethodMissing:
  Exclude:
    - 'lib/backup/config/helpers.rb'

# Offense count: 8
Style/MultilineTernaryOperator:
  Exclude:
    - 'lib/backup/cli.rb'
    - 'lib/backup/notifier/mail.rb'
    - 'lib/backup/storage/base.rb'
    - 'lib/backup/storage/dropbox.rb'
    - 'lib/backup/syncer/cloud/base.rb'
    - 'spec/support/shared_examples/config_defaults.rb'

# Offense count: 7
# Cop supports --auto-correct.
Style/MutableConstant:
  Exclude:
    - 'lib/backup/config.rb'
    - 'lib/backup/database/redis.rb'
    - 'lib/backup/encryptor/gpg.rb'
    - 'lib/backup/logger/console.rb'
    - 'lib/backup/version.rb'

# Offense count: 4
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName:
  Exclude:
    - 'spec/**/*'
    - 'lib/backup/cli.rb'
    - 'lib/backup/compressor/gzip.rb'
    - 'lib/backup/logger.rb'

# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
  Exclude:
    - 'lib/backup/config.rb'
    - 'lib/backup/storage/cloud_files.rb'
    - 'lib/backup/storage/dropbox.rb'
    - 'lib/backup/storage/ftp.rb'
    - 'lib/backup/storage/rsync.rb'
    - 'lib/backup/storage/s3.rb'
    - 'lib/backup/storage/scp.rb'
    - 'lib/backup/storage/sftp.rb'
    - 'lib/backup/syncer/cloud/base.rb'
    - 'lib/backup/syncer/rsync/pull.rb'
    - 'lib/backup/syncer/rsync/push.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/RescueModifier:
  Exclude:
    - 'lib/backup/config/helpers.rb'
    - 'lib/backup/syncer/cloud/base.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
  EnforcedStyle: use_perl_names

# Offense count: 3
Style/StructInheritance:
  Exclude:
    - 'lib/backup/logger.rb'

# Offense count: 48
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, MinSize, WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
  Enabled: false