CI
Travis CI is configured for this repository. Several tests and checks are started for all pull requests:
- Unit tests that use the standard tool
go test. go fmttool to check code formatting. That tool is run with-sflag to perform following transformationsgo vetto report likely mistakes in source code, for example suspicious constructs, such asPrintfcalls whose arguments do not align with the format string.golintas a linter for all Go sources stored in this repositorygocycloto report all functions and methods with too high cyclomatic complexity. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for eachif,for,case,&&or||Go Report Card warns on functions with cyclomatic complexity > 9goconstto find repeated strings that could be replaced by a constantgosecto inspect source code for security problems by scanning the Go ASTineffassignto detect and print all ineffectual assignments in Go codeerrcheckfor checking for all unchecked errors in go programsshellcheckto perform static analysis for all shell scripts used in this repositoryabcgoto measure ABC metrics for Go source code and check if the metrics does not exceed specified thresholdgolangci-lintas Go linters aggregator with lot of linters enabled: https://golangci-lint.run/usage/linters/- BDD tests that checks the overall Insights Results Aggregator behaviour.
Please note that all checks mentioned above have to pass for the change to be merged into master branch.
History of checks performed by CI is available at RedHatInsights / insights-results-aggregator.