-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
146 additions
and
27 deletions.
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,16 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 8 | ||
|
||
[{*.yml,*.yaml}] | ||
indent_style = space | ||
indent_size = 2 |
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,3 @@ | ||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
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 @@ | ||
* @yoanm |
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: / | ||
schedule: | ||
interval: monthly |
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
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,69 @@ | ||
# Based on that awesome makefile https://github.com/dunglas/symfony-docker/blob/main/docs/makefile.md#the-template | ||
|
||
.DEFAULT_GOAL = default | ||
|
||
.PHONY: default | ||
default: build | ||
|
||
##—— 📚 Help —————————————————————————————————————————————————————————————— | ||
.PHONY: help | ||
help: ## ❓ Dislay this help | ||
@grep -E '(^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) \ | ||
| awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' \ | ||
| sed -e 's/\[32m##——————————/[33m /' \ | ||
| sed -e 's/\[32m##——/[33m ——/' \ | ||
| sed -e 's/\[32m####/[34m /' \ | ||
| sed -e 's/\[32m###/[36m /' \ | ||
| sed -e 's/\[32m##\?/[35m /' \ | ||
| sed -e 's/\[32m##/[33m/' | ||
|
||
##—— ️⚙️ Environments —————————————————————————————————————————————————————— | ||
.PHONY: configure-test-env | ||
configure-test-env: ## 🤖 Install required libraries for test environment (golint, staticcheck, etc) | ||
configure-test-env: | ||
go install golang.org/x/lint/golint@latest | ||
go install honnef.co/go/tools/cmd/staticcheck@latest | ||
|
||
|
||
##—— 🐹 Golang ————————————————————————————————————————————————— | ||
.PHONY: build | ||
build: ## 🗜️ Build package | ||
#### Use build_o="..." to specify build options | ||
$(eval build_o ?=) | ||
build: | ||
go build -v $(build_o) | ||
|
||
.PHONY: verify | ||
verify: ## 🗜️ Verify dependencies | ||
verify: | ||
go mod verify | ||
|
||
|
||
##—— 🧪️ Tests ————————————————————————————————————————————————————————————— | ||
.PHONY: test | ||
test: ## 🏃 Launch all tests | ||
test: test-vet test-lint test-staticcheck test-go | ||
|
||
test-go: ## 🏃 Launch go test | ||
#### Use gotest_o="..." to specify options | ||
$(eval gotest_o ?=) | ||
test-go: | ||
go test -v $(gotest_o) ./... | ||
|
||
test-vet: ## 🏃 Launch go vet | ||
#### Use vet_o="..." to specify options | ||
$(eval vet_o ?=) | ||
test-vet: | ||
go vet $(vet_o) ./... | ||
|
||
test-lint: ## 🏃 Launch go lint | ||
#### Use lint_o="..." to specify options (-set_exit_status for instance) | ||
$(eval lint_o ?=) | ||
test-lint: | ||
golint $(lint_o) ./... | ||
|
||
test-staticcheck: ## 🏃 Launch staticcheck | ||
#### Use staticcheck_o="..." to specify options | ||
$(eval staticcheck_o ?=) | ||
test-staticcheck: | ||
staticcheck $(staticcheck_o) ./... |
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 |
---|---|---|
@@ -1,14 +1,22 @@ | ||
# go-tfsig | ||
# go-tfsig - hclwrite wrapper | ||
|
||
[![License](https://img.shields.io/github/license/yoanm/go-tfsig.svg)](https://github.com/yoanm/go-tfsig) | ||
[![Code size](https://img.shields.io/github/languages/code-size/yoanm/go-tfsig.svg)](https://github.com/yoanm/go-tfsig) | ||
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github\&repo=yoanm/go-tfsig)](https://dependabot.com) | ||
[![Go Reference](https://pkg.go.dev/badge/github.com/yoanm/go-tfsig.svg)](https://pkg.go.dev/github.com/yoanm/go-tfsig) | ||
|
||
![Dependabot Status](https://flat.badgen.net/github/dependabot/yoanm/go-tfsig) | ||
![Last commit](https://badgen.net/github/last-commit/yoanm/go-tfsig) | ||
|
||
[![Scrutinizer Build Status](https://img.shields.io/scrutinizer/build/g/yoanm/go-tfsig.svg?label=Scrutinizer\&logo=scrutinizer)](https://scrutinizer-ci.com/g/yoanm/go-tfsig/build-status/master) | ||
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/yoanm/go-tfsig/master.svg?logo=scrutinizer)](https://scrutinizer-ci.com/g/yoanm/go-tfsig/?branch=master) | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e1ceed2c5fa24691b3735a7c4b7a73a0)](https://www.codacy.com/gh/yoanm/go-tfsig/dashboard?utm_source=github.com&utm_medium=referral&utm_content=yoanm/go-tfsig&utm_campaign=Badge_Grade) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/yoanm/go-tfsig?)](https://goreportcard.com/report/github.com/yoanm/go-tfsig) | ||
|
||
[![CI](https://github.com/yoanm/go-tfsig/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/yoanm/go-tfsig/actions/workflows/CI.yml) | ||
[![codecov](https://codecov.io/gh/yoanm/go-tfsig/branch/master/graph/badge.svg?token=NHdwEBUFK5)](https://codecov.io/gh/yoanm/go-tfsig) | ||
|
||
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/yoanm/go-tfsig) | ||
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/yoanm/go-tfsig) | ||
|
||
Wrapper for Terraform HCL language (hclwrite) | ||
|
||
Generate block **signatures** which are easier to manipulate and alter than hclwrite tokens |
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
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
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
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,12 @@ | ||
coverage: | ||
range: "80...100" | ||
|
||
flags: | ||
nightly: | ||
joined: false | ||
|
||
comment: | ||
show_carryforward_flags: true | ||
|
||
github_checks: | ||
annotations: true |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/yoanm/tfsig | ||
module github.com/yoanm/go-tfsig | ||
|
||
go 1.18 | ||
|
||
|
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
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
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
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
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