mirror of https://github.com/zulip/zulip.git
Make 'no newline at end of file' lint error more actionable.
There's a handy sed command to fix this, so we might as well document it.
This commit is contained in:
parent
e71d8bb4b6
commit
2b76f6223e
|
@ -108,7 +108,7 @@ def custom_check_file(fn, rules, skip_rules=[]):
|
|||
traceback.print_exc()
|
||||
lastLine = line
|
||||
if lineFlag and '\n' not in lastLine:
|
||||
print("No new line at the end of %s" % (fn,))
|
||||
print("No newline at the end of file. Fix with `sed -i '$a\\' %s`" % (fn,))
|
||||
failed = True
|
||||
return failed
|
||||
|
||||
|
|
Loading…
Reference in New Issue