KEMBAR78
Arrow spacing rule should allow empty functions · Issue #173 · 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.

Arrow spacing rule should allow empty functions #173

@jonahkagan

Description

@jonahkagan

Sometimes you'd like to have an empty function. One example is if I wanted to mock the console object in case it wasn't defined, I might do something like this:

console ?= log: (->), error: (->)

This currently produces an error from the arrow spacing rule, when I don't think stylistically there's any issue with this code. (The rule does allow (-> ), which does not seem any better stylistically.)

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