feat(rename): rename teslastock_sdk to teslainventory_sdk
This commit is contained in:
parent
5210a53401
commit
a5bf04816e
12
.drone.yml
12
.drone.yml
@ -9,7 +9,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: environment
|
||||
image: golang:1.19
|
||||
image: golang:1.21
|
||||
commands:
|
||||
- go version
|
||||
- go env
|
||||
@ -18,9 +18,9 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: tools
|
||||
image: golang:1.19
|
||||
image: golang:1.21
|
||||
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/t-yuki/gocover-cobertura@latest
|
||||
volumes:
|
||||
@ -30,7 +30,7 @@ steps:
|
||||
- environment
|
||||
|
||||
- name: tidy
|
||||
image: golang:1.19
|
||||
image: golang:1.21
|
||||
commands:
|
||||
- go mod tidy
|
||||
- git diff --exit-code -- go.mod go.sum
|
||||
@ -41,7 +41,7 @@ steps:
|
||||
- tools
|
||||
|
||||
- name: lint
|
||||
image: golang:1.19
|
||||
image: golang:1.21
|
||||
commands:
|
||||
- echo 'Running linting'
|
||||
- golangci-lint run
|
||||
@ -52,7 +52,7 @@ steps:
|
||||
- tools
|
||||
|
||||
- name: test
|
||||
image: golang:1.19
|
||||
image: golang:1.21
|
||||
commands:
|
||||
- go test -cover -v ./...
|
||||
volumes:
|
||||
|
@ -62,7 +62,7 @@ linters:
|
||||
- bodyclose # checks whether HTTP response body is closed successfully
|
||||
- containedctx
|
||||
- decorder
|
||||
- depguard
|
||||
#- depguard
|
||||
- dupl # tool for code clone detection
|
||||
- durationcheck # check for two durations multiplied together
|
||||
- errcheck # checking for unchecked errors in go programs
|
||||
@ -91,8 +91,7 @@ linters:
|
||||
- nolintlint # reports ill-formed or insufficient nolint directives
|
||||
- nonamedreturns
|
||||
- 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
|
||||
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
|
||||
- stylecheck # a replacement for golint
|
||||
@ -154,7 +153,7 @@ linters-settings:
|
||||
|
||||
gosimple:
|
||||
# Select the Go version to target. The default is '1.13'.
|
||||
go: "1.20.7"
|
||||
go: "1.21.0"
|
||||
|
||||
misspell:
|
||||
# Correct spellings using locale preferences for US or UK.
|
||||
@ -189,13 +188,13 @@ linters-settings:
|
||||
|
||||
staticcheck:
|
||||
# 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
|
||||
checks: ["all"]
|
||||
|
||||
stylecheck:
|
||||
# Select the Go version to target. The default is '1.13'.
|
||||
go: "1.20.7"
|
||||
go: "1.21.0"
|
||||
checks: ["all"]
|
||||
|
||||
unparam:
|
||||
@ -207,4 +206,4 @@ linters-settings:
|
||||
|
||||
unused:
|
||||
# Select the Go version to target. The default is '1.13'.
|
||||
go: "1.18.5"
|
||||
go: "1.21.0"
|
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package teslastocksdk
|
||||
package teslainventory_sdk
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package teslastocksdk
|
||||
package teslainventory_sdk
|
||||
|
||||
// ClientOptions allows for options to be passed into the Client for customization.
|
||||
type ClientOptions func(*Client)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package teslastocksdk
|
||||
package teslainventory_sdk
|
||||
|
||||
const (
|
||||
// Version is the current version of the sdk.
|
||||
|
4
go.mod
4
go.mod
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
package teslastocksdk
|
||||
package teslainventory_sdk
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package teslastocksdk
|
||||
package teslainventory_sdk
|
||||
|
||||
import "time"
|
||||
|
Loading…
Reference in New Issue
Block a user