From b2636ddaebd9fd1ecd09466b4606792da53947a5 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 1 Jul 2023 09:33:16 +0200 Subject: Fix Lint/NonLocalExitFromIterator offense Uses `Array#any?` instead of `Array#each`. According to benchmarks, `any?` is slightly faster when validation fails (3%) and noticeably faster when validation passes (up to 60%) --- .rubocop_todo.yml | 4 ---- 1 file changed, 4 deletions(-) (limited to '.rubocop_todo.yml') diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index fcbc8c9f..bbe70cb3 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -56,10 +56,6 @@ Lint/DisjunctiveAssignmentInConstructor: Exclude: - 'lib/axlsx/drawing/num_data_source.rb' -Lint/NonLocalExitFromIterator: - Exclude: - - 'lib/axlsx/util/validators.rb' - # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: -- cgit v1.2.3