han-feng/modular

View on GitHub
src/LogInfo.ts

Summary

Maintainability
A
0 mins
Test Coverage

Interpolation will only work for template strings.
Open

    E06: template('模块“${m.name}”引用了不存在的 extensionPoint “${ep}”')
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Missing semicolon
Open

    const t = LogInfo.CODES[this.code]
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

Interpolation will only work for template strings.
Open

    E02: template('模块名称重复 ${JSON.stringify(m1)}, ${JSON.stringify(m2)}'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Interpolation will only work for template strings.
Open

    E02: template('模块名称重复 ${JSON.stringify(m1)}, ${JSON.stringify(m2)}'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Missing semicolon
Open

import { template, TemplateExecutor } from 'lodash'
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

Missing semicolon
Open

  }
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

Interpolation will only work for template strings.
Open

    E01: template('模块名称未定义 ${JSON.stringify(m)}'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Interpolation will only work for template strings.
Open

    E06: template('模块“${m.name}”引用了不存在的 extensionPoint “${ep}”')
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Missing semicolon
Open

      return '未知异常'
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

Missing semicolon
Open

      return t(this.data)
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

Missing semicolon
Open

    return `[${this.code}] ${this.getMessage()}`
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

Interpolation will only work for template strings.
Open

    E03: template('“${m1.name}”依赖的模块“${m2}”解析失败'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Interpolation will only work for template strings.
Open

    E05: template('模块“${m.name}”声明了重复的 extensionPoint “${ep}”'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Interpolation will only work for template strings.
Open

    E03: template('“${m1.name}”依赖的模块“${m2}”解析失败'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Interpolation will only work for template strings.
Open

    E04: template('“${m1.name}”依赖的模块“${m2}”不存在'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Interpolation will only work for template strings.
Open

    E04: template('“${m1.name}”依赖的模块“${m2}”不存在'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

Interpolation will only work for template strings.
Open

    E05: template('模块“${m.name}”声明了重复的 extensionPoint “${ep}”'),
Severity: Minor
Found in src/LogInfo.ts by tslint

Rule: no-invalid-template-strings

Warns on use of ${ in non-template strings.

Rationale

Interpolation will only work for template strings.

Config

Not configurable.

Examples
"no-invalid-template-strings": true

For more information see this page.

There are no issues that match your filters.

Category
Status