Skip to content

warn about missing whitespace #318

@wilzbach

Description

@wilzbach

(This is part of the Phobos style guide)

e.g. between the assignment there should be exactly one space

auto a = 1;
auto a=1; // yield warning
auto a = 1, b = 2;
auto a=1,b=2; // yield warning

or between other operations:

(1 < 2)
(1<2) // yield warning

same goes for operators like for, foreach, if and while

foreach (a;as)
foreach(a;as) // yield warning

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions