From f0c82079dbbf2a1a5f0d12ffd8597510508b5a4a Mon Sep 17 00:00:00 2001 From: Taichi Ishitani Date: Sat, 11 Jan 2025 20:30:03 +0900 Subject: [PATCH] update RuboCop v1.64.1 (#148, rggen/rggen#231) --- .codeclimate.yml | 2 +- .rubocop.yml | 4 ++++ lib/rggen/core/builder/list_feature_entry.rb | 2 +- lib/rggen/core/utility/code_utility/source_file.rb | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 917d643..a933d49 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -13,6 +13,6 @@ plugins: enabled: true rubocop: enabled: true - channel: rubocop-1-56-3 + channel: beta exclude_patterns: - "spec/" diff --git a/.rubocop.yml b/.rubocop.yml index a541aab..c026137 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -21,3 +21,7 @@ Naming/AccessorMethodName: Naming/MethodName: Exclude: - lib/rggen/core/core_extensions/kernel.rb + +Style/SymbolProc: + Exclude: + - lib/rggen/core/input_base/component_factory.rb diff --git a/lib/rggen/core/builder/list_feature_entry.rb b/lib/rggen/core/builder/list_feature_entry.rb index 3b89bdb..fe65952 100644 --- a/lib/rggen/core/builder/list_feature_entry.rb +++ b/lib/rggen/core/builder/list_feature_entry.rb @@ -7,7 +7,7 @@ class ListFeatureEntry < FeatureEntryBase include Base::SharedContext def initialize(registry, name) - super(registry, name) + super @features = {} end diff --git a/lib/rggen/core/utility/code_utility/source_file.rb b/lib/rggen/core/utility/code_utility/source_file.rb index 0c11a9c..b6a1115 100644 --- a/lib/rggen/core/utility/code_utility/source_file.rb +++ b/lib/rggen/core/utility/code_utility/source_file.rb @@ -120,7 +120,7 @@ def macro_definition_block end def include_guard_footer - @guard_macro && (-> { self.class.endif_keyword }) + @guard_macro && -> { self.class.endif_keyword } end end end