WSC003: Indentation is not multiple of 2¶
This rule alerting for indentation (whitespaces before the line) must be multiple of 2 spaces (or zero).
Example¶
Input file: examples/WSC003_bad_indentation.py
class LabelPrinter:
def __generate_pdf(self):
pdf_generator = _LabelPdfGenerator()
pdf_generator.generate_label(
self.__title, self.__data, self.__logo_path, config.App.LABEL_BORDER,
output_path=self.__pdf_path)
Command:
$ wscheck 'examples/WSC003_bad_indentation.py'
In examples/WSC003_bad_indentation.py line 2:
def __generate_pdf(self):
^-- WSC003: Indentation is not multiple of 2