ci: Add linting

Add linting using both pre-commit and golangci-lint.

Bug: T363529

Merge request reports

Loading