generated from hashicorp/terraform-provider-scaffolding-framework
-
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.
Add initial project setup and features (#2)
* Initial * Implement data source and function Signed-off-by: Kim Oliver Drechsel <[email protected]> * Add missing docs Signed-off-by: Kim Oliver Drechsel <[email protected]> * go mod tidy Signed-off-by: Kim Oliver Drechsel <[email protected]> * Adjust naming Signed-off-by: Kim Oliver Drechsel <[email protected]> * Update README.md Signed-off-by: Kim Oliver Drechsel <[email protected]> * Adjust README.md * Adjust code * Remove test terraform * Add addition check to test automatic type conversion from string to int * Add example for addition to function * Adjust workflows and github stuff * Fix typos --------- Signed-off-by: Kim Oliver Drechsel <[email protected]>
- Loading branch information
Showing
46 changed files
with
696 additions
and
755 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 160 | ||
|
||
[*.tf] | ||
max_line_length = off | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.go] | ||
indent_size = tab | ||
indent_style = tab | ||
ij_go_group_stdlib_imports = true | ||
ij_go_import_sorting = goimports | ||
ij_go_move_all_imports_in_one_declaration = true | ||
ij_go_move_all_stdlib_imports_in_one_group = true | ||
ij_go_remove_redundant_import_aliases = true | ||
ij_go_run_go_fmt_on_reformat = true | ||
|
||
[*.{yaml,yml}] | ||
indent_size = 2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
changelog: | ||
categories: | ||
- title: 🚨 Breaking Changes | ||
labels: | ||
- Kind/Breaking | ||
- title: ✨ Features | ||
labels: | ||
- Kind/Feature | ||
- title: 🐛 Bug Fixes and Security | ||
labels: | ||
- Kind/Bug | ||
- Kind/Security | ||
- title: 🌟 Improvements | ||
labels: | ||
- Kind/Enhancement | ||
- title: 📦 Dependencies | ||
labels: | ||
- Kind/Dependency | ||
- title: 📚 Miscellaneous | ||
labels: | ||
- "*" | ||
exclude_labels: | ||
- Kind/Breaking | ||
- Kind/Feature | ||
- Kind/Bug | ||
- Kind/Security | ||
- Kind/Enhancement | ||
- Kind/Dependency |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
name: Spell checking | ||
|
||
# Trigger on pull requests, and pushes to master branch. | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
codespell: | ||
name: Check for spelling errors | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | ||
- uses: codespell-project/actions-codespell@master | ||
with: | ||
check_filenames: true | ||
# When using this Action in other repos, the --skip option below can be removed | ||
skip: ./.git,go.mod,go.sum | ||
ignore_words_list: AtLeast,AtMost |
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 |
---|---|---|
@@ -1,27 +1,74 @@ | ||
# yaml-language-server: $schema: https://golangci-lint.run/jsonschema/golangci.jsonschema.json | ||
|
||
# Visit https://golangci-lint.run/ for usage documentation | ||
# and information on other useful linters | ||
issues: | ||
max-per-linter: 0 | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- funlen | ||
- dupword | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- asciicheck | ||
- contextcheck | ||
- durationcheck | ||
- dupword | ||
- errcheck | ||
- exportloopref | ||
- forcetypeassert | ||
- forbidigo | ||
- gci | ||
- gochecknoglobals | ||
- gocheckcompilerdirectives | ||
- gochecknoinits | ||
- gocognit | ||
- gocritic | ||
- godot | ||
- gofmt | ||
- gofumpt | ||
- goimports | ||
- gomoddirectives | ||
- gosimple | ||
- gosec | ||
- govet | ||
- ineffassign | ||
- lll | ||
- makezero | ||
- misspell | ||
- mirror | ||
- nilerr | ||
- nlreturn | ||
- noctx | ||
- nolintlint | ||
- nonamedreturns | ||
- prealloc | ||
- perfsprint | ||
- predeclared | ||
- staticcheck | ||
- tagalign | ||
- tagliatelle | ||
- tenv | ||
- testifylint | ||
- unconvert | ||
- unparam | ||
- unused | ||
- vet | ||
- wastedassign | ||
- wsl | ||
- wrapcheck | ||
|
||
linters-settings: | ||
lll: | ||
line-length: 160 | ||
tab-width: 4 | ||
|
||
tagliatelle: | ||
case: | ||
use-field-name: true | ||
rules: | ||
json: snake | ||
tfsdk: snake |
Oops, something went wrong.