Skip to content

devreplay/github-app-devreplay

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 [email protected] (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.

About

A linter that replay your developing style as the GitHub Applications

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published