kleros/kleros-v2

View on GitHub
contracts/test/arbitration/index.ts

Summary

Maintainability
A
0 mins
Test Coverage

Multiple variable declarations in the same statement are forbidden
Open

  let core: KlerosCore, disputeKit: DisputeKitClassic;
Severity: Minor
Found in contracts/test/arbitration/index.ts by tslint

Rule: one-variable-per-declaration

Disallows multiple variable definitions in the same declaration statement.

Config

One argument may be optionally provided:

  • ignore-for-loop allows multiple variable definitions in a for loop declaration.
Examples
"one-variable-per-declaration": true
"one-variable-per-declaration": true,ignore-for-loop
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "ignore-for-loop"
    ]
  },
  "minLength": 0,
  "maxLength": 1
}

For more information see this page.

There are no issues that match your filters.

Category
Status