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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-04-24 15:06:53 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-04-24 16:13:11 +0300
commit2340cb36101d8e797f8b72dd2066fec2a5241622 (patch)
tree1f038b83e3d0714cb49724e32b65091b5b94ae60
parent07d4cce8bce8b1bc4c735c7d941c20046600fb3f (diff)
Add spelling check to markdown fileszj-danger-improvements
Ignored words are empty now, but after the first push a few should be added probably.
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--Dangerfile8
2 files changed, 9 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0fb5a4a55..d9c29413a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,7 +18,7 @@ danger-review:
stage: test
script:
- git version
- - gem install danger-gitlab --no-document
+ - gem install danger-gitlab danger-prose --no-document
- danger
.ruby_template: &ruby_definition
diff --git a/Dangerfile b/Dangerfile
index c1ffd180f..db9f8f97d 100644
--- a/Dangerfile
+++ b/Dangerfile
@@ -17,3 +17,11 @@ if git.modified_files.include?(VENDOR_JSON)
fail("gitaly-proto version is incorrect")
end
end
+
+# Look for prose issues
+markdown_files = Dir['*.md'] + Dir['doc/**/*.md']
+prose.lint_files markdown_files
+
+# Look for spelling issues
+prose.ignored_words = [] # Add later if we know what and why
+prose.check_spelling markdown_files