Skip to content

Commit 86b9ff5

Browse files
committed
lint fix: disable abc for library
Unfortunately we have to disable it at this point, if we don't want to risk writing more functions to cover the same space. Even if the buildup structure of the hashmap is completely removed from these functions (thus reducing the total number of assignments considerably), we are left with a slightly over AbcSize for get_macs, which is due to the OS-checking inside. So ignore it unless we find a better solution Signed-off-by: Dominik Richter <[email protected]>
1 parent 92f4820 commit 86b9ff5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libraries/get_ssh_ciphers.rb

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
class Chef
2424
class Recipe
2525
class SshCipher
26+
# rubocop:disable AbcSize
2627
def self.get_ciphers(node, cbc_required)
2728
weak_ciphers = cbc_required ? 'weak' : 'default'
2829

libraries/get_ssh_kex.rb

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
class Chef
2424
class Recipe
2525
class SshKex
26+
# rubocop:disable AbcSize
2627
def self.get_kexs(node, weak_kex)
2728
weak_kex = weak_kex ? 'weak' : 'default'
2829

libraries/get_ssh_macs.rb

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
class Chef
2424
class Recipe
2525
class SshMac
26+
# rubocop:disable AbcSize
2627
def self.get_macs(node, weak_hmac)
2728
weak_macs = weak_hmac ? 'weak' : 'default'
2829

0 commit comments

Comments
 (0)