Showing 99 of 99 total issues
exported type Captcha should have comment or be unexported Open
Open
type Captcha struct {
- Exclude checks
exported var RECAPTCHA_PRIVATE_KEY should have comment or be unexported Open
Open
RECAPTCHA_PRIVATE_KEY string
- Exclude checks
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
package user
- Exclude checks
don't use MixedCaps in package name; sessionModel should be sessionmodel Open
Open
package sessionModel
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
Open
PUBLIC_KEY = "cert/public_key.pub"
- Exclude checks
exported type Profile should have comment or be unexported Open
Open
type Profile struct {
- Exclude checks
func parameter userId should be userID Open
Open
func Delete(userId string) (int64, error) {
- Exclude checks
type name will be used as recaptcha.RecaptchaResponse by other packages, and that stutters; consider calling this Response Open
Open
type RecaptchaResponse struct {
- Exclude checks
2: cannot find package "github.com/go-chi/chi" in any of: Open
Open
"github.com/go-chi/chi"
- Exclude checks
exported type Callback should have comment or be unexported Open
Open
type Callback struct {
- Exclude checks
exported function CreateJWTToken should have comment or be unexported Open
Open
func CreateJWTToken() (string, string, error) {
- Exclude checks
exported function Logout should have comment or be unexported Open
Open
func Logout(w http.ResponseWriter, r *http.Request) {
- Exclude checks
var userId should be userID Open
Open
userId, _ := sessionModel.GetValueByKey(user.RecoveryToken)
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
Open
ENABLE_CAPTCHA := utils.Getenv("ENABLE_CAPTCHA", "false")
- Exclude checks
struct field Id should be ID Open
Open
Id string `json:"id"`
- Exclude checks
exported function Delete should have comment or be unexported Open
Open
func Delete(userId string) (int64, error) {
- Exclude checks
comment on exported var ClientID should be of the form "ClientID ..." Open
Open
// Get configuration
- Exclude checks
exported function NewRecoveryLink should have comment or be unexported Open
Open
func NewRecoveryLink(value string) (string, error) {
- Exclude checks
exported type RecaptchaResponse should have comment or be unexported Open
Open
type RecaptchaResponse struct {
- Exclude checks
Trailing spaces Open
Open
`initialState/user.json` - contains initial information
- 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.