RITlug/teleirc

View on GitHub

Showing 2 of 7 total issues

Function LoadConfig has 6 return statements (exceeds 4 allowed).
Open

func LoadConfig(path string) (*Settings, error) {
    validate = validator.New()
    if err := validate.RegisterValidation("notempty", validateEmptyString); err != nil {
        return nil, err
    }
Severity: Major
Found in internal/config.go - About 40 mins to fix

Function getImgurAccessToken has 6 return statements (exceeds 4 allowed).
Open

func getImgurAccessToken(tg *Client) {
    if tg.ImgurSettings.ImgurClientID == "" || tg.ImgurSettings.ImgurRefreshToken == "" {
        tg.logger.LogError("Imgur client secret and refresh token must be set")
        return
    }
Severity: Major
Found in internal/handlers/telegram/imgur.go - About 40 mins to fix
Severity
Category
Status
Source
Language