Skip to main content

Whitespace checking tool

Project description

Python Package Build Status Dependency Status Code Quality Test Coverage License

Whitespace checking tool.

Installation

pip install wscheck

Usage

Check multiple files:

$ wscheck orange.sh pineapple.xml kiwi.js

Exclude rules:

$ wscheck --exclude WSW002 --exclude WSW003 orange.sh

Get list of available rules:

$ wscheck --list-rules

Write CheckStyle output too:

$ wscheck --checkstyle results.xml pineapple.xml

Example

$ wscheck examples/multiple_problems.py
In examples/multiple_problems.py line 5:
        self.print_to_pdf()
                            ^-- WSW002: Tailing whitespace

In examples/multiple_problems.py line 8:
   def __generate_pdf(self):
^-- WSW003: Indentation is not multiple of 2

In examples/multiple_problems.py line 9:
        pdf_generator = _LabelPdfGenerator()
                                            ^-- WSW001: Bad line ending '\r\n'

In examples/multiple_problems.py line 15:
--->--->os.makedirs(self.__print_cache_dir, exist_ok=True)
^-- WSW004: Indentation with non-space character

In examples/multiple_problems.py line 21:
        return os.path.join(self.__print_cache_dir, pdf_name)
                                                             ^-- WSW006: Too many newline at end of file (+1)

Bugs

Bugs or suggestions? Visit the issue tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wscheck-0.1.5.tar.gz (18.0 kB view hashes)

Uploaded Source

Built Distribution

wscheck-0.1.5-py2-none-any.whl (9.4 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page