Current File : //opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/net-ssh-6.1.0/.rubocop_todo.yml |
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-09-10 17:13:26 +0200 using RuboCop version 0.74.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: 76
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/AlignArguments:
Enabled: false
# Offense count: 57
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/AlignHash:
Exclude:
- 'lib/net/ssh/key_factory.rb'
- 'lib/net/ssh/transport/cipher_factory.rb'
- 'lib/net/ssh/transport/hmac.rb'
- 'lib/net/ssh/transport/kex.rb'
- 'test/test_config.rb'
# Offense count: 70
# Cop supports --auto-correct.
Layout/EmptyLineAfterGuardClause:
Enabled: false
# Offense count: 170
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Layout/EmptyLinesAroundModuleBody:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/IndentFirstArrayElement:
Exclude:
- 'lib/net/ssh/transport/openssl.rb'
# Offense count: 3
# Cop supports --auto-correct.
Layout/LeadingBlankLines:
Exclude:
- 'Rakefile'
- 'lib/net/ssh/authentication/pub_key_fingerprint.rb'
- 'support/arcfour_check.rb'
# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: AllowDoxygenCommentStyle.
Layout/LeadingCommentSpace:
Exclude:
- 'test/integration/test_ed25519_pkeys.rb'
- 'test/integration/test_forward.rb'
- 'test/integration/test_id_rsa_keys.rb'
- 'test/integration/test_proxy.rb'
# Offense count: 23
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
Exclude:
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/proxy/https.rb'
- 'lib/net/ssh/transport/algorithms.rb'
- 'lib/net/ssh/transport/state.rb'
- 'lib/net/ssh/verifiers/always.rb'
- 'test/authentication/methods/test_hostbased.rb'
- 'test/authentication/methods/test_publickey.rb'
# Offense count: 16
# Cop supports --auto-correct.
Layout/SpaceAfterColon:
Exclude:
- 'lib/net/ssh/authentication/ed25519.rb'
- 'test/integration/test_ed25519_pkeys.rb'
- 'test/verifiers/test_always.rb'
# Offense count: 281
# Cop supports --auto-correct.
Layout/SpaceAfterComma:
Enabled: false
# Offense count: 136
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: false
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideBlockBraces:
Exclude:
- 'lib/net/ssh/authentication/session.rb'
- 'lib/net/ssh/transport/ctr.rb'
- 'support/ssh_tunnel_bug.rb'
- 'test/authentication/test_agent.rb'
- 'test/authentication/test_key_manager.rb'
- 'test/start/test_user_nil.rb'
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideReferenceBrackets:
Exclude:
- 'lib/net/ssh/transport/algorithms.rb'
# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingBlankLines:
Enabled: false
# Offense count: 739
# Cop supports --auto-correct.
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
Enabled: false
# Offense count: 4
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'lib/net/ssh/connection/channel.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/proxy/command.rb'
# Offense count: 1
Lint/EmptyWhen:
Exclude:
- 'lib/net/ssh/config.rb'
# Offense count: 9
# Configuration parameters: AllowComments.
Lint/HandleExceptions:
Exclude:
- 'lib/net/ssh/authentication/session.rb'
- 'lib/net/ssh/known_hosts.rb'
- 'lib/net/ssh/transport/openssl.rb'
- 'test/integration/common.rb'
- 'test/integration/test_forward.rb'
- 'test/start/test_connection.rb'
- 'test/start/test_transport.rb'
# Offense count: 72
Lint/ImplicitStringConcatenation:
Exclude:
- 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
# Offense count: 1
Lint/LiteralAsCondition:
Exclude:
- 'lib/net/ssh/authentication/pageant.rb'
# Offense count: 2
Lint/Loop:
Exclude:
- 'lib/net/ssh/authentication/methods/password.rb'
- 'lib/net/ssh/key_factory.rb'
# Offense count: 3
# Configuration parameters: MaximumRangeSize.
Lint/MissingCopEnableDirective:
Exclude:
- 'test/authentication/test_agent.rb'
- 'test/authentication/test_certificate.rb'
- 'test/integration/test_agent.rb'
# Offense count: 1
Lint/NonLocalExitFromIterator:
Exclude:
- 'lib/net/ssh/known_hosts.rb'
# Offense count: 3
Lint/RescueException:
Exclude:
- 'lib/net/ssh/authentication/key_manager.rb'
- 'lib/net/ssh/service/forward.rb'
# Offense count: 2
Lint/ShadowedException:
Exclude:
- 'lib/net/ssh/authentication/key_manager.rb'
# Offense count: 1
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
Exclude:
- 'lib/net/ssh/test/local_packet.rb'
# Offense count: 1
# Cop supports --auto-correct.
Lint/UnneededRequireStatement:
Exclude:
- 'lib/net/ssh/ruby_compat.rb'
# Offense count: 60
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'lib/net/ssh/connection/keepalive.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/service/forward.rb'
- 'test/authentication/methods/test_password.rb'
- 'test/authentication/test_agent.rb'
- 'test/common.rb'
- 'test/connection/test_channel.rb'
- 'test/connection/test_session.rb'
- 'test/transport/test_algorithms.rb'
- 'test/transport/test_hmac.rb'
# Offense count: 62
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument:
Enabled: false
# Offense count: 3
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
Lint/UselessAccessModifier:
Exclude:
- 'lib/net/ssh/buffered_io.rb'
- 'lib/net/ssh/connection/channel.rb'
- 'lib/net/ssh/transport/session.rb'
# Offense count: 10
Lint/UselessAssignment:
Exclude:
- 'lib/net/ssh/proxy/socks4.rb'
- 'lib/net/ssh/proxy/socks5.rb'
- 'test/integration/common.rb'
- 'test/integration/test_forward.rb'
# Offense count: 229
Metrics/AbcSize:
Max: 89
# Offense count: 15
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 59
# Offense count: 1
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 4
# Offense count: 31
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 488
# Offense count: 38
Metrics/CyclomaticComplexity:
Max: 27
Exclude:
- 'lib/net/ssh/config.rb'
# Offense count: 211
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 82
# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 160
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 30
Metrics/PerceivedComplexity:
Max: 20
# Offense count: 9
Naming/AccessorMethodName:
Exclude:
- 'lib/net/ssh/authentication/methods/password.rb'
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/connection/channel.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/transport/kex/abstract5656.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb'
# Offense count: 2
Naming/BinaryOperatorParameterName:
Exclude:
- 'lib/net/ssh/buffer.rb'
- 'lib/net/ssh/version.rb'
# Offense count: 12
Naming/ClassAndModuleCamelCase:
Exclude:
- 'lib/net/ssh/transport/hmac/md5_96.rb'
- 'lib/net/ssh/transport/hmac/sha1_96.rb'
- 'lib/net/ssh/transport/hmac/sha2_256.rb'
- 'lib/net/ssh/transport/hmac/sha2_256_96.rb'
- 'lib/net/ssh/transport/hmac/sha2_256_etm.rb'
- 'lib/net/ssh/transport/hmac/sha2_512.rb'
- 'lib/net/ssh/transport/hmac/sha2_512_96.rb'
- 'lib/net/ssh/transport/hmac/sha2_512_etm.rb'
- 'test/transport/hmac/test_md5_96.rb'
- 'test/transport/hmac/test_sha1_96.rb'
- 'test/transport/hmac/test_sha2_256.rb'
- 'test/transport/hmac/test_sha2_256_96.rb'
- 'test/transport/hmac/test_sha2_256_etm.rb'
- 'test/transport/hmac/test_sha2_512.rb'
- 'test/transport/hmac/test_sha2_512_96.rb'
- 'test/transport/hmac/test_sha2_512_etm.rb'
# Offense count: 4
Naming/ConstantName:
Exclude:
- 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
- 'lib/net/ssh/transport/openssl.rb'
# Offense count: 11
# Configuration parameters: Blacklist.
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'test/authentication/test_agent.rb'
- 'test/authentication/test_certificate.rb'
- 'test/authentication/test_ed25519.rb'
- 'test/authentication/test_session.rb'
- 'test/integration/test_agent.rb'
- 'test/test_key_factory.rb'
# Offense count: 4
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/net/ssh/transport/openssl.rb'
- 'test/authentication/test_key_manager.rb'
# Offense count: 32
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Exclude:
- 'lib/net/ssh/authentication/ed25519_loader.rb'
- 'lib/net/ssh/transport/kex/curve25519_sha256_loader.rb'
- 'test/authentication/test_agent.rb'
- 'test/authentication/test_session.rb'
- 'test/common.rb'
- 'test/connection/test_channel.rb'
- 'test/test_config.rb'
- 'test/test_key_factory.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
Exclude:
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/service/forward.rb'
- 'lib/net/ssh/verifiers/accept_new.rb'
# Offense count: 23
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/UncommunicativeMethodParamName:
Exclude:
- 'lib/net/ssh/authentication/certificate.rb'
- 'lib/net/ssh/authentication/ed25519.rb'
- 'lib/net/ssh/authentication/key_manager.rb'
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/buffer.rb'
- 'lib/net/ssh/buffered_io.rb'
- 'lib/net/ssh/ruby_compat.rb'
- 'lib/net/ssh/test/socket.rb'
- 'lib/net/ssh/transport/ctr.rb'
- 'lib/net/ssh/transport/hmac/abstract.rb'
- 'lib/net/ssh/transport/identity_cipher.rb'
- 'test/connection/test_session.rb'
# Offense count: 8
# Configuration parameters: EnforcedStyle.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
Exclude:
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/transport/openssl.rb'
- 'test/test_key_factory.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
Exclude:
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/service/forward.rb'
# Offense count: 31
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
Exclude:
- 'lib/net/ssh/authentication/key_manager.rb'
- 'lib/net/ssh/buffer.rb'
- 'lib/net/ssh/buffered_io.rb'
- 'lib/net/ssh/connection/channel.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/key_factory.rb'
- 'lib/net/ssh/service/forward.rb'
- 'lib/net/ssh/test/channel.rb'
- 'lib/net/ssh/test/script.rb'
- 'lib/net/ssh/transport/cipher_factory.rb'
- 'lib/net/ssh/transport/hmac.rb'
- 'lib/net/ssh/transport/key_expander.rb'
- 'test/common.rb'
# Offense count: 2
# Configuration parameters: AllowedChars.
Style/AsciiComments:
Exclude:
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/buffered_io.rb'
# Offense count: 8
# 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:
- 'Rakefile'
- 'lib/net/ssh/authentication/key_manager.rb'
- 'lib/net/ssh/config.rb'
- 'lib/net/ssh/connection/keepalive.rb'
- 'lib/net/ssh/proxy/command.rb'
- 'lib/net/ssh/transport/ctr.rb'
- 'test/verifiers/test_always.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: braces, no_braces, context_dependent
Style/BracesAroundHashParameters:
Exclude:
- 'lib/net/ssh/config.rb'
- 'test/integration/test_ed25519_pkeys.rb'
- 'test/integration/test_id_rsa_keys.rb'
- 'test/transport/test_hmac.rb'
- 'test/transport/test_session.rb'
# Offense count: 2
Style/CaseEquality:
Exclude:
- 'lib/net/ssh/buffer.rb'
- 'lib/net/ssh/connection/session.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/CharacterLiteral:
Exclude:
- 'test/test_buffer.rb'
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/net/ssh/transport/ctr.rb'
- 'lib/net/ssh/transport/hmac.rb'
- 'lib/net/ssh/transport/hmac/md5.rb'
- 'lib/net/ssh/transport/hmac/md5_96.rb'
- 'lib/net/ssh/transport/hmac/none.rb'
- 'lib/net/ssh/transport/hmac/ripemd160.rb'
- 'lib/net/ssh/transport/hmac/sha1.rb'
- 'lib/net/ssh/transport/hmac/sha1_96.rb'
- 'lib/net/ssh/transport/hmac/sha2_256.rb'
- 'lib/net/ssh/transport/hmac/sha2_256_96.rb'
- 'lib/net/ssh/transport/hmac/sha2_256_etm.rb'
- 'lib/net/ssh/transport/hmac/sha2_512.rb'
- 'lib/net/ssh/transport/hmac/sha2_512_96.rb'
- 'lib/net/ssh/transport/hmac/sha2_512_etm.rb'
- 'lib/net/ssh/transport/kex.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha256.rb'
# Offense count: 7
Style/ClassVars:
Exclude:
- 'lib/net/ssh/config.rb'
- 'lib/net/ssh/packet.rb'
- 'test/authentication/methods/test_hostbased.rb'
- 'test/authentication/methods/test_publickey.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/ColonMethodCall:
Exclude:
- 'lib/net/ssh/authentication/ed25519.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation:
Exclude:
- 'lib/net/ssh/authentication/ed25519.rb'
- 'lib/net/ssh/authentication/session.rb'
- 'lib/net/ssh/buffer.rb'
- 'lib/net/ssh/config.rb'
# Offense count: 3
Style/CommentedKeyword:
Exclude:
- 'test/connection/test_session.rb'
- 'test/integration/test_forward.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'lib/net/ssh/config.rb'
- 'lib/net/ssh/proxy/socks5.rb'
- 'lib/net/ssh/test/script.rb'
- 'lib/net/ssh/transport/state.rb'
- 'test/test_key_factory.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/DefWithParentheses:
Exclude:
- 'test/integration/test_forward.rb'
# Offense count: 14
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'lib/net/ssh/authentication/ed25519.rb'
- 'lib/net/ssh/connection/keepalive.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/ruby_compat.rb'
- 'lib/net/ssh/test/extensions.rb'
- 'lib/net/ssh/transport/kex.rb'
- 'lib/net/ssh/transport/key_expander.rb'
- 'lib/net/ssh/transport/openssl.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyLiteral:
Exclude:
- 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/EvenOdd:
Exclude:
- 'lib/net/ssh/buffer.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Exclude:
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/loggable.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
Exclude:
- 'lib/net/ssh/loggable.rb'
# Offense count: 166
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 34
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 1
# Configuration parameters: AllowIfModifier.
Style/IfInsideElse:
Exclude:
- 'lib/net/ssh/connection/session.rb'
# Offense count: 16
# Cop supports --auto-correct.
Style/IfUnlessModifier:
Exclude:
- 'lib/net/ssh.rb'
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/proxy/command.rb'
- 'lib/net/ssh/service/forward.rb'
- 'lib/net/ssh/transport/ctr.rb'
- 'lib/net/ssh/transport/kex.rb'
- 'lib/net/ssh/transport/kex/abstract5656.rb'
- 'lib/net/ssh/transport/key_expander.rb'
- 'test/integration/test_proxy.rb'
- 'test/test_key_factory.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/InfiniteLoop:
Exclude:
- 'lib/net/ssh/authentication/pageant.rb'
# Offense count: 27
# Cop supports --auto-correct.
Style/LineEndConcatenation:
Exclude:
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb'
- 'lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb'
- 'lib/net/ssh/verifiers/always.rb'
# Offense count: 1
Style/MethodMissingSuper:
Exclude:
- 'lib/net/ssh/connection/session.rb'
# Offense count: 1
Style/MissingRespondToMissing:
Exclude:
- 'lib/net/ssh/connection/session.rb'
# Offense count: 3
# Cop supports --auto-correct.
Style/MultilineIfThen:
Exclude:
- 'lib/net/ssh/buffered_io.rb'
- 'lib/net/ssh/service/forward.rb'
# Offense count: 6
# Cop supports --auto-correct.
Style/MultilineWhenThen:
Exclude:
- 'lib/net/ssh/test/packet.rb'
- 'lib/net/ssh/transport/packet_stream.rb'
- 'lib/net/ssh/transport/session.rb'
# Offense count: 5
Style/MultipleComparison:
Exclude:
- 'lib/net/ssh/authentication/agent.rb'
- 'lib/net/ssh/authentication/pageant.rb'
- 'lib/net/ssh/known_hosts.rb'
- 'lib/net/ssh/verifiers/accept_new_or_local_tunnel.rb'
# Offense count: 41
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
Enabled: false
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: both, prefix, postfix
Style/NegatedIf:
Exclude:
- 'lib/net/ssh.rb'
- 'lib/net/ssh/authentication/key_manager.rb'
- 'lib/net/ssh/service/forward.rb'
- 'lib/net/ssh/transport/algorithms.rb'
- 'lib/net/ssh/transport/hmac/abstract.rb'
- 'lib/net/ssh/transport/session.rb'
- 'lib/net/ssh/transport/state.rb'
- 'test/test_key_factory.rb'
- 'test/transport/test_state.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/NegatedWhile:
Exclude:
- 'lib/net/ssh/config.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength.
# SupportedStyles: skip_modifier_ifs, always
Style/Next:
Exclude:
- 'lib/net/ssh/authentication/key_manager.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: predicate, comparison
Style/NilComparison:
Exclude:
- 'lib/net/ssh/proxy/command.rb'
# Offense count: 3
# Cop supports --auto-correct.
Style/Not:
Exclude:
- 'lib/net/ssh/connection/channel.rb'
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: Strict.
Style/NumericLiterals:
MinDigits: 310
# Offense count: 29
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Enabled: false
# Offense count: 15
# Cop supports --auto-correct.
Style/ParallelAssignment:
Exclude:
- 'lib/net/ssh/config.rb'
- 'lib/net/ssh/connection/channel.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/errors.rb'
- 'lib/net/ssh/test/socket.rb'
- 'lib/net/ssh/version.rb'
- 'test/authentication/test_agent.rb'
- 'test/common.rb'
- 'test/connection/test_channel.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
Style/ParenthesesAroundCondition:
Exclude:
- 'lib/net/ssh/authentication/ed25519.rb'
- 'lib/net/ssh/service/forward.rb'
- 'lib/net/ssh/transport/ctr.rb'
- 'test/integration/test_proxy.rb'
# Offense count: 33
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'net-ssh.gemspec'
- 'test/test_config.rb'
# Offense count: 15
# Cop supports --auto-correct.
Style/PerlBackrefs:
Exclude:
- 'lib/net/ssh/buffer.rb'
- 'lib/net/ssh/config.rb'
- 'lib/net/ssh/key_factory.rb'
- 'lib/net/ssh/proxy/command.rb'
- 'lib/net/ssh/proxy/socks5.rb'
- 'test/integration/common.rb'
# Offense count: 14
# Cop supports --auto-correct.
Style/Proc:
Exclude:
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/test/channel.rb'
- 'lib/net/ssh/transport/algorithms.rb'
- 'lib/net/ssh/verifiers/always.rb'
- 'test/authentication/methods/test_hostbased.rb'
- 'test/authentication/methods/test_publickey.rb'
- 'test/connection/test_channel.rb'
- 'test/connection/test_session.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Exclude:
- 'lib/net/ssh/authentication/ed25519.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/RedundantBegin:
Exclude:
- 'lib/net/ssh/buffered_io.rb'
- 'lib/net/ssh/verifiers/accept_new.rb'
- 'test/manual/test_pageant.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantParentheses:
Exclude:
- 'support/arcfour_check.rb'
# Offense count: 59
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Enabled: false
# Offense count: 14
# Cop supports --auto-correct.
Style/RedundantSelf:
Exclude:
- 'lib/net/ssh/connection/channel.rb'
- 'lib/net/ssh/test/extensions.rb'
- 'test/authentication/test_ed25519.rb'
# Offense count: 6
# Cop supports --auto-correct.
Style/RescueModifier:
Exclude:
- 'lib/net/ssh/service/forward.rb'
- 'lib/net/ssh/transport/algorithms.rb'
# Offense count: 25
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
# Whitelist: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'lib/net/ssh/authentication/key_manager.rb'
- 'lib/net/ssh/authentication/methods/keyboard_interactive.rb'
- 'lib/net/ssh/authentication/methods/password.rb'
- 'lib/net/ssh/authentication/session.rb'
- 'lib/net/ssh/connection/channel.rb'
- 'lib/net/ssh/connection/event_loop.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/key_factory.rb'
- 'lib/net/ssh/loggable.rb'
- 'lib/net/ssh/test/local_packet.rb'
- 'lib/net/ssh/transport/algorithms.rb'
- 'lib/net/ssh/transport/packet_stream.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/SelfAssignment:
Exclude:
- 'lib/net/ssh/config.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'lib/net/ssh/buffer.rb'
- 'test/connection/test_channel.rb'
- 'test/connection/test_session.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
Exclude:
- 'lib/net/ssh/config.rb'
- 'lib/net/ssh/connection/channel.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
Exclude:
- 'lib/net/ssh/buffered_io.rb'
# Offense count: 18
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
Exclude:
- 'lib/net/ssh/authentication/agent.rb'
- 'lib/net/ssh/connection/session.rb'
- 'support/ssh_tunnel_bug.rb'
- 'test/integration/common.rb'
- 'test/integration/test_forward.rb'
- 'test/manual/test_pageant.rb'
- 'test/test_all.rb'
# Offense count: 1754
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: respond_to, define_method
Style/SymbolProc:
Exclude:
- 'lib/net/ssh/authentication/session.rb'
- 'lib/net/ssh/buffer.rb'
- 'lib/net/ssh/connection/session.rb'
- 'lib/net/ssh/test/extensions.rb'
- 'lib/net/ssh/transport/algorithms.rb'
- 'test/integration/test_forward.rb'
- 'test/test/test_test.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/UnneededCondition:
Exclude:
- 'lib/net/ssh/proxy/command.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/UnneededInterpolation:
Exclude:
- 'lib/net/ssh/proxy/socks5.rb'
- 'lib/net/ssh/transport/session.rb'
- 'test/integration/test_forward.rb'
# Offense count: 15
# Cop supports --auto-correct.
Style/UnneededPercentQ:
Exclude:
- 'net-ssh.gemspec'
- 'test/test_config.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/WhileUntilDo:
Exclude:
- 'lib/net/ssh/config.rb'
- 'test/integration/common.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
EnforcedStyle: percent
MinSize: 3
# Offense count: 4
# Cop supports --auto-correct.
Style/ZeroLengthPredicate:
Exclude:
- 'lib/net/ssh/buffered_io.rb'
- 'lib/net/ssh/connection/channel.rb'
# Offense count: 1636
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 932