Conversation
| _ => default_ecosystem_policy.clone(), | ||
| }; | ||
|
|
||
| let ruby_policy = match token { |
There was a problem hiding this comment.
Added ruby_policy which duplicates the existing per-ecosystem policy match blocks; this repeats substantial logic and JSON structure already present.
Details
✨ AI Reasoning
1) The change adds a new ruby_policy match block that mirrors existing per-ecosystem policy match blocks.
2) This repeats the same logical pattern and JSON shape used for other ecosystems.
3) The repetition increases maintenance burden because fixes to policy-shape handling would need multiple places updated.
4) The duplication is within the same file and was introduced by this PR.
🔧 How do I fix it?
Delete extra code. Extract repeated code sequences into reusable functions or methods. Use loops or data structures to eliminate repetitive patterns.
Reply @AikidoSec feedback: [FEEDBACK] to get better review comments in the future.
Reply @AikidoSec ignore: [REASON] to ignore this issue.
More info
Summary by Aikido
🚀 New Features
More info