Command line toolΒΆ

Added in version 1.1.0.

WPS has a command-line utility named wps

Here are listed all the subcommands it has.

wps explain

This command can be used to get description of violation. It will be the same description that is located on the website.

Syntax: wps explain <code>

Examples:

$ wps explain WPS115
WPS115 (UpperCaseAttributeViolation)

WPS115 - Require ``snake_case`` for naming class attributes.
...
$ wps explain 116
WPS116 (ConsecutiveUnderscoresInNameViolation)

WPS116 - Forbid using more than one consecutive underscore in variable names.