WSC007: File begins with newline¶
Check empty lines before the first non-empty line.
Example¶
Input file: examples/WSC007_new_line_at_bof.py
class LabelPrinter:
def print(self, printer: (Printer, None)=None, copies: int=1):
printer = printer or Printer(config.App.LABEL_PRINTER)
self.print_to_pdf()
printer.print_pdf(self.__pdf_path, options={'copies': str(copies)})
Command:
$ wscheck 'examples/WSC007_new_line_at_bof.py'
In examples/WSC007_new_line_at_bof.py line 2:
class LabelPrinter:
^-- WSC007: File begins with newline