Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 2.07 KB

COMMAND_EXAMPLES.md

File metadata and controls

95 lines (63 loc) · 2.07 KB

ESLint

Validate rules

For JavaScript

linter-maintainer --eslint-js ./your/project/path

For TypeScript

linter-maintainer --eslint-ts ./your/project/path

Generate rules

For JS

linter-maintainer --generate --eslint-js ./your/project/path > .eslintrc.json

For TypeScript

linter-maintainer --generate --eslint-ts ./your/project/path > .eslintrc.json

PMD for Java

Dependencies

  1. You needs to install PMD from official page. I checked works on the PMD version 6.30.0.

  2. LinterMaintainer will work by executing local PMD path.

    • Windows: pmd.bat
    • Linux: $HOME/pmd-bin-6.30.0/bin/run.sh pmd Following example use the path of pmd.bat

Validate rules

linter-maintainer --pmd-java ./your/project/path pmd.bat ./your/pmd/configfile.xml

./your/pmd/configfile.xml encode should be UTF-8

Generate rules

linter-maintainer --generate --pmd-java ./your/project/path pmd.bat > yourpmd.xml

Pylint

You needs to install Pylint > 2.6

Validate rules

linter-maintainer --pylint ./your/project/path

Generate rules

linter-maintainer --generate --pylint ./your/project/path > pylintrc