Skip to content

devreplay/github-app-devreplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7c5c0fd · Sep 2, 2021

History

67 Commits
Sep 2, 2021
Feb 11, 2020
Sep 2, 2021
Mar 29, 2019
Mar 14, 2019
Sep 2, 2021
Dec 30, 2018
Dec 30, 2018
Feb 4, 2019
Dec 30, 2018
Dec 30, 2018
Dec 30, 2018
Dec 30, 2018
Jan 7, 2019
Sep 2, 2021
Dec 30, 2018
Nov 22, 2019
Dec 30, 2018
Sep 2, 2021
Mar 14, 2019
Nov 22, 2019
Sep 2, 2021

Repository files navigation

DevReplay

Devreplay suggests code fix ways that already fixed by human reviewers in past.

screeenshot

  • VS Code support is here

Usage

  1. Install this app from https://github.com/apps/devreplay
  2. Create your own programming style(devreplay.json) on the root like bellow (Recommend) Review Pattern Generator can generate your rule file automatically
[
    {
        "condition": [
            "for $0 in xrange(${1:name}.$2):"
        ],
        "consequent": [
            "import six",
            "for $0 in six.moves.range(${1:name}.$2):"
        ],
    }
]

This mean if your code has xrange, it should be six.moves.range

And create your code(hello.py) like this.

for a in xrange(array.x):
    pass
  1. The developer(you) submits a pull request
  2. This bot suggests source code changes based on pattern.

Setup

# Install dependencies
yarn

# Run typescript
npm run build

# Run the bot
npm start

If you have suggestions for how another-code-reviewer could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2018 Yuki Ueda ueda.yuki.un7@is.naist.jp (ikuyadeu.github.io)

Supported Language

  • CPP
  • Java
  • JavsScript
  • TypeScript
  • Python
  • Ruby

Pattern Detection

Please use pattern detector.

https://github.com/Ikuyadeu/review_pattern_gen

Thanks

This package is made based on

We would like to thank the Support Center for Advanced Telecommunications (SCAT) Technology Research, Foundation. This system was supported by JSPS KAKENHI Grant Numbers JP18H03222, JP17H00731, JP15H02683, and JP18KT0013.