add svg demo

This commit is contained in:
golangci 2018-06-02 14:04:54 +03:00
parent efc97a374a
commit d4d2697f8a
7 changed files with 30 additions and 16 deletions

View File

@ -43,7 +43,7 @@ changelog:
exclude: exclude:
- '^docs:' - '^docs:'
- '^test:' - '^test:'
- 'README.md' - 'README'
- Merge pull request - Merge pull request
- Merge branch - Merge branch

View File

@ -3,7 +3,7 @@ language: go
go: go:
- 1.9.x - 1.9.x
- 1.10.x - 1.10.x
script: make test script: make check_generated test
after_success: after_success:
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"

View File

@ -7,4 +7,13 @@ test:
golangci-lint run --fast --no-config -v ./test/testdata/typecheck.go golangci-lint run --fast --no-config -v ./test/testdata/typecheck.go
go test -v -race ./... go test -v -race ./...
assets:
svg-term --cast=183662 --out docs/demo.svg --window --width 110 --height 30 --from 2000 --to 20000 --profile Dracula --term iterm2
readme:
go run ./scripts/gen_readme/main.go
check_generated:
make readme && git diff --exit-code # check no changes
.PHONY: test .PHONY: test

View File

@ -9,8 +9,8 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
<a href="https://golangci.com/"><img src="docs/go.png" width="250px"></a> <a href="https://golangci.com/"><img src="docs/go.png" width="250px"></a>
* [Install](#install)
* [Demo](#demo) * [Demo](#demo)
* [Install](#install)
* [Quick Start](#quick-start) * [Quick Start](#quick-start)
* [Comparison](#comparison) * [Comparison](#comparison)
* [<code>golangci-lint</code> vs <code>gometalinter</code>](#golangci-lint-vs-gometalinter) * [<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
* [Future Plans](#future-plans) * [Future Plans](#future-plans)
* [Contact Information](#contact-information) * [Contact Information](#contact-information)
# Demo
<p align="center">
<img src="./docs/demo.svg" width="100%">
</p>
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
[![asciicast](https://asciinema.org/a/183662.png)](https://asciinema.org/a/183662)
# Install # Install
Recommended way to install is: Recommended way to install is:
```bash ```bash
@ -49,12 +57,6 @@ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version. Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version.
# Demo
Example of output:
![Screenshot of sample output](docs/run_screenshot.png)
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
[![asciicast](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah.png)](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah)
# Quick Start # Quick Start
To run golangci-lint execute: To run golangci-lint execute:

View File

@ -9,8 +9,8 @@ Sponsored by [GolangCI.com](https://golangci.com): SaaS service for running lint
<a href="https://golangci.com/"><img src="docs/go.png" width="250px"></a> <a href="https://golangci.com/"><img src="docs/go.png" width="250px"></a>
* [Install](#install)
* [Demo](#demo) * [Demo](#demo)
* [Install](#install)
* [Quick Start](#quick-start) * [Quick Start](#quick-start)
* [Comparison](#comparison) * [Comparison](#comparison)
* [<code>golangci-lint</code> vs <code>gometalinter</code>](#golangci-lint-vs-gometalinter) * [<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
* [Future Plans](#future-plans) * [Future Plans](#future-plans)
* [Contact Information](#contact-information) * [Contact Information](#contact-information)
# Demo
<p align="center">
<img src="./docs/demo.svg" width="100%">
</p>
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
[![asciicast](https://asciinema.org/a/183662.png)](https://asciinema.org/a/183662)
# Install # Install
Recommended way to install is: Recommended way to install is:
```bash ```bash
@ -49,12 +57,6 @@ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version. Check the [releases page](https://github.com/golangci/golangci-lint/releases) to fix the version.
# Demo
Example of output:
![Screenshot of sample output](docs/run_screenshot.png)
Short 1.5 min video demo of analyzing [beego](https://github.com/astaxie/beego).
[![asciicast](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah.png)](https://asciinema.org/a/1a1qaEXMlOSeRyvASbnuFomah)
# Quick Start # Quick Start
To run golangci-lint execute: To run golangci-lint execute:

1
docs/demo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 KiB