]> git.lizzy.rs Git - rust.git/commit
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)
commitd1b2d6d64d0ec496c176c1c5169e211918080514
tree957842e7e0fb91f35e8ccfa934f646200749cb25
parent88a1dee03c56ab06c752b89b621602cdc5116f07
parent5ab5806c875b9336cd97ff5e58f803b6c95fb9b2
Rollup merge of #60169 - varkor:tidy-unnecessary-ignore-newline, r=kennytm

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.