feat(rename): rename teslastock_sdk to teslainventory_sdk

This commit is contained in:
Matthieu 'JP' DERASSE 2023-08-12 19:45:19 +00:00
parent 5210a53401
commit a5bf04816e
Signed by: mderasse
GPG Key ID: 55141C777B16A705
10 changed files with 22 additions and 23 deletions

View File

@ -9,7 +9,7 @@ platform:
steps: steps:
- name: environment - name: environment
image: golang:1.19 image: golang:1.21
commands: commands:
- go version - go version
- go env - go env
@ -18,9 +18,9 @@ steps:
path: /go path: /go
- name: tools - name: tools
image: golang:1.19 image: golang:1.21
commands: commands:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.1
- go install github.com/tebeka/go2xunit@latest - go install github.com/tebeka/go2xunit@latest
- go install github.com/t-yuki/gocover-cobertura@latest - go install github.com/t-yuki/gocover-cobertura@latest
volumes: volumes:
@ -30,7 +30,7 @@ steps:
- environment - environment
- name: tidy - name: tidy
image: golang:1.19 image: golang:1.21
commands: commands:
- go mod tidy - go mod tidy
- git diff --exit-code -- go.mod go.sum - git diff --exit-code -- go.mod go.sum
@ -41,7 +41,7 @@ steps:
- tools - tools
- name: lint - name: lint
image: golang:1.19 image: golang:1.21
commands: commands:
- echo 'Running linting' - echo 'Running linting'
- golangci-lint run - golangci-lint run
@ -52,7 +52,7 @@ steps:
- tools - tools
- name: test - name: test
image: golang:1.19 image: golang:1.21
commands: commands:
- go test -cover -v ./... - go test -cover -v ./...
volumes: volumes:

View File

@ -62,7 +62,7 @@ linters:
- bodyclose # checks whether HTTP response body is closed successfully - bodyclose # checks whether HTTP response body is closed successfully
- containedctx - containedctx
- decorder - decorder
- depguard #- depguard
- dupl # tool for code clone detection - dupl # tool for code clone detection
- durationcheck # check for two durations multiplied together - durationcheck # check for two durations multiplied together
- errcheck # checking for unchecked errors in go programs - errcheck # checking for unchecked errors in go programs
@ -91,8 +91,7 @@ linters:
- nolintlint # reports ill-formed or insufficient nolint directives - nolintlint # reports ill-formed or insufficient nolint directives
- nonamedreturns - nonamedreturns
- prealloc # finds slice declarations that could potentially be preallocated - prealloc # finds slice declarations that could potentially be preallocated
# Disable has we have a lot of enum. TODO: find a better way - revive
# - revive
# Disable because of generic - sqlclosecheck # Disable because of generic - sqlclosecheck
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks - staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- stylecheck # a replacement for golint - stylecheck # a replacement for golint
@ -154,7 +153,7 @@ linters-settings:
gosimple: gosimple:
# Select the Go version to target. The default is '1.13'. # Select the Go version to target. The default is '1.13'.
go: "1.20.7" go: "1.21.0"
misspell: misspell:
# Correct spellings using locale preferences for US or UK. # Correct spellings using locale preferences for US or UK.
@ -189,13 +188,13 @@ linters-settings:
staticcheck: staticcheck:
# Select the Go version to target. The default is '1.13'. # Select the Go version to target. The default is '1.13'.
go: "1.20.7" go: "1.21.0"
# https://staticcheck.io/docs/options#checks # https://staticcheck.io/docs/options#checks
checks: ["all"] checks: ["all"]
stylecheck: stylecheck:
# Select the Go version to target. The default is '1.13'. # Select the Go version to target. The default is '1.13'.
go: "1.20.7" go: "1.21.0"
checks: ["all"] checks: ["all"]
unparam: unparam:
@ -207,4 +206,4 @@ linters-settings:
unused: unused:
# Select the Go version to target. The default is '1.13'. # Select the Go version to target. The default is '1.13'.
go: "1.18.5" go: "1.21.0"

View File

@ -1,3 +1,3 @@
# Tesla Stock Sdk # Tesla Inventory Sdk
[![Build Status](https://drone.dev.m-and-m.ovh/api/badges/mderasse/teslastock_sdk/status.svg?ref=refs/heads/main)](https://drone.dev.m-and-m.ovh/mderasse/teslastock_sdk) [![Build Status](https://drone.dev.m-and-m.ovh/api/badges/mderasse/teslainventory_sdk/status.svg?ref=refs/heads/main)](https://drone.dev.m-and-m.ovh/mderasse/teslainventory_sdk)

View File

@ -1,4 +1,4 @@
package teslastocksdk package teslainventory_sdk
import ( import (
"bytes" "bytes"

View File

@ -1,4 +1,4 @@
package teslastocksdk package teslainventory_sdk
// ClientOptions allows for options to be passed into the Client for customization. // ClientOptions allows for options to be passed into the Client for customization.
type ClientOptions func(*Client) type ClientOptions func(*Client)

View File

@ -1,4 +1,4 @@
package teslastocksdk package teslainventory_sdk
const ( const (
// Version is the current version of the sdk. // Version is the current version of the sdk.

View File

@ -1,4 +1,4 @@
package teslastocksdk package teslainventory_sdk
import "fmt" import "fmt"

4
go.mod
View File

@ -1,3 +1,3 @@
module git.dev.m-and-m.ovh/mderasse/teslastock_sdk module git.dev.m-and-m.ovh/mderasse/teslainventory_sdk
go 1.19 go 1.21

View File

@ -1,4 +1,4 @@
package teslastocksdk package teslainventory_sdk
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package teslastocksdk package teslainventory_sdk
import "time" import "time"