chore(deps): update dependency golangci/golangci-lint to v1.56.1 (#87)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
renovate[bot] 2024-02-12 09:09:30 +01:00 committed by GitHub
parent 656f744c52
commit c6b5c9d03d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
# renovate: datasource=github-releases depName=mvdan/gofumpt
GOFUMPT_PACKAGE_VERSION := v0.6.0
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_PACKAGE_VERSION := v1.55.2
GOLANGCI_LINT_PACKAGE_VERSION := v1.56.1
EXECUTABLE := url-parser

View File

@ -99,7 +99,7 @@ func main() {
Action: command.Fragment(cfg),
},
},
Before: func(ctx *cli.Context) error {
Before: func(_ *cli.Context) error {
if cfg.URL == "" {
stat, _ := os.Stdin.Stat()
if (stat.Mode() & os.ModeCharDevice) == 0 {

View File

@ -9,7 +9,7 @@ import (
// Fragment prints out the fragment part from the url.
func Fragment(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
if len(parts.Scheme) > 0 {

View File

@ -9,7 +9,7 @@ import (
// Host prints out the host part from the url.
func Host(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
if len(parts.Scheme) > 0 {

View File

@ -9,7 +9,7 @@ import (
// Password prints out the password part from url.
func Password(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
if parts.User != nil {

View File

@ -23,7 +23,7 @@ func PathFlags(cfg *config.Config) []cli.Flag {
// Path prints out the path part from url.
func Path(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
i := cfg.PathIndex

View File

@ -9,7 +9,7 @@ import (
// Port prints out the port from the url.
func Port(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
if len(parts.Scheme) > 0 {

View File

@ -21,7 +21,7 @@ func QueryFlags(cfg *config.Config) []cli.Flag {
// Query prints out the query part from url.
func Query(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
f := cfg.QueryField

View File

@ -9,7 +9,7 @@ import (
// Run default command and print out full url.
func Run(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
if len(parts.String()) > 0 {

View File

@ -9,7 +9,7 @@ import (
// Scheme prints out the scheme part from the url.
func Scheme(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
if len(parts.Scheme) > 0 {

View File

@ -9,7 +9,7 @@ import (
// User prints out the user part from url.
func User(cfg *config.Config) cli.ActionFunc {
return func(ctx *cli.Context) error {
return func(_ *cli.Context) error {
parts := parseURL(cfg.URL)
if parts.User != nil {