Mattermost Logo
Edit on GitHub

Best Practices

See here for server-specific best practices for plugins. Webapp-specific best practices are incoming.

How can I review the entire code base of a plugin? 

Carry out the following steps:

  1. Take a backup of project directory
  2. Create a dummy-master branch with no code:

    git checkout --orphan dummy-master
    git rm -rf
    git push origin dummy-master
  3. Create a dummy-review branch from dummy-master:

    git checkout -b dummy-review
    git add
    git commit -m "Full checkin"
    git push origin dummy-review
  4. Create a PR from dummy-review -> dummy-master

  5. Code review on the resulting PR