Skip to content

Fix line_length checker for multiLine literals#465

Merged
1 commit merged intomasterfrom
multiline_length
Jun 19, 2017
Merged

Fix line_length checker for multiLine literals#465
1 commit merged intomasterfrom
multiline_length

Conversation

@wilzbach
Copy link
Member

This is one of the few checks where access to the raw source code would make it a lot easier.

Note that this still doesn't fix the checker entirely as lines containing tabs will have a lower line length as libdparse counts columns bytewise. However, there's no easy way around this with no access to the raw source (according to previous discussions this isn't wanted)

In any case this fixes the false positives in Phobos.
The false negatives (with tabs) are a lot less harmless and were totally ignored before.

@ghost
Copy link

ghost commented Jun 19, 2017

If only people could understand that their tab, from the editor point of view, is only a problem...

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant