chore: revert final cosmetic Performance optimization

- Disable Performance/MapHash rule
- Revert .pluck(:id) back to .map { |tool| tool[:id] }
- Reduce PR to 35 files focused on functional Rails upgrade changes
This commit is contained in:
Sojan Jose
2025-08-14 14:01:28 +02:00
parent 87d703ad3a
commit d24b513028
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -372,3 +372,9 @@ RSpec/DescribeClass:
Performance/MapCompact:
Enabled: false
Performance/CollectionLiteralInLoop:
Enabled: false
Performance/MapHash:
Enabled: false
@@ -31,7 +31,7 @@ module Concerns::CaptainToolsHelpers
#
# @return [Array<String>] Array of available tool IDs
def available_tool_ids
@available_tool_ids ||= available_agent_tools.pluck(:id)
@available_tool_ids ||= available_agent_tools.map { |tool| tool[:id] }
end
private