nimpretty: do not produce 'line too long' messages (#15541)
This commit is contained in:
parent
c7ccbfac39
commit
992952d868
2 changed files with 3 additions and 5 deletions
|
|
@ -758,6 +758,7 @@ proc handleCRLF(L: var Lexer, pos: int): int =
|
||||||
template registerLine =
|
template registerLine =
|
||||||
let col = L.getColNumber(pos)
|
let col = L.getColNumber(pos)
|
||||||
|
|
||||||
|
when not defined(nimpretty):
|
||||||
if col > MaxLineLength:
|
if col > MaxLineLength:
|
||||||
lexMessagePos(L, hintLineTooLong, pos)
|
lexMessagePos(L, hintLineTooLong, pos)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,4 @@ for t in allFiles:
|
||||||
testTogether(allFiles)
|
testTogether(allFiles)
|
||||||
removeDir(outputdir)
|
removeDir(outputdir)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if failures > 0: quit($failures & " failures occurred.")
|
if failures > 0: quit($failures & " failures occurred.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue