Skip to content

Catch badly put newlines in LESS files. #242

Closed
@svera

Description

@svera

Description

Newlines existing in the middle of a style definition for LESS files should be catch. Currently, Magento2/Sniffs/Less/ColonSpacingSniff.php has this checking in place but it is not working, as PHPCS strips newlines that goes in the middle of a sentence.

Expected behavior

Being able to catch the following case

.foo {
  bar:
          'xyz';
}

Benefits

An incorrect LESS formatting would be catch

Additional information

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions