Skip to content

Commit d7a4cd5

Browse files
authored
Merge pull request #21 from fengzixu/master
feature: add the yamllint tool
2 parents e88a6cd + 014e6ea commit d7a4cd5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
- Add [markdown-link-check](https://github.com/tcort/markdown-link-check) tool to check if links in markdown file is available;
99
- Add [gometalinter](https://github.com/alecthomas/gometalinter) to validate golang code;
1010
- Add [go-swagger](https://github.com/go-swagger/go-swagger) to validate swagger yml for API;
11+
- Add [yamllint](https://github.com/adrienverge/yamllint) to validate yaml file;

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
1212

1313
# shellcheck is included in this installation command.
1414
RUN apt-get update \
15-
&& apt-get install -y rubygems git curl wget shellcheck nodejs make gcc\
15+
&& apt-get install -y rubygems git curl wget shellcheck nodejs make gcc python-pip \
1616
&& gem install rake \
1717
&& gem install bundler \
1818
&& apt-get clean
@@ -51,3 +51,6 @@ RUN chmod +x /usr/local/bin/swagger
5151

5252
# install misspell
5353
RUN curl -L https://git.io/misspell | bash
54+
55+
# install yamllint
56+
RUN pip install --user yamllint && mv /root/.local/bin/yamllint /usr/bin

0 commit comments

Comments
 (0)