From 96c1011b39357d9387b9dcea31271556d311987b Mon Sep 17 00:00:00 2001 From: Amauri Bizerra <10775696+extern-c@users.noreply.github.com> Date: Mon, 10 Aug 2026 02:13:08 +0000 Subject: [PATCH] Fix Style/MutableConstant Rubocop offenses Signed-off-by: Amauri Bizerra <10775696+extern-c@users.noreply.github.com> --- .rubocop_todo.yml | 8 -------- lib/cyclonedx/bom_builder.rb | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5f5b288..351f2e9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -67,14 +67,6 @@ Style/MixinUsage: Exclude: - 'lib/cyclonedx_deprecated.rb' -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: literals, strict -Style/MutableConstant: - Exclude: - - 'lib/cyclonedx/bom_builder.rb' - # Offense count: 2 Style/OpenStructUse: Exclude: diff --git a/lib/cyclonedx/bom_builder.rb b/lib/cyclonedx/bom_builder.rb index 4d7a4b5..0446e07 100644 --- a/lib/cyclonedx/bom_builder.rb +++ b/lib/cyclonedx/bom_builder.rb @@ -2,8 +2,8 @@ module Cyclonedx class BomBuilder - SUPPORTED_BOM_FORMATS = %w[xml json] - SUPPORTED_SPEC_VERSIONS = %w[1.1 1.2 1.3 1.4 1.5 1.6 1.7] + SUPPORTED_BOM_FORMATS = %w[xml json].freeze + SUPPORTED_SPEC_VERSIONS = %w[1.1 1.2 1.3 1.4 1.5 1.6 1.7].freeze extend Cyclonedx::BomHelpers