bin/metrics-disk-capacity.rb in sensu-plugins-disk-checks-5.0.1 vs bin/metrics-disk-capacity.rb in sensu-plugins-disk-checks-5.1.0

- old
+ new

@@ -1,6 +1,8 @@ #! /usr/bin/env ruby +# frozen_string_literal: true + # # disk-capacity-metrics # # DESCRIPTION: # This plugin uses df to collect disk capacity metrics @@ -45,10 +47,10 @@ def convert_integers(values) values.each_with_index do |value, index| begin converted = Integer(value) values[index] = converted - rescue ArgumentError # rubocop:disable HandleExceptions + rescue ArgumentError # rubocop:disable Lint/SuppressedException end end values end