feat: init commit csp-auditor #1
Annotations
20 errors
|
Typecheck
Type '{ "script-wildcard": { type: "script-wildcard"; severity: "high"; title: string; description: string; remediation: string; cweId: number; }; "script-unsafe-inline": { type: "script-unsafe-inline"; ... 4 more ...; cweId: number; }; ... 6 more ...; "wildcard-limited": { ...; }; }' is missing the following properties from type 'Record<VulnerabilityType, VulnerabilityRule>': "script-data-uri", "object-wildcard", "jsonp-bypass-risk", "angularjs-bypass", and 11 more.
|
|
Typecheck
Element implicitly has an 'any' type because expression of type 'VulnerabilityType' can't be used to index type '{}'.
|
|
Typecheck
Element implicitly has an 'any' type because expression of type 'VulnerabilityType' can't be used to index type '{}'.
|
|
Typecheck
Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
|
|
Typecheck
This comparison appears to be unintentional because the types '"strict" | "balanced"' and '"permissive"' have no overlap.
|
|
Typecheck
'EnhancedBlacklistManager' is declared but its value is never read.
|
|
Typecheck
'isSubdomainOf' is declared but its value is never read.
|
|
Typecheck
'hasHash' is declared but its value is never read.
|
|
Typecheck
'CspDirective' is declared but never used.
|
|
Typecheck
'EnhancedBlacklistManager' is declared but its value is never read.
|
|
Lint:
packages/backend/src/enhanced-blacklists.ts#L425
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/enhanced-blacklists.ts#L424
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/enhanced-blacklists.ts#L416
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/enhanced-blacklists.ts#L415
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/enhanced-blacklists.ts#L364
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/enhanced-analyzer.ts#L257
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/csp-parser.ts#L190
Don't use `null` as a type. Use 'undefined' instead of 'null'
|
|
Lint:
packages/backend/src/csp-parser.ts#L80
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/blacklists.ts#L210
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
|
Lint:
packages/backend/src/blacklists.ts#L179
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|