1.2.6 • Published 2 years ago

review-edit-auto v1.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

reviewEditAuto

scan your project, only review changed code in given time-range automatic

Requirement

require nodejs version>= 15.0.0

Mechanism

  1. list your edited files in given time-range
  2. scan these files and auto review
  3. extract only changed lines
  4. generate report

Usage

npm install -g review-edit-auto
cd yourProject
# default review in 1 week
review code
# you can specify time
review code --since 2022-03-02
# or
review code --since 2.weeks

you can skip some level by using --filterLv low, then this level logs will never show in your report.

review code --filterLv low

if you want to use your own eslintrc file instead of default provided, you can:

# will find your eslint config files in your project root dir
review code --useOutRc

you can also export results to excel document:

review code --exportExcel

now you can see there are excel document file in your project dir

Rules

I pick up these eslint plugins for reviewing code:

  • eslint-config-airbnb
  • eslint-config-google
  • eslint-config-react-app
  • eslint-config-standard
  • eslint-config-standard-jsx
  • eslint-plugin-flowtype
  • eslint-plugin-import
  • eslint-plugin-jsx-a11y
  • eslint-plugin-node
  • eslint-plugin-promise
  • eslint-plugin-react
  • eslint-plugin-react-hooks
  • eslint-plugin-security
  • eslint-plugin-sonarjs

TODO

  • sort
  • export table to excel document
  • adjust downgrade some rules level