code-metrics-analysis
Analyzes code complexity and maintainability metrics to improve code quality and monitor technical debt effectively.
Install this skill
Security score
The code-metrics-analysis skill was audited on Feb 9, 2026 and we found 11 security issues across 2 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 164 | const fullPath = `${dir}/${item}`; |
Template literal with variable interpolation in command context
| 187 | report += `- Total Files: ${totalFiles}\n`; |
Template literal with variable interpolation in command context
| 188 | report += `- Average Complexity: ${avgComplexity.toFixed(2)}\n\n`; |
Template literal with variable interpolation in command context
| 201 | report += `- ${file}\n`; |
Template literal with variable interpolation in command context
| 202 | report += ` - Cyclomatic: ${metrics.cyclomaticComplexity}\n`; |
Template literal with variable interpolation in command context
| 203 | report += ` - Cognitive: ${metrics.cognitiveComplexity}\n`; |
Template literal with variable interpolation in command context
| 204 | report += ` - LOC: ${metrics.linesOfCode}\n\n`; |
Template literal with variable interpolation in command context
| 375 | message: `Function has complexity of ${complexity}. Maximum allowed is ${maxComplexity}.` |
External URL reference
| 474 | - [Cyclomatic Complexity](https://en.wikipedia.org/wiki/Cyclomatic_complexity) |
External URL reference
| 475 | - [Cognitive Complexity](https://www.sonarsource.com/resources/cognitive-complexity/) |
External URL reference
| 476 | - [SonarQube](https://www.sonarqube.org/) |