review-edit-auto
Version:
scan your project, only review edited code in given time-range automatic
76 lines (55 loc) • 1.5 kB
Markdown
# 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
```sh
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.
```sh
review code --filterLv low
```
if you want to use your own `eslintrc` file instead of default provided, you can:
```sh
# will find your eslint config files in your project root dir
review code --useOutRc
```
you can also export results to excel document:
```sh
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
<img src="./img/res.png" width="700" align=center>