An open API service indexing awesome lists of open source software.

https://github.com/cp-dharti-r/devops-golang-lint

Configured workflow for Linting, Formatting and the Pre-commit hook to run prettier before the commit
https://github.com/cp-dharti-r/devops-golang-lint

formatting golang golang-lint golint precommit-hooks

Last synced: 3 months ago
JSON representation

Configured workflow for Linting, Formatting and the Pre-commit hook to run prettier before the commit

Awesome Lists containing this project

README

        

# Linting Golang code

Configure workflow for Linting, Formatting and the Pre-commit hook to formate code before the commit

Performed things,

- Enforce naming conventions for files and folder names
- Enforce naming conventions for variables and function names
- Limit the line length to a maximum of 100 characters
- Limit the max 300 lines for files
- Limit the max 30 lines for functions
- Format code
- Ignore check in non-go files
- Write GitHub CI script to run lint
- Configure the Pre-commit hook to formate code before the commit
- Configure the script to run Lint as part of the CI/CD pipeline.
- Setup to runs the linting process on each commit.