OWASP/Nest

Removing `undefined` type or `?` specifier.

Open

#4,833 opened on Jun 4, 2026

 (4 comments) (0 reactions) (0 assignees)Python (651 forks)auto 404
good first issue

Repository metrics

Stars
 (412 stars)
PR merge metrics
 (Avg merge 2d 12h) (128 merged PRs in 30d)

Description

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