Skip to content

88 characters doesn't count = in routine definitions #50

@emizzle

Description

@emizzle

The formatter doesn't seem to add line breaks in routine definitions until there are >88 characters without including =. For example,

# nph doesn't add line breaks
# 88 characters without including ` =`
template expectJsonKind*(expectedType: type, expectedKind: JsonNodeKind, json: JsonNode) =
  expectJsonKind(expectedType, {expectedKind}, json)

# nph adds line breaks
# 89 characters without including ` =`
template expectJsonKind*(expectedType: type, expectedKind: JsonNodeKind, json1: JsonNode) =
  expectJsonKind(expectedType, {expectedKind}, json1)

It would make sense to include = in the character count as part of the routine definition as these are visible characters and one should not have to scroll to see them.

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