Skip to content

Commit

Permalink
rubocop: enable Layout/BlockEndNewline
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Dec 28, 2023
1 parent 28ebdd7 commit fa4ef87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop.yml
Expand Up @@ -2,12 +2,6 @@
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml

# Offense count: 1
# Cop supports --auto-correct.
Layout/BlockEndNewline:
Exclude:
- 'src/modules/Security.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
Expand Down
3 changes: 2 additions & 1 deletion src/modules/Security.rb
Expand Up @@ -419,7 +419,8 @@ def read_permissions
# Removing "local" from the string
permissions = @Settings["PERMISSION_SECURITY"].to_s.split
@Settings["PERMISSION_SECURITY"] = permissions.delete_if {|p|
p == "local" }.join(" ")
p == "local"
}.join(" ")

# default value
@Settings["PERMISSION_SECURITY"] = "secure" if @Settings["PERMISSION_SECURITY"].empty?
Expand Down

0 comments on commit fa4ef87

Please sign in to comment.