Skip to content

Commit

Permalink
rubocop: enable Layout/MultilineOperationIndentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Dec 28, 2023
1 parent abc81fa commit 4212802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
Exclude:
- 'src/clients/security.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Expand Down
6 changes: 3 additions & 3 deletions src/clients/security.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def SecuritySetHandler(options)
options = deep_copy(options)
if Builtins.haskey(options, "passwd") &&
Ops.get_string(options, "passwd", "") !=
Ops.get(Security.Settings, "PASSWD_ENCRYPTION", "")
Ops.get(Security.Settings, "PASSWD_ENCRYPTION", "")
Ops.set(
Security.Settings,
"PASSWD_ENCRYPTION",
Expand All @@ -214,7 +214,7 @@ def SecuritySetHandler(options)
end
if Builtins.haskey(options, "crack") &&
Ops.get_string(options, "crack", "") !=
Ops.get(Security.Settings, "PASSWD_USE_PWQUALITY", "")
Ops.get(Security.Settings, "PASSWD_USE_PWQUALITY", "")
Ops.set(
Security.Settings,
"PASSWD_USE_PWQUALITY",
Expand All @@ -237,7 +237,7 @@ def SecuritySetHandler(options)

if Builtins.haskey(options, "remember") &&
Ops.get(Security.Settings, "PASSWD_REMEMBER_HISTORY", "0") !=
Ops.get_string(options, "remember", "0")
Ops.get_string(options, "remember", "0")
to_remember = Builtins.tointeger(
Ops.get_string(options, "remember", "0")
)
Expand Down

0 comments on commit 4212802

Please sign in to comment.