Showing 19 of 20 total issues
Function main
has 61 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
addr := ":8080"
if len(os.Args) >= 2 {
addr = os.Args[1]
}
Method TCacheRoundTripper.RoundTrip
has 7 return statements (exceeds 4 allowed). Open
Open
func (trt *TCacheRoundTripper) RoundTrip(rq *http.Request) (response *http.Response, err error) {
if rq.Method != http.MethodGet {
return trt.roundTrip(rq)
}
should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) Open
Open
return errors.New(fmt.Sprintf("could not find achievements for %d", c.ID))
- Exclude checks
exported function NewWithApi should have comment or be unexported Open
Open
func NewWithApi(api *ffxivapi.FFXIVAPI) *Api {
- Exclude checks
type Api should be API Open
Open
type Api struct {
- Exclude checks
exported const FeatureClassJob should have comment (or a comment on this block) or be unexported Open
Open
FeatureClassJob = 1 << 1
- Exclude checks
exported type Api should have comment or be unexported Open
Open
type Api struct {
- Exclude checks
exported method HTTPClient.Request should have comment or be unexported Open
Open
func (hlp *HTTPClient) Request(query string) (io.ReadCloser, error) {
- Exclude checks
exported type SearchResult should have comment or be unexported Open
Open
type SearchResult struct {
- Exclude checks
var urlIdRegex should be urlIDRegex Open
Open
var urlIdRegex = regexp.MustCompile(`/(\d+)/?$`)
- Exclude checks
exported type TCacheRoundTripper should have comment or be unexported Open
Open
type TCacheRoundTripper struct {
- Exclude checks
exported method TCacheRoundTripper.RoundTrip should have comment or be unexported Open
Open
func (trt *TCacheRoundTripper) RoundTrip(rq *http.Request) (response *http.Response, err error) {
- Exclude checks
exported method FFXIVAPI.Search should have comment or be unexported Open
Open
func (api *FFXIVAPI) Search(characterName string, world string) ([]SearchResult, error) {
- Exclude checks
func NewWithApi should be NewWithAPI Open
Open
func NewWithApi(api *ffxivapi.FFXIVAPI) *Api {
- Exclude checks
exported const LodestoneHTTPTimeout should have comment or be unexported Open
Open
const LodestoneHTTPTimeout = 20 * time.Second
- Exclude checks
2: cannot find package "github.com/PuerkitoBio/goquery" in any of: Open
Open
"github.com/PuerkitoBio/goquery"
- Exclude checks
exported function CanonServerFromRegion should have comment or be unexported Open
Open
func CanonServerFromRegion(region string) string {
- Exclude checks
var lastPageUrl should be lastPageURL Open
Open
lastPageUrl, public := doc.Find(".btn__pager__next--all").First().Attr("href")
- Exclude checks
exported function New should have comment or be unexported Open
Open
func New() *Api {
- Exclude checks