commit | af4ac388d6ea93237c1c5cf424c77ec3d995bcf8 | [log] [tgz] |
---|---|---|
author | Maxime Guerreiro <maximeg@google.com> | Wed May 02 13:50:28 2018 +0000 |
committer | Maxime Guerreiro <maximeg@google.com> | Wed May 02 17:04:40 2018 +0000 |
tree | d817530e455825bea3bfc6bf00ce568c73b78143 | |
parent | be4d31908ff7dd24bbcab433dc58b8b26bf417b4 [diff] |
Cleanup classes Remove the complicated constructor SimpleSubmitRulesModule, it is error-prone and Guice might not be entirely ready at this point. Remove #getConfig, which was only used once from NoUnresolvedCommentsRule. Directly call the right method. Qualify sub-classes imports. Change-Id: Ic5a6a4875861279ae237ca6438adf5fd7694a29e
Gerrit plugin to provide simple submit rules and a rest API to configure them.
By simple, we mean any rule that can be described in one sentence. Or fits in a tweet.
Having a set of simple rules makes composition easier, thus allowing harder rules to be defined ... in a simple way :)
Of course, this plugin can't contain all the simple rules one can think of, and will only contain rules that seem popular or interesting to have.