Eagles-DevOps / MiniTwit

2 stars 1 forks source link

Added linters #231

Closed Romes8 closed 4 months ago

Romes8 commented 4 months ago

Added 3 linters as we needed to have:

  1. golangci-lint --> analyzes your Go source code and reports various issues, bugs, and style violations. It combines the functionality of multiple linters into a single tool
  2. Hadolint --> identify common issues and potential vulnerabilities in Dockerfile syntax and construction
  3. GoVet --> static analysis tool that helps identify common mistakes and potential bugs in Go programs

Action will always end as successful ( this way all the linters can do its job ) so for errors please check the logs of the steps. I am also not adding this to CI/CD pipeline since it will fail almost all the time due to error linters find. Error that we are getting now are more "cosmetic" and do not affect the app as itself. We can run linters manually to check for the app state.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud