Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLVSCODE-824 Use strict option in tsconfig #609

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

SLVSCODE-824 wip

0750d4b
Select commit
Loading
Failed to load commit list.
Draft

SLVSCODE-824 Use strict option in tsconfig #609

SLVSCODE-824 wip
0750d4b
Select commit
Loading
Failed to load commit list.
Cirrus CI / test_linux failed Aug 27, 2024 in 25s

Task Summary

Instruction main failed in 00:07

Details

✅ 00:00 clone
✅ 00:03 node_modules
✅ 00:00 start_xvfb
❌ 00:07 main

test/suite/hotspotsTreeDataProvider.test.ts(261,47): error TS7005: Variable 'diagnostic6' implicitly has an 'any' type.
test/suite/hotspotsTreeDataProvider.test.ts(268,46): error TS2345: Argument of type 'null' is not assignable to parameter of type 'HotspotTreeViewItem | undefined'.
test/suite/issues.test.ts(33,50): error TS18048: 'issue.textRange.endLine' is possibly 'undefined'.
test/suite/locations.test.ts(28,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'LocationTreeItem | undefined'.
test/suite/locations.test.ts(30,12): error TS18049: 'children' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(30,12): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(72,48): error TS2345: Argument of type 'null' is not assignable to parameter of type 'LocationTreeItem | undefined'.
test/suite/locations.test.ts(75,22): error TS18049: 'rootChildren' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(75,22): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(81,26): error TS18049: 'issueChildren' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(81,26): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(89,51): error TS2345: Argument of type 'null' is not assignable to parameter of type 'LocationTreeItem | undefined'.
test/suite/locations.test.ts(91,12): error TS18049: 'clearedChildren' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(91,12): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(176,48): error TS2345: Argument of type 'null' is not assignable to parameter of type 'LocationTreeItem | undefined'.
test/suite/locations.test.ts(179,22): error TS18049: 'rootChildren' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(179,22): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(243,48): error TS2345: Argument of type 'null' is not assignable to parameter of type 'LocationTreeItem | undefined'.
test/suite/locations.test.ts(246,22): error TS18049: 'rootChildren' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(246,22): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(359,48): error TS2345: Argument of type 'null' is not assignable to parameter of type 'LocationTreeItem | undefined'.
test/suite/locations.test.ts(362,22): error TS18049: 'rootChildren' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(362,22): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(368,48): error TS18049: 'flowChildren' is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(368,48): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(372,12): error TS2533: Object is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(372,12): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(373,12): error TS2533: Object is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(373,12): error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '1' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(374,12): error TS2533: Object is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(374,12): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(375,12): error TS2533: Object is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(375,12): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(376,12): error TS2533: Object is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(376,12): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/locations.test.ts(377,12): error TS2533: Object is possibly 'null' or 'undefined'.
test/suite/locations.test.ts(377,12): error TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
  Property '0' does not exist on type 'LocationTreeItem[] | Thenable<LocationTreeItem[] | null | undefined>'.
test/suite/requirements.test.ts(13,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string'.
test/suite/rules.test.ts(33,12): error TS18046: 'rulesAfterDeactivation' is of type 'unknown'.
test/suite/rules.test.ts(38,12): error TS18046: 'rulesAfterReactivation' is of type 'unknown'.

Exit status: 2