From 0681562fcd875763022a72df2b5cf7248bd79bc3 Mon Sep 17 00:00:00 2001 From: "Jeremy W. Chalfant" Date: Wed, 23 Dec 2015 14:39:42 -0600 Subject: [PATCH] rubocop is nuts --- lib/resources/service.rb | 1 + lib/resources/user.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/resources/service.rb b/lib/resources/service.rb index 4190f0169..9af3ae64a 100644 --- a/lib/resources/service.rb +++ b/lib/resources/service.rb @@ -188,6 +188,7 @@ class SrcMstr < ServiceManager private + # rubocop:disable Style/TrailingComma def enabled_rc_tcpip? if inspec.command( "grep -v ^# /etc/rc.tcpip | grep 'start ' | grep -Eq '(/{0,1}| )#{@name} '" diff --git a/lib/resources/user.rb b/lib/resources/user.rb index e71082255..8b489324d 100644 --- a/lib/resources/user.rb +++ b/lib/resources/user.rb @@ -292,9 +292,10 @@ class AixUser < UnixUser } end + # rubocop:disable Style/TrailingComma def credentials(username) cmd = inspec.command( - "lssec -c -f /etc/security/user -s #{username} -a minage -a maxage -a pwdwarntime", + "lssec -c -f /etc/security/user -s #{username} -a minage -a maxage -a pwdwarntime" ) return nil if cmd.exit_status != 0