mattermost/mattermost

Fix all initialism errors in the codebase

Open

#16,623 opened on Jan 4, 2021

View on GitHub
 (27 comments) (0 reactions) (1 assignee)TypeScript (7,823 forks)batch import
Difficulty/1:EasyGood First IssueHacktoberfestHelp WantedTech/Go

Repository metrics

Stars
 (32,880 stars)
PR merge metrics
 (Avg merge 6d 5h) (318 merged PRs in 30d)

Description

Summary

This ticket is about fixing any variable naming issues that do not follow the initialism convention as laid out in: https://github.com/golang/go/wiki/CodeReviewComments#initialisms.

The way to go about it would be to make the following change to .golangci.yml

diff --git a/.golangci.yml b/.golangci.yml
index 29d9a4622..662931923 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -49,7 +49,7 @@ issues:
 
     - linters:
       - golint
-      text: "should have|should be|should replace|stutters|underscore|annoying|error strings should not be capitalized"
+      text: "should replace|stutters|underscore|annoying|error strings should not be capitalized"
 
     - linters:
       - golint      

And then fix all issues that arise until make golangci-lint passes with no errors.

Contributor guide