Skip to content

Commit 4df5df2

Browse files
author
golangci
authored
Merge pull request #56 from golangci/feature/svg-demo
add svg demo
2 parents efc97a3 + d4d2697 commit 4df5df2

File tree

7 files changed

+30
-16
lines changed

7 files changed

+30
-16
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ changelog:
4343
exclude:
4444
- '^docs:'
4545
- '^test:'
46-
- 'README.md'
46+
- 'README'
4747
- Merge pull request
4848
- Merge branch
4949

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: go
33
go:
44
- 1.9.x
55
- 1.10.x
6-
script: make test
6+
script: make check_generated test
77

88
after_success:
99
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,13 @@ test:
77
golangci-lint run --fast --no-config -v ./test/testdata/typecheck.go
88
go test -v -race ./...
99

10+
assets:
11+
svg-term --cast=183662 --out docs/demo.svg --window --width 110 --height 30 --from 2000 --to 20000 --profile Dracula --term iterm2
12+
13+
readme:
14+
go run ./scripts/gen_readme/main.go
15+
16+
check_generated:
17+
make readme && git diff --exit-code # check no changes
18+
1019
.PHONY: test

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
99

1010
<a href="https://golangci.com/"><img src="docs/go.png" width="250px"></a>
1111

12-
* [Install](#install)
1312
* [Demo](#demo)
13+
* [Install](#install)
1414
* [Quick Start](#quick-start)
1515
* [Comparison](#comparison)
1616
* [<code>golangci-lint</code> vs <code>gometalinter</code>](#golangci-lint-vs-gometalinter)
@@ -31,6 +31,14 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
3131
* [Future Plans](#future-plans)
3232
* [Contact Information](#contact-information)
3333

34+
# Demo
35+
<p align="center">
36+
<img src="./docs/demo.svg" width="100%">
37+
</p>
38+
39+
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
40+
[![asciicast](https://asciinema.org/a/183662.png)](https://asciinema.org/a/183662)
41+
3442
# Install
3543
Recommended way to install is:
3644
```bash
@@ -49,12 +57,6 @@ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
4957

5058
Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version.
5159

52-
# Demo
53-
Example of output:
54-
![Screenshot of sample output](docs/run_screenshot.png)
55-
56-
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
57-
[![asciicast](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah.png)](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah)
5860

5961
# Quick Start
6062
To run golangci-lint execute:

README.md.tmpl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
99

1010
<a href="https://golangci.com/"><img src="docs/go.png" width="250px"></a>
1111

12-
* [Install](#install)
1312
* [Demo](#demo)
13+
* [Install](#install)
1414
* [Quick Start](#quick-start)
1515
* [Comparison](#comparison)
1616
* [<code>golangci-lint</code> vs <code>gometalinter</code>](#golangci-lint-vs-gometalinter)
@@ -31,6 +31,14 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
3131
* [Future Plans](#future-plans)
3232
* [Contact Information](#contact-information)
3333

34+
# Demo
35+
<p align="center">
36+
<img src="./docs/demo.svg" width="100%">
37+
</p>
38+
39+
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
40+
[![asciicast](https://asciinema.org/a/183662.png)](https://asciinema.org/a/183662)
41+
3442
# Install
3543
Recommended way to install is:
3644
```bash
@@ -49,12 +57,6 @@ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
4957

5058
Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version.
5159

52-
# Demo
53-
Example of output:
54-
![Screenshot of sample output](docs/run_screenshot.png)
55-
56-
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
57-
[![asciicast](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah.png)](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah)
5860

5961
# Quick Start
6062
To run golangci-lint execute:

docs/demo.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/run_screenshot.png

-220 KB
Binary file not shown.

0 commit comments

Comments
 (0)