diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0cddea7..32a4324 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -171,15 +171,6 @@ Naming/FileName: Exclude: - 'lib/ucf/meta-inf.rb' -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: PreferredName. -Naming/RescuedExceptionsVariableName: - Exclude: - - 'examples/create-ucf' - - 'examples/ucfinfo' - - 'examples/verify-ucf' - # Offense count: 1 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. # SupportedStyles: snake_case, normalcase, non_integer diff --git a/examples/create-ucf b/examples/create-ucf index 3673dab..5f9d4b7 100755 --- a/examples/create-ucf +++ b/examples/create-ucf @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -# Copyright (c) 2013-2015 The University of Manchester, UK. +# Copyright (c) 2013-2023 The University of Manchester, UK. # # All rights reserved. # @@ -66,7 +66,7 @@ begin # Add a explanation of this file. c.comment = 'This is an example UCF file!' end -rescue ZipContainer::MalformedContainerError, ZipContainer::Error => err - puts err.to_s +rescue ZipContainer::MalformedContainerError, ZipContainer::Error => e + puts e.to_s exit 1 end diff --git a/examples/ucfinfo b/examples/ucfinfo index 67dc332..41583a8 100755 --- a/examples/ucfinfo +++ b/examples/ucfinfo @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -# Copyright (c) 2013-2015 The University of Manchester, UK. +# Copyright (c) 2013-2023 The University of Manchester, UK. # # All rights reserved. # @@ -46,8 +46,8 @@ ucffile = ARGV[0] begin ucf = UCF::File.open(ucffile) -rescue ZipContainer::MalformedContainerError, ZipContainer::Error => err - puts err.to_s +rescue ZipContainer::MalformedContainerError, ZipContainer::Error => e + puts e.to_s exit 1 end diff --git a/examples/verify-ucf b/examples/verify-ucf index 23c35d1..2e5e5c7 100755 --- a/examples/verify-ucf +++ b/examples/verify-ucf @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -# Copyright (c) 2013-2015 The University of Manchester, UK. +# Copyright (c) 2013-2023 The University of Manchester, UK. # # All rights reserved. # @@ -46,7 +46,7 @@ ucffile = ARGV[0] begin UCF::File.verify!(ucffile) -rescue ZipContainer::MalformedContainerError, ZipContainer::Error => err - puts err.to_s +rescue ZipContainer::MalformedContainerError, ZipContainer::Error => e + puts e.to_s exit 1 end