CWE一覧に戻る
CWE-1085

コメントアウトされたコードの量が多すぎるインボーカブル・コントロール・エレメント

Invokable Control Element with Excessive Volume of Commented-out Code
脆弱性 作成中
JA

関数、メソッド、プロシージャなどが、その本体内でコメントアウトされた過剰な量のコードを含んでいる。
コメントアウトされている。

過剰な量」の解釈は製品や開発者によって異なるかもしれないが、CISQはデフォルトの基準値として、コメントされたコードの2%を推奨している。

EN

A function, method, procedure, etc. contains an excessive amount of code that has been
commented out within its body.

While the interpretation of "excessive volume" may vary for each product or developer, CISQ recommends a default threshold of 2% of commented code.

Scope: Other / Impact: Reduce Maintainability
MITRE公式ページ — CWE-1085