JetBrains Rider 2019.3 Help

Code Inspections in CoffeeScript

This topic lists all JetBrains Rider code inspections available in CoffeeScript.

You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of JetBrains Rider settings Ctrl+Alt+S.

Probable bugs

Inspection

Description

Default Severity

Infinite loop statement

Reports any instances of for , while ,or do statements whichcan only exit by throwing an exception. While such statements may be correct, theyare often a symptom of coding errors.

Warning Warning
Literal is not a function

Reports when literal expression used as function call.

Error Error
Missing import statement

Checks that all modules are referenced through import statements.

Suggests inserting the import statement.

Weak Warning Weak warning
Arguments object outside function

Checks if arguments object used outside function

Warning Warning
Variable is assigned to itself

Reports any assignments of the form x = x in CoffeeScript content. These are pointless,and usually indicate programmer error.

Warning Warning
'switch' statement with no default branch

Reports any switch statements in CoffeeScript content whichlack default branches. Such statementsmay result in difficult bugs, if unexpected cases are silently ignored.

Warning Warning

General

Inspection

Description

Default Severity

Signature mismatch

Checks CoffeeScript called function arguments

Weak Warning Weak warning
Unused local symbols

Checks CoffeeScript parameter, local variable, function, classes and private member declarations to be usedin given file scope.

Warning Warning
Last modified: 11 December 2019