OWASP/Nest

Removing `undefined` type or `?` specifier.

Offen

#4.833 geöffnet am 04.06.2026

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (651 Forks)auto 404
good first issue

Repository-Metriken

Stars
 (412 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 12h) (128 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide