OWASP/Nest

Removing `undefined` type or `?` specifier.

Aperta

#4833 aperta il 4 giu 2026

 (4 commenti) (0 reazioni) (0 assegnatari)Python (651 fork)auto 404
good first issue

Metriche repository

Star
 (412 stelle)
Metriche merge PR
 (Merge medio 2g 12h) (128 PR mergiate in 30 g)

Descrizione

Description

SonarCloud reports a violation of rule typescript:S4782. Optional property declarations should not use both ? and undefined.

Sonar Issue

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

Affected Code

excludedUsernames?: Array<string> | string | null | undefined;

Note

In many file same SonarCloud violation Consider removing 'undefined' type or '?' specifier, one of them is redundant.

Guida contributor