OWASP/Nest

Ternary operators should not be nested

オープン

#4,582 opened on 2026/04/25

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Python (651 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (412 個のスター)
PR merge metrics
 (平均マージ 2d 12h) (30d で 128 merged PRs)

説明

Description

SonarCloud reports a violation of rule typescript:S3358 , Ternary operators should not be nested. So Extract nested ternary operation into an independent statement.

Sonar Issue

https://sonarcloud.io/project/issues?open=AZzuG_Gt93q8aLTr6ODJ&id=OWASP_Nest

Affected Code

       const displayVal = typeof val === 'number' ? val : Array.isArray(val) ? val[0] : val

コントリビューターガイド