Showing 4 of 30 total issues
Function main
has 79 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
config := &redash.Config{
EndpointUrl: os.Getenv("REDASH_ENDPOINT_URL"),
ApiKey: os.Getenv("REDASH_API_KEY"),
}
Function main
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
config := &redash.Config{
EndpointUrl: os.Getenv("REDASH_ENDPOINT_URL"),
ApiKey: os.Getenv("REDASH_API_KEY"),
}
Function main
has 51 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
config := &redash.Config{
EndpointUrl: os.Getenv("REDASH_ENDPOINT_URL"),
ApiKey: os.Getenv("REDASH_API_KEY"),
}
Method Client.request
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *Client) request(httpMethod string, path string, body string) (*http.Response, error) {
url := c.Config.EndpointUrl + path
resp, err := func() (*http.Response, error) {
req, err := http.NewRequest(httpMethod, url, strings.NewReader(body))
if err != nil {