KEMBAR78
"Line contains a trailing semicolon" error in block string · Issue #271 · clutchski/coffeelint · GitHub
Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

"Line contains a trailing semicolon" error in block string #271

@drewinglis

Description

@drewinglis

This function generates a "Line contains a trailing semicolon" lint error, even though the trailing semicolon is part of a block string:

fn = (index) ->
  query =
    """
    UPDATE #{TABLENAME}
    SET library = (CASE WHEN #{LIBRARY} IS NOT NULL THEN 'a' ELSE 'b' END)
    WHERE #{ID} % #{CHUNKS} = #{index};

    VACUUM #{TABLENAME};
    """

The error:

  ✗ foo.coffee
     ✗ #6: Line contains a trailing semicolon.

✗ Lint! » 1 error and 0 warnings in 1 file

This goes away if I remove any of the other individual lines in the block string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions