-
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
1 parent
d705897
commit 4cc1fe9
Showing
7 changed files
with
143 additions
and
0 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,9 @@ | ||
--- | ||
name: Bug report | ||
about: Create a bug report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
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,9 @@ | ||
--- | ||
name: Feature request | ||
about: "Suggest an idea for this project" | ||
title: '' | ||
labels: proposal | ||
assignees: '' | ||
|
||
--- | ||
|
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 @@ | ||
### Description | ||
Describe your work here. | ||
|
||
### Scope | ||
> What is affected by this pull request? | ||
- [ ] Bug Fix | ||
- [ ] New Feature | ||
- [ ] Documentation | ||
- [ ] Other | ||
|
||
### Related Issue | ||
Fixes # | ||
|
||
|
||
### To-Do Checklist | ||
- [ ] I tested my changes | ||
- [ ] I have commented every method that I created/changed | ||
- [ ] I updated the examples to fit with my changes | ||
- [ ] I have added tests for my newly created methods |
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 @@ | ||
|
||
on: | ||
pull_request_target: | ||
types: [ opened, edited ] | ||
name: conventional-release-labels | ||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bcoe/conventional-release-labels@v1 |
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,13 @@ | ||
name: golangci-lint | ||
on: [ push, pull_request ] | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
version: v1.43 |
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,79 @@ | ||
linters-settings: | ||
goimports: | ||
local-prefixes: github.com/KarolosLykos/cli-template | ||
gocyclo: | ||
min-complexity: 15 | ||
govet: | ||
check-shadowing: true | ||
stylecheck: | ||
checks: ["all", "-ST1006"] | ||
misspell: | ||
locale: US,UK | ||
nolintlint: | ||
allow-leading-space: false # require machine-readable nolint directives (with no leading space) | ||
allow-unused: false # report any unused nolint directives | ||
require-explanation: true # require an explanation for nolint directives | ||
require-specific: false # don't require nolint directives to be specific about which linter is being skipped | ||
|
||
linters: | ||
# please, do not use `enable-all`: it's deprecated and will be removed soon. | ||
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint | ||
disable-all: true | ||
enable: | ||
- deadcode | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- structcheck | ||
- typecheck | ||
- unused | ||
- varcheck | ||
- bodyclose | ||
- depguard | ||
- dupl | ||
- exportloopref | ||
- forcetypeassert | ||
- funlen | ||
- gci | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- godot | ||
- gofumpt | ||
- gomnd | ||
- goprintffuncname | ||
- gosec | ||
- ifshort | ||
- misspell | ||
- noctx | ||
- nolintlint | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- stylecheck | ||
- thelper | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- whitespace | ||
# - errorlint | ||
# - goerr113 | ||
# - wrapcheck | ||
issues: | ||
# Excluding configuration per-path, per-linter, per-text and per-source | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
- gocritic | ||
- linters: | ||
- gocritic | ||
text: "unnecessaryDefer:" | ||
|
||
service: | ||
golangci-lint-version: 1.43.x # use the fixed version to not introduce new linters unexpectedly |
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