This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from suzuki-shunsuke/feat/first-pr
Feat/first pr
- Loading branch information
Showing
205 changed files
with
17,664 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
vendor | ||
example | ||
coverage.txt | ||
coverage | ||
node_modules | ||
*.log | ||
graylog-mock-server | ||
dist | ||
docker-compose.yml | ||
env.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"DisableAll": true, | ||
"Enable": [ | ||
"vet", | ||
"nakedret", | ||
"misspell", | ||
"gosimple", | ||
"unused", | ||
"maligned", | ||
"interfacer", | ||
"unconvert", | ||
"goimports", | ||
"gofmt", | ||
|
||
"varcheck", | ||
"structcheck", | ||
"goconst" | ||
], | ||
"Vendor": true, | ||
"Deadline": "300s" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
language: go | ||
go: | ||
- 1.x | ||
before_install: | ||
- node -v | ||
- npm -v | ||
install: | ||
- npm install | ||
- go get -t ./... | ||
- go get -u gopkg.in/alecthomas/gometalinter.v2 | ||
- ln -s $GOPATH/bin/gometalinter.v2 $GOPATH/bin/gometalinter | ||
- gometalinter --install | ||
script: | ||
- npm run commitlint-travis | ||
- npm run lint | ||
- bash codecov-test.sh | ||
after_success: | ||
- bash codecov.sh | ||
- bash upload.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Contributing | ||
|
||
## Requirements | ||
|
||
* [npm](https://www.npmjs.com/): to validate a commit message and generate the Change Log | ||
* [Golang](https://golang.org/) | ||
* [dep](https://golang.github.io/dep/) | ||
* [gometalinter](https://github.com/alecthomas/gometalinter) | ||
|
||
``` | ||
$ npm i | ||
``` | ||
|
||
## Test | ||
|
||
``` | ||
$ npm t | ||
``` | ||
|
||
## Commit Message Format | ||
|
||
The commit message format of this project conforms to the [AngularJS Commit Message Format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format). | ||
By conforming its format, we can generate the [Change Log](CHANGELOG.md) and conform the [semantic versioning](http://semver.org/) automatically by [standard-version](https://www.npmjs.com/package/standard-version). | ||
We validate the commit message with git's `commit-msg` hook using [commitlint](http://marionebl.github.io/commitlint/#/) and [husky](https://www.npmjs.com/package/husky). | ||
|
||
## Coding Guide | ||
|
||
* https://github.com/golang/go/wiki/CodeReviewComments | ||
* https://github.com/alecthomas/gometalinter | ||
|
||
``` | ||
$ go get -u github.com/alecthomas/gometalinter | ||
$ gometalinter --install | ||
``` | ||
|
||
``` | ||
$ npm run lint | ||
``` | ||
|
||
## docker-compose.yml | ||
|
||
To run graylog using docker for development, we prepare the template of `docker-compose.yml`. | ||
|
||
|
||
``` | ||
$ cp docker-compose.yml.tmpl docker-compose.yml | ||
$ docker-compose up -d | ||
``` | ||
|
||
## env.sh | ||
|
||
To set environment variables for development, we prepare the template of `setenv.sh` . | ||
|
||
``` | ||
$ cp env.sh.tmpl env.sh | ||
``` | ||
|
||
## Develop terraform provider | ||
|
||
* https://www.terraform.io/docs/plugins/provider.html | ||
* https://www.terraform.io/guides/writing-custom-terraform-providers.html | ||
* https://godoc.org/github.com/hashicorp/terraform/helper/schema | ||
* https://godoc.org/github.com/hashicorp/terraform/helper/resource#TestCase |
Oops, something went wrong.