Showing 99 of 99 total issues
exported function Update should have comment or be unexported Open
func Update(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function NewAccessToken should have comment or be unexported Open
func NewAccessToken(timeDuration int64) (string, error) {
- Exclude checks
exported function LogEntrySetField should have comment or be unexported Open
func LogEntrySetField(r *http.Request, key string, value interface{}) {
- Exclude checks
exported function VerifyCaptcha should have comment or be unexported Open
func VerifyCaptcha(captchaResponse []byte) error {
- 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.
don't use ALL_CAPS in Go names; use CamelCase Open
API_MAIL_ADDRESS := utils.Getenv("API_MAIL_ADDRESS", "localhost:50051")
- Exclude checks
exported function RecoveryByToken should have comment or be unexported Open
func RecoveryByToken(w http.ResponseWriter, r *http.Request) {
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
PRIVATE_KEY = "cert/private_key.pem"
- Exclude checks
don't use MixedCaps in package name; userModel should be usermodel Open
package userModel
- Exclude checks
exported type StructuredLoggerEntry should have comment or be unexported Open
type StructuredLoggerEntry struct {
- 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.
don't use ALL_CAPS in Go names; use CamelCase Open
var TOKEN_REFRESH = r.Header.Get("Authorization")
- Exclude checks
exported function Recovery should have comment or be unexported Open
func Recovery(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function List should have comment or be unexported Open
func List(w http.ResponseWriter, r *http.Request) {
- Exclude checks
exported function Captcha should have comment or be unexported Open
func Captcha(next http.Handler) http.Handler {
- Exclude checks
exported function List should have comment or be unexported Open
func List() (error, []User) {
- Exclude checks
exported type UserGoogle should have comment or be unexported Open
type UserGoogle struct {
- Exclude checks
exported function FindCount should have comment or be unexported Open
func FindCount(user User) (int64, error) {
- Exclude checks
struct field Id should be ID Open
Id string `json:"id" bson:"_id,omitempty"`
- Exclude checks
exported method StructuredLogger.NewLogEntry should have comment or be unexported Open
func (l *StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry {
- Exclude checks