Skip to content

Commit

Permalink
rubocop: Metrics/LineLength 135 -> 116
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jan 8, 2015
1 parent 1a8fbb1 commit 3f675fa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .rubocop.yml
Expand Up @@ -45,12 +45,12 @@ Metrics/CyclomaticComplexity:
# Offense count: 56
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 135
Max: 116

# Offense count: 46
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 222
Max: 223

# Offense count: 13
Metrics/PerceivedComplexity:
Expand Down
3 changes: 2 additions & 1 deletion src/clients/nfs_auto.rb
Expand Up @@ -54,7 +54,8 @@ def main
if Ops.greater_than(Builtins.size(WFM.Args), 1) &&
Ops.is_list?(WFM.Args(1))
Builtins.y2warning(
"Old-style configuration detected (got list, expected map). <nfs> section needs to be converted to match up-to-date schema"
"Old-style configuration detected (got list, expected map). " \
"<nfs> section needs to be converted to match up-to-date schema"
)
end
end
Expand Down
6 changes: 4 additions & 2 deletions src/include/nfs/ui.rb
Expand Up @@ -55,7 +55,8 @@ def initialize_nfs_ui(include_target)

# Help, part 1 of 3
@help_text1 = _(
"<p>The table contains all directories \nexported from remote servers and mounted locally via NFS (NFS shares).</p>"
"<p>The table contains all directories \n" \
"exported from remote servers and mounted locally via NFS (NFS shares).</p>"
) +
# Help, part 2 of 3
_(
Expand Down Expand Up @@ -454,7 +455,8 @@ def GetFstabEntry(fstab_ent, existing)
helptext,
_(
"<p>\t\t\n" +
"For <b>Mount Point</b>, enter the path in the local file system where the directory should be mounted. With\n" +
"For <b>Mount Point</b>, enter the path in the local " \
"file system where the directory should be mounted. With\n" +
"<b>Browse</b>, select your mount point\n" +
"interactively.</p>"
)
Expand Down
3 changes: 2 additions & 1 deletion src/modules/Nfs.rb
Expand Up @@ -567,7 +567,8 @@ def Summary
# Mount NFS directory
# @param [String] server remote server name
# @param [String] share name of the exported directory
# @param [String] mpoint mount point (can be empty or nil, in this case it will be mounted in temporary directory)
# @param [String] mpoint mount point (can be empty or nil,
# in this case it will be mounted in a temporary directory)
# @param [String] options mount options - e.g. "ro,hard,intr", see man nfs
# @param [String] type nfs type (nfs vs. nfsv4) - if empty, 'nfs' is used
# @return [String] directory where volume was mounted or nil if mount failed
Expand Down

0 comments on commit 3f675fa

Please sign in to comment.