[errors] Inspecting 1 file C
Offenses:
libmicro:7:1: C: Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. next unless line =~ /^(\w+)\s+\S+\s+\S+\s+(\S+)/ ^^^^ libmicro:7:5: C: Layout/EmptyLineAfterGuardClause: Add empty line after guard clause. next unless line =~ /^(\w+)\s+\S+\s+\S+\s+(\S+)/ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 file inspected, 2 offenses detected
Signed-off-by: Lu Kaiyi 2392863668@qq.com --- stats/libmicro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/stats/libmicro b/stats/libmicro index 530d8e2e..b7e895bf 100755 --- a/stats/libmicro +++ b/stats/libmicro @@ -4,6 +4,7 @@ # close_tmp 1 1 0.61880 201 0 640
$stdin.each_line do |line| - next unless line =~ /^(\w+)\s+\S+\s+\S+\s+(\S+)/ - puts "#{$1}: #{$2}" + next unless line =~ /^(\w+)\s+\S+\s+\S+\s+(\S+)/ + + puts "#{$1}: #{$2}" end