Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jscpd and golangci linters
Browse files Browse the repository at this point in the history
Fix jscpd and golangci linters
lukasbudisky committed Jan 1, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent b091006 commit 5323d60
Showing 7 changed files with 8 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -21,5 +21,4 @@ jobs:
VALIDATE_ALL_CODEBASE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JSCPD_CONFIG_FILE: .jscpd.json
VALIDATE_GO: false # temporary disabled because of bugs
VALIDATE_JSCPD: false # temporary disabled because of bugs

3 changes: 0 additions & 3 deletions .golangci.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ before:
hooks:
- go mod tidy
builds:
- env:
- env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
@@ -25,8 +25,8 @@ builds:
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
2 changes: 1 addition & 1 deletion .jscpd.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"threshold": 20.0
"threshold": 20
}
1 change: 0 additions & 1 deletion .yamllint
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ignore: |
.github
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -73,4 +73,4 @@ cbdown:
linters:
find . -name "*.sh" | xargs shellcheck -s bash
yamllint -c .yamllint .
golint ./...
golangci-lint run ./...
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ Terraform provider for Couchbase allow manage resources in couchbase cluster
## Requirements
- terraform 1.4.0
- go 1.21 (for plugin build)
- docker-compose v2.15.1
- docker desktop 4.17.0
- docker-compose v2.21.0-desktop.1
- docker desktop 4.23.0

## Run couchbase on localhost
In terraform_example folder is docker-compose.yml with couchbase server.

0 comments on commit 5323d60

Please sign in to comment.