nimpretty: do not produce 'line too long' messages (#15541)

This commit is contained in:
Andreas Rumpf 2020-10-10 17:46:22 +02:00 • committed by GitHub
commit 992952d868
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -758,8 +758,9 @@ proc handleCRLF(L: var Lexer, pos: int): int =
template registerLine =
let col = L.getColNumber(pos)
if col > MaxLineLength:
lexMessagePos(L, hintLineTooLong, pos)
when not defined(nimpretty):
if col > MaxLineLength:
lexMessagePos(L, hintLineTooLong, pos)
case L.buf[pos]
of CR:

View file

@ -60,7 +60,4 @@ for t in allFiles:
testTogether(allFiles)
removeDir(outputdir)
if failures > 0: quit($failures & " failures occurred.")