Inspecting 1 file
Offenses:
mysql-server:18:17: C: Style/RedundantRegexpEscape: Redundant escape inside regexp literal when /[\s*\d+%]/ ^^
Signed-off-by: Zhang Yu 2134782174@qq.com --- stats/mysql-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stats/mysql-server b/stats/mysql-server index d3f3fd79..037d1f0f 100755 --- a/stats/mysql-server +++ b/stats/mysql-server @@ -15,7 +15,7 @@ while (line = STDIN.gets) # 200706 14:35:48 [ 99%] main.subquery_sj_innodb_all w8 [ pass ] 140 # 200706 14:35:52 [ 99%] main.ssl_dynamic_persisted w1 [ fail ] 5953 # 200706 14:35:59 [ 99%] main.mysql_upgrade_grant w7 [ skipped ] 80805 - when /[\s*\d+%]/ + when /[\s*\d+%]/ results << line.split(']')[1].split[0] + '.pass: 1' if line.include?('[ pass ]') results << line.split(']')[1].split[0] + '.fail: 1' if line.include?('[ fail ]') results << line.split(']')[1].split[0] + '.skip: 1' if line.include?('[ skipped ]')