OWASP/Nest

Removing `undefined` type or `?` specifier.

开放

#4,833 创建于 2026年6月4日

 (4 条评论) (0 个反应) (0 位负责人)Python (651 个派生)auto 404
good first issue

仓库指标

星标
 (412 个星标)
PR 合并指标
 (平均合并 2天 12小时) (30 天内合并 128 个 PR)

描述

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.

贡献者指南