Skip to content

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

Notifications You must be signed in to change notification settings

cp-dharti-r/devops-golang-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages