rolling-shutter icon indicating copy to clipboard operation
rolling-shutter copied to clipboard

Introduce consistent line-length code formatter in pre-commit hook

Open ezdac opened this issue 2 years ago • 2 comments

The gofmt (and gofumpt) code formatter do not want to enforce a particular line length. However, I think we should introduce this for our project as a pre-commit hook. There is golines, which defaults to a maximum of 100 columns per line, but is configurable.

Are there any other opinions about this?

ezdac avatar Aug 18 '23 14:08 ezdac

#396 uses the golines-gofumpt hook with 120 characters line length limit

schmir avatar Aug 22 '23 12:08 schmir

golanci-lint enforces a line length limit, but we only run it in CI (via make lint-changes) not as a pre-commit hook.

jannikluhn avatar May 29 '24 08:05 jannikluhn