Skip to content

Commit

Permalink
🔄 Synced file(s) with devnw/shared (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjivesterby committed Oct 20, 2021
1 parent dcee05d commit 14d22bd
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* benjivesterby
* @benjivesterby
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ko_fi: devnw
github: benjivesterby
2 changes: 1 addition & 1 deletion .github/workflows/auto_merge_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- uses: actions/checkout@v2.3.5
- uses: ahmadnassri/action-dependabot-auto-merge@v2.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GH_PAT }}
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: "Build"
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
go-version: [1.16.x, 1.17.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x
- name: Test
run: go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Push Coverage to codecov.io
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
CodeQL-Build:
strategy:
matrix:
go-version: [1.16.x]
go-version: [1.17.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x
- name: Build
run: go build ./...
- name: Test
Expand All @@ -29,7 +29,7 @@ jobs:
needs: [build]
strategy:
matrix:
go-version: [1.16.x]
go-version: [1.17.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}
Expand Down
28 changes: 0 additions & 28 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ linters-settings:
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:
- bodyclose
- deadcode
Expand All @@ -75,13 +72,11 @@ linters:
- errcheck
- exhaustive
- funlen
# - gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
# deprecated - golint
- revive
- gomnd
- goprintffuncname
Expand All @@ -95,7 +90,6 @@ linters:
- noctx
- nolintlint
- rowserrcheck
# deprecated - scopelint
- exportloopref
- staticcheck
- structcheck
Expand All @@ -107,21 +101,6 @@ linters:
- varcheck
- whitespace

# don't enable:
# - asciicheck
# - gochecknoglobals
# - gocognit
# - godot
# - godox
# - goerr113
# - interfacer
# - maligned
# - nestif
# - prealloc
# - testpackage
# - revive
# - wsl

issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
Expand All @@ -140,13 +119,6 @@ issues:
- gocritic
text: "unnecessaryDefer:"

# # TODO temporary rule, must be removed
# # seems related to v0.34.1, but I was not able to reproduce locally,
# # I was also not able to reproduce in the CI of a fork,
# # only the golangci-lint CI seems to be affected by this invalid analysis.
# - path: pkg/golinters/scopelint.go
# text: 'directive `//nolint:interfacer` is unused for linter interfacer'

# TODO temporary rule, must be removed
# related to https://github.com/golangci/golangci-lint/pull/1756
# must be replaced by '//nolint:staticcheck // require changes in github.com/OpenPeeDeeP/depguard'
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.

0 comments on commit 14d22bd

Please sign in to comment.