question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Operators shouldnt be preceded and followed by one space if this operator is not an operator but just a char.

See original GitHub issue

Which version of lesshint are you using?

last one

How are you running lesshint? CLI, Node.js API, Grunt/Gulp plugin?

gulp-lesslint

What’s your .lesshintrc configuration?

vanilla

If you’re reporting a bug, please show us some code that’s failing.

        margin-right: -(@grid-gutter-width / 4);

What did you expect to happen?

{nothing}

What’s the actual result?

Warning: tables.less: line 13, col 25, spaceAroundOperator: Operators should be preceded and followed by one space.

Would you be interested in submitting a PR for this issue?

Why not


alternativ:

@grid-whatever-width shouldn’t be allowed as name at all…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kokarncommented, Feb 15, 2017

Can confirm somethings fucky.

lesshint 3.0.1

@grid-gutter-width: 14px;

a {
    margin-left: - (@grid-gutter-width / 4); // fails
}

b {
    margin-left: - @grid-gutter-width; // fails
}

c {
    margin-left: - (@grid-gutter-width); // fails
}

d {
    margin-left: -(@grid-gutter-width / 4); // fails
}

e {
    margin-left: -@grid-gutter-width; // ok
}

f {
    margin-left: -(@grid-gutter-width); // fails
}

g {
    margin-left: -1px; // ok
}

h {
    margin-left: -(1px); // fails
}
Warning: test.less: line 4, col 20, spaceAroundOperator: Operators should be preceded and followed by one space.
Warning: test.less: line 8, col 20, spaceAroundOperator: Operators should be preceded and followed by one space.
Warning: test.less: line 12, col 20, spaceAroundOperator: Operators should be preceded and followed by one space.
Warning: test.less: line 16, col 20, spaceAroundOperator: Operators should be preceded and followed by one space.
Warning: test.less: line 24, col 20, spaceAroundOperator: Operators should be preceded and followed by one space.
Warning: test.less: line 32, col 20, spaceAroundOperator: Operators should be preceded and followed by one space.
0reactions
jwilssoncommented, Mar 7, 2017

@aloisdg No worries! We’re not in a hurry, let us know if we can help out with anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

9.7. Pattern Matching - PostgreSQL: The World's Most Advanced ...
If pattern does not contain percent signs or underscores, then the pattern only represents the string itself; in that case LIKE acts like...
Read more >
Documentation: 15: 9.7. Pattern Matching - PostgreSQL
To match a literal underscore or percent sign without matching other characters, the respective character in pattern must be preceded by the escape...
Read more >
3 Operators, Functions, Expressions, Conditions
While the equal (=) operator exactly matches one character value to another, the LIKE operator matches a portion of one character value to...
Read more >
problem while using stringize operator in c - Stack Overflow
Each occurrence of white space between the argument's preprocessing tokens becomes a single space character in the character string literal.
Read more >
perlop - Perl operators and precedence - Perldoc Browser
A sequence of relational operators, such as "$x < $y <= $z" , performs chained comparisons, in the manner described above in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found