Showing 99 of 99 total issues
exported function Login should have comment or be unexported Open
func Login(w http.ResponseWriter, r *http.Request) {
- Exclude checks
Header levels should only increment by one level at a time Open
### Feature
- Read upRead up
- Exclude checks
MD001 - Header levels should only increment by one level at a time
Tags: headers
Aliases: header-increment
This rule is triggered when you skip header levels in a markdown document, for example:
# Header 1
### Header 3
We skipped out a 2nd level header in this document
When using multiple header levels, nested headers should increase by only one level at a time:
# Header 1
## Header 2
### Header 3
#### Header 4
## Another Header 2
### Another Header 3
exported var ClientSecret should have comment or be unexported Open
ClientSecret = utils.Getenv("OAUTH_GOOGLE_CLIENT_SECRET", "YOUR_CLIENT_SECRET")
- Exclude checks
exported function CheckUniqueUser should have comment or be unexported Open
func CheckUniqueUser(w http.ResponseWriter, user userModel.User) bool {
- Exclude checks
exported function CheckAuth should have comment or be unexported Open
func CheckAuth(next http.Handler) http.Handler {
- Exclude checks
exported function NewRefreshToken should have comment or be unexported Open
func NewRefreshToken(timeDuration time.Duration) (string, error) {
- Exclude checks
don't use MixedCaps in package name; sessionModel should be sessionmodel Open
package sessionModel
- Exclude checks
don't use MixedCaps in package name; userModel should be usermodel Open
package userModel
- Exclude checks
exported function FindOne should have comment or be unexported Open
func FindOne(user User) (*User, error) {
- Exclude checks
Trailing spaces Open
This project adheres to [Semantic Versioning](http://semver.org/).
- 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.
Unordered list style Open
* MongoDB
- 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 Refresh should have comment or be unexported Open
func Refresh(w http.ResponseWriter, r *http.Request) {
- Exclude checks
var userId should be userID Open
var userId = chi.URLParam(r, "userId")
- Exclude checks
exported const PRIVATE_KEY should have comment (or a comment on this block) or be unexported Open
PRIVATE_KEY = "cert/private_key.pem"
- Exclude checks
error should be the last type when returning multiple items Open
func List() (error, []User) {
- Exclude checks
exported function CheckPasswordHash should have comment or be unexported Open
func CheckPasswordHash(password, hash string) bool {
- Exclude checks
don't use underscores in Go names; var err_str should be errStr Open
err_str := `{
- Exclude checks
exported function LogEntrySetFields should have comment or be unexported Open
func LogEntrySetFields(r *http.Request, fields map[string]interface{}) {
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
RECAPTCHA_PRIVATE_KEY string
- Exclude checks