This pull request includes several updates to dependencies, configuration files, and code improvements across multiple files. The most significant changes involve updating Go versions, modifying linting configurations, and improving code readability and consistency.
Dependency and Configuration Updates:
.circleci/config.yml: Updated Go version from 1.22 to 1.23 in the golang executor.
.github/workflows/golangci-lint.yml: Updated setup-go action to v5, checkout action to v4, and golangci-lint-action to v6. Changed Go version to stable.
This pull request includes several updates to dependencies, configuration files, and code improvements across multiple files. The most significant changes involve updating Go versions, modifying linting configurations, and improving code readability and consistency.
Dependency and Configuration Updates:
.circleci/config.yml
: Updated Go version from1.22
to1.23
in thegolang
executor..github/workflows/golangci-lint.yml
: Updatedsetup-go
action tov5
,checkout
action tov4
, andgolangci-lint-action
tov6
. Changed Go version tostable
..promu.yml
: Updated Go version from1.22
to1.23
.Linting and Formatting:
.golangci.yml
: Added several linters includinggofmt
,gofumpt
,goimports
,misspell
,revive
, andsloglint
.Code Improvements:
collector/bfd.go
andcollector/bfd_test.go
: Simplified variable declarations by removing unnecessary parentheses. [1] [2]collector/bgp.go
: Fixed typos and improved error logging by usingerr.Error()
. [1] [2] [3] [4] [5]collector/collector.go
: Renamedmetric_namespace
tometricNamespace
for consistency. Improved error logging by usingerr.Error()
. [1] [2] [3]frr_exporter.go
: Simplified the HTTP handler setup for Prometheus metrics. Removed redundant handler function. [1] [2]