循環的複雑度 - CI/CD用語集の定義
循環的複雑度とは、Thomas McCabeによって定義された指標であり、コードの一部を通る線形独立な経路の数を数えるため、分岐やループが多いほど数値が上がります。
なぜ重要か
複雑度が高いほど、テストすべき経路が増え、バグの入り込む箇所も増えます。CIの品質ゲートは、関数が複雑度のしきい値を超えるとbuildを失敗させることが多く、分割を促します。
関連ガイド
Code Smell - CI/CD Glossary DefinitionCode Smell: A code smell is a surface symptom in code (long methods, duplicated logic, large classes) that hi…
Continuous Testing - CI/CD Glossary DefinitionContinuous Testing: Continuous testing is running automated tests at every stage of the pipeline, so quality…
Technical Debt - CI/CD Glossary DefinitionTechnical Debt: Technical debt is the implied future cost of choosing an easy or quick solution now over a be…