Showing 11 of 11 total issues
Function main
has 51 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
var (
err error
input behaviors.InputJSON
output interface{}
- Create a ticketCreate a ticket
Function Out
has 9 return statements (exceeds 4 allowed). Open
Open
func Out(input InputJSON, appJSONPath string, apiclient marathon.Marathoner) (IOOutput, error) {
jsondata, err := parsePayload(input.Params, appJSONPath)
if err != nil {
return IOOutput{}, err
- Create a ticketCreate a ticket
Method marathon.handleReq
has 6 return statements (exceeds 4 allowed). Open
Open
func (m *marathon) handleReq(
method string,
resourcePath string,
payload io.Reader,
wantCodes []int,
- Create a ticketCreate a ticket
Function NewMarathoner
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
client doer,
uri *url.URL,
auth *AuthCreds,
apiToken string,
logger logrus.FieldLogger) Marathoner {
- Create a ticketCreate a ticket
Method marathon.handleReq
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
method string,
resourcePath string,
payload io.Reader,
wantCodes []int,
resObj interface{},
- Create a ticketCreate a ticket
Function NewerTimestamps
has 5 return statements (exceeds 4 allowed). Open
Open
func NewerTimestamps(
timestampStrings []string,
currentTimestampString string,
) ([]string, error) {
var (
- Create a ticketCreate a ticket
Function parsePayload
has 5 return statements (exceeds 4 allowed). Open
Open
func parsePayload(p Params, path string) (io.Reader, error) {
var (
replacements = map[string]string{}
buf = bytes.NewBuffer([]byte{})
)
- Create a ticketCreate a ticket
Your code does not pass gofmt in 4 places. Go fmt your code! Open
Open
package behaviors
- Create a ticketCreate a ticket
- Exclude checks
Your code does not pass gofmt in 2 places. Go fmt your code! Open
Open
package dates
- Create a ticketCreate a ticket
- Exclude checks
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
package marathon
- Create a ticketCreate a ticket
- Exclude checks
2: cannot find package "github.com/ckaznocha/marathon-resource/cmd/marathon-resource/marathon" in any of: Open
Open
"github.com/ckaznocha/marathon-resource/cmd/marathon-resource/marathon"
- Create a ticketCreate a ticket
- Exclude checks