Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a361f314
Commit
a361f314
authored
Aug 08, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add linting script for documentation
parent
fb20758f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
.gitlab-ci.yml
.gitlab-ci.yml
+7
-0
scripts/lint-doc.sh
scripts/lint-doc.sh
+15
-0
No files found.
.gitlab-ci.yml
View file @
a361f314
...
...
@@ -224,6 +224,13 @@ teaspoon:
script
:
-
teaspoon
lint-doc
:
stage
:
test
image
:
"
phusion/baseimage:latest"
before_script
:
[]
script
:
-
scripts/lint-doc.sh
bundler:audit:
stage
:
test
<<
:
*ruby-static-analysis
...
...
scripts/lint-doc.sh
0 → 100755
View file @
a361f314
#!/usr/bin/env bash
cd
"
$(
dirname
"
$0
"
)
/.."
# Use long options (e.g. --header instead of -H) for curl examples in documentation.
grep
--perl-regexp
--recursive
--color
=
auto
'curl (.+ )?-[^- ].*'
doc/
if
[
$?
==
0
]
then
echo
'✖ ERROR: Short options should not be used in documentation!'
>
&2
exit
1
fi
echo
"✔ Linting passed"
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment