Diagnostics

Diagnostics can be suppressed through EmmyRc.diagnostics.disable. You can also change severity of an individual diagnostic with EmmyRc.diagnostics.severity.

Some diagnostics are disabled by default. You can re-enable them by adding their codes to EmmyRc.diagnostics.enables.

Full list of diagnostic codes

EmmyRc#DiagnosticCode
"syntax-error"

Syntax error

"doc-syntax-error"

Doc syntax error

"type-not-found"

Type not found

"missing-return"

Missing return statement

"param-type-not-match"

Param Type not match

"missing-parameter"

Missing parameter

"redundant-parameter"

Redundant parameter

"unreachable-code"

Unreachable code

"unused"

Unused

"undefined-global"

Undefined global

"deprecated"

Deprecated

"access-invisible"

Access invisible

"discard-returns"

Discard return value

"undefined-field"

Undefined field

"local-const-reassign"

Local const reassign

"iter-variable-reassign"

Iter variable reassign

"duplicate-type"

Duplicate type

"redefined-local"

Redefined local

"redefined-label"

Redefined label

"code-style-check"

Code style check

"need-check-nil"

Need check nil

"await-in-sync"

Await in sync

"annotation-usage-error"

Doc tag usage error

"return-type-mismatch"

Return type mismatch

"missing-return-value"

Missing return value

"redundant-return-value"

Redundant return value

"undefined-doc-param"

Undefined Doc Param

"duplicate-doc-field"

Duplicate doc field

"unknown-doc-tag"

Unknown doc annotation

"missing-fields"

Missing fields

"inject-field"

Inject Field

"circle-doc-class"

Circle Doc Class

"incomplete-signature-doc"

Incomplete signature doc

"missing-global-doc"

Missing global doc

"assign-type-mismatch"

Assign type mismatch

"duplicate-require"

Duplicate require

"non-literal-expressions-in-assert"

non-literal-expressions-in-assert

"unbalanced-assignments"

Unbalanced assignments

"unnecessary-assert"

unnecessary-assert

"unnecessary-if"

unnecessary-if

"duplicate-set-field"

duplicate-set-field

"duplicate-index"

duplicate-index

"generic-constraint-mismatch"

generic-constraint-mismatch

"cast-type-mismatch"

cast-type-mismatch

"require-module-not-visible"

require-module-not-visible

"enum-value-mismatch"

enum-value-mismatch