Code Inspections in CoffeeScript
This topic lists all PhpStorm code inspections available in CoffeeScript.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the IDE settings Ctrl+Alt+S.
Probable bugs
Inspection | Description | Default Severity |
---|---|---|
'switch' statement with no 'default' branch | Reports a | Warning |
Infinite loop statement | Reports a | Warning |
Missing import statement | Reports a module that is not referenced through an | Weak warning |
Object literal call | Reports an object literal expression that is invoked as if it were a function. | Error |
Variable assigned to itself | Reports any assignment of the form | Warning |
General
Inspection | Description | Default Severity |
---|---|---|
Function signature mismatch | Checks an argument in a CoffeeScript call expression that doesn't match the signature of the referenced function, including types, the number, and the order of arguments. Also, reports an overloading function that does not match the overloaded one in terms of parameters and return types. | Weak warning |
Unused local symbols | Reports an unused locally accessible parameter, local variable, function, class, or private member declaration. | Warning |