Showing 99 of 99 total issues
exported function HashPassword should have comment or be unexported Open
func HashPassword(password string) (string, error) {
- Exclude checks
exported type StructuredLogger should have comment or be unexported Open
type StructuredLogger struct {
- Exclude checks
exported function GetLogEntry should have comment or be unexported Open
func GetLogEntry(r *http.Request) logrus.FieldLogger {
- Exclude checks
exported var GrpcClient should have comment or be unexported Open
GrpcClient *grpc.ClientConn
- Exclude checks
Unordered list style Open
* Go
- Read upRead up
- Exclude checks
MD004 - Unordered list style
Tags: bullet, ul
Aliases: ul-style
Parameters: style ("consistent", "asterisk", "plus", "dash"; default "consistent")
This rule is triggered when the symbols used in the document for unordered list items do not match the configured unordered list style:
* Item 1
+ Item 2
- Item 3
To fix this issue, use the configured style for list items throughout the document:
* Item 1
* Item 2
* Item 3
Note: the configured list style can be a specific symbol to use (asterisk, plus, dash), or simply require that the usage be consistent within the document.
exported function GetConnClient should have comment or be unexported Open
func GetConnClient() *grpc.ClientConn {
- Exclude checks
don't use underscores in Go names; var is_err should be isErr Open
is_err := CheckUniqueUser(w, user)
- Exclude checks
Multiple consecutive blank lines Open
- Read upRead up
- Exclude checks
MD012 - Multiple consecutive blank lines
Tags: whitespace, blank_lines
Aliases: no-multiple-blanks
This rule is triggered when there are multiple consecutive blank lines in the document:
Some text here
Some more text here
To fix this, delete the offending lines:
Some text here
Some more text here
Note: this rule will not be triggered if there are multiple consecutive blank lines inside code blocks.
exported function Delete should have comment or be unexported Open
func Delete(w http.ResponseWriter, r *http.Request) {
- Exclude checks
var userId should be userID Open
userId := user.Id.Hex()
- Exclude checks
exported function Delete should have comment or be unexported Open
func Delete(token string) error {
- Exclude checks
exported function Getenv should have comment or be unexported Open
func Getenv(key, fallback string) string {
- Exclude checks
Trailing spaces Open
- Read upRead up
- Exclude checks
MD009 - Trailing spaces
Tags: whitespace
Aliases: no-trailing-spaces
Parameters: br_spaces (number; default: 0)
This rule is triggered on any lines that end with whitespace. To fix this, find the line that is triggered and remove any trailing spaces from the end.
The brspaces parameter allows an exception to this rule for a specific amount of trailing spaces used to insert an explicit line break/br element. For example, set brspaces to 2 to allow exactly 2 spaces at the end of a line.
Note: you have to set brspaces to 2 or higher for this exception to take effect - you can't insert a br element with just a single trailing space, so if you set brspaces to 1, the exception will be disabled, just as if it was set to the default of 0.
Multiple consecutive blank lines Open
- Read upRead up
- Exclude checks
MD012 - Multiple consecutive blank lines
Tags: whitespace, blank_lines
Aliases: no-multiple-blanks
This rule is triggered when there are multiple consecutive blank lines in the document:
Some text here
Some more text here
To fix this, delete the offending lines:
Some text here
Some more text here
Note: this rule will not be triggered if there are multiple consecutive blank lines inside code blocks.
Line length Open
[![](https://images.microbadger.com/badges/image/batazor/go-auth.svg)](https://microbadger.com/images/batazor/go-auth "Get your own image badge on microbadger.com")
- Read upRead up
- Exclude checks
MD013 - Line length
Tags: line_length
Aliases: line-length Parameters: linelength, codeblocks, tables (number; default 80, boolean; default true)
This rule is triggered when there are lines that are longer than the configured line length (default: 80 characters). To fix this, split the line up into multiple lines.
This rule has an exception where there is no whitespace beyond the configured line length. This allows you to still include items such as long URLs without being forced to break them in the middle.
You also have the option to exclude this rule for code blocks and tables. To
do this, set the code_blocks
and/or tables
parameters to false.
Code blocks are included in this rule by default since it is often a requirement for document readability, and tentatively compatible with code rules. Still, some languages do not lend themselves to short lines.
struct field Id should be ID Open
Id string `json:"id"`
- Exclude checks
exported function Debug should have comment or be unexported Open
func Debug(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function Find should have comment or be unexported Open
func Find(user User) (*[]User, error) {
- Exclude checks
error should be the last type when returning multiple items Open
func Add(user User) (error, User) {
- Exclude checks
Your code does not pass gofmt in 1 place. Go fmt your code! Open
// Code generated by protoc-gen-go. DO NOT EDIT.
- Exclude checks