Skip to content

FIX: Validate Snap arguments #52

FIX: Validate Snap arguments

FIX: Validate Snap arguments #52

Triggered via pull request December 5, 2023 13:52
Status Failure
Total duration 5m 55s
Artifacts

build-lint-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint: packages/snap/src/index.ts#L8
Identifier 'superstruct_validate' is not in camel case
Lint: packages/snap/src/index.ts#L10
Insert `·`
Lint: packages/snap/src/index.ts#L10
'GetBip32PublicKeyParams' is defined but never used
Lint: packages/snap/src/index.ts#L11
Replace `GetBip32PublicKeyParamsStruct` with `·GetBip32PublicKeyParamsStruct·`
Lint: packages/snap/src/index.ts#L34
Replace `⏎······const·[err,·params]·=·superstruct_validate(request.params,·GetBip32PublicKeyParamsStruct` with `······const·[err,·params]·=·superstruct_validate(⏎········request.params,⏎········GetBip32PublicKeyParamsStruct,⏎······`
Lint: packages/snap/src/index.ts#L35
Identifier 'err' is restricted
Lint: packages/snap/src/index.ts#L36
Identifier 'err' is restricted
Lint: packages/snap/src/index.ts#L37
Identifier 'err' is restricted
Lint: packages/snap/src/index.ts#L39
Delete `······`
Lint: packages/snap/src/index.ts#L57
Delete `⏎⏎····`