Fix edge case importing RSA key #580
Merged
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main)
succeeded
Jun 27, 2024 in 46s
CodeScene PR Check
✅ Code Health Quality Gates: OK
- Declining Code Health: 1 findings(s) 🚩
Details
🚩 Declining Code Health (highest to lowest):
- Complex Method PemParse.cs: DecodeRSAPrivateKey
Annotations
Check warning on line 185 in Vonage/PemParse.cs
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ Getting worse: Complex Method
DecodeRSAPrivateKey increases in cyclomatic complexity from 10 to 11, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
Loading