Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarcia Ramos <virtua.creative@gmail.com>2018-11-29 12:58:41 +0300
committerMarcia Ramos <virtua.creative@gmail.com>2018-11-29 12:58:41 +0300
commitf6e51e83a597e2f7cf3cf977c7c2edd67899c4c4 (patch)
tree6c98a7323d7d36a38e9d566e12de5ce9fe3c84ea /doc
parent9f157f0d7d13190d8c72b0d321b83f5293176359 (diff)
parent59b4db7f2c9ef94f4bb0e26a12febac97e0611c8 (diff)
Merge branch 'mk/author-preparation-docs' into 'master'
Encourage MR author preparation in Code Review Guidelines documentation See merge request gitlab-org/gitlab-ce!23360
Diffstat (limited to 'doc')
-rw-r--r--doc/development/code_review.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/development/code_review.md b/doc/development/code_review.md
index df2cb30c5d6..7f3d23b5fb0 100644
--- a/doc/development/code_review.md
+++ b/doc/development/code_review.md
@@ -85,6 +85,23 @@ If an author is unsure if a merge request needs a domain expert's opinion, that'
usually a pretty good sign that it does, since without it the required level of
confidence in their solution will not have been reached.
+Before the review, the author is requested to submit comments on the merge
+request diff alerting the reviewer to anything important as well as for anything
+that demands further explanation or attention. Examples of content that may
+warrant a comment could be:
+
+- The addition of a linting rule (Rubocop, JS etc)
+- The addition of a library (Ruby gem, JS lib etc)
+- Where not obvious, a link to the parent class or method
+- Any benchmarking performed to complement the change
+- Potentially insecure code
+
+Do not add these comments directly to the source code, unless the
+reviewer requires you to do so.
+
+This
+[saves reviewers time and helps authors catch mistakes earlier](https://www.ibm.com/developerworks/rational/library/11-proven-practices-for-peer-review/index.html#__RefHeading__97_174136755).
+
### The responsibility of the maintainer
Maintainers are responsible for the overall health, quality, and consistency of