Skip to content

Commit

Permalink
useless rubocop rule
Browse files Browse the repository at this point in the history
Signed-off-by: Michée Lengronne <[email protected]>
  • Loading branch information
micheelengronne committed May 7, 2020
1 parent f3ff5b1 commit 626f59f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/ssh_crypto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def ssh_version
inspec.command('ssh -V 2>&1 | cut -f1 -d" " | cut -f2 -d"_"').stdout.to_f
end

def valid_ciphers # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength
def valid_ciphers # rubocop:disable Metrics/CyclomaticComplexity
# define a set of default ciphers
ciphers53 = 'aes256-ctr,aes192-ctr,aes128-ctr'
ciphers66 = '[email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr'
Expand Down Expand Up @@ -68,7 +68,7 @@ def valid_ciphers # rubocop:disable Metrics/CyclomaticComplexity, Metrics/Method
ciphers
end

def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength
def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity
# define a set of default KEXs
kex66 = '[email protected],diffie-hellman-group-exchange-sha256'
kex59 = 'diffie-hellman-group-exchange-sha256'
Expand Down Expand Up @@ -210,7 +210,7 @@ def valid_privseparation # rubocop:disable Metrics/CyclomaticComplexity
end

# return a list of valid algoriths for a current platform
def valid_algorithms # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength
def valid_algorithms # rubocop:disable Metrics/CyclomaticComplexity
alg53 = %w[rsa]
alg60 = %w[rsa ecdsa]
alg66 = %w[rsa ecdsa ed25519]
Expand Down

0 comments on commit 626f59f

Please sign in to comment.