]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #60169 - varkor:tidy-unnecessary-ignore-newline, r=kennytm
authorMazdak Farrokhzad <twingoow@gmail.com>
Tue, 23 Apr 2019 19:50:57 +0000 (21:50 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2019 19:50:57 +0000 (21:50 +0200)
Warn when ignore-tidy-linelength is present, but no lines are too long

It's easy for a `// ignore-tidy-linelength` to be added when there is a genuine need to ignore a file's line length, but then after refactoring the need is gone, but the tidy directive is not removed. This means that in the future, further editing may accidentally add unnecessarily long lines. This change forces `// ignore-tidy-linelength` to be used exactly when necessary, to make sure such changes are intentional.


Trivial merge