added make targets for lint, integration-tests, license-check(the copyright check), test, and ci (runs all tests) to make it possible to run all CI actions locally. This speeds up dev cycle to find issues Github Actions will find
added linters
errcheck # checking for unchecked errors, these unchecked errors can be critical bugs in some cases
gosimple # specializes in simplifying a code
govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
ineffassign # detects when assignments to existing variables are not used
staticcheck # is a go vet on steroids, applying a ton of static analysis checks
typecheck # like the front-end of a Go compiler, parses and type-checks Go code
unused # checks for unused constants, variables, functions and types
fixed issues the linters found
Check the error for any function that returns an error
Clean up some unit-tests
Simplify if statements
Sort imports
Remove duplicate iohandler files
added CI action for listing
added a CONTRIBUTING.md and instructions on how to setup dev environment
Changes
make
targets forlint
,integration-tests
,license-check
(the copyright check),test
, andci
(runs all tests) to make it possible to run all CI actions locally. This speeds up dev cycle to find issues Github Actions will findCONTRIBUTING.md
and instructions on how to setup dev environment