Refactor long functions
There are a few long functions that should be refactored and broken up into more readable sections.
By default, the funlen linter has a limit of 60 lines or 40 statements per function. It is the goal to adhere to these standards.
Currently, the funlen linter in this repo is disabled, this should be enabled as part of this issue. It can be enabled by adding it to the enable section of the .golanci.yaml config file.
To Do
Update deprecated libraries
The staticcheck linter checks for deprecated imports. This has been disabled for imports of webpa-common/v2/logging, but should be enabled as part of this ticket. A new logger will need to be added.
To Do
copy & paste from xmidt-org/go-parodus#25
Refactor long functions
There are a few long functions that should be refactored and broken up into more readable sections.
By default, the
funlenlinter has a limit of 60 lines or 40 statements per function. It is the goal to adhere to these standards.Currently, the
funlenlinter in this repo is disabled, this should be enabled as part of this issue. It can be enabled by adding it to theenablesection of the.golanci.yamlconfig file.To Do
funlenlinter in the.golanci.yamlconfig filegolangci-lint runUpdate deprecated libraries
The
staticchecklinter checks for deprecated imports. This has been disabled for imports ofwebpa-common/v2/logging, but should be enabled as part of this ticket. A new logger will need to be added.To Do
nolint:staticcheckin the repo and remove the commentsgolangci-lint run