Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

JSCS confused over finally block indentation. #311

Closed
@qubyte

Description

@qubyte

Using a test module:

module.exports = function test() {
        try {
                console.log('hi');
        } catch (e) {
                console.error(e);
        } finally {
                console.log('bye');
        }
};

I get the following output:

Expected indentation of 1 characters at test.js :
     5 |  console.error(e);
     6 | } finally {
     7 |  console.log('bye');
---------^
     8 | }
     9 |}

Expected indentation of 0 characters at test.js :
     6 | } finally {
     7 |  console.log('bye');
     8 | }
--------^
     9 |}
    10 |

Expected indentation of -1 characters at test.js :
     7 |  console.log('bye');
     8 | }
     9 |}
-------^
    10 |

I can switch off this behaviour by removing "validateIndentation": "\t",.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions