{ "Golang errors": { "bubbly": [ { "line": 0, "column": 0, "error": "importing dir \"bubbly\": bubbly/release_test.go:1:1: expected 'package', found 'EOF'" } ] }, "Issues": [ { "severity": "MEDIUM", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G307", "details": "Deferring unsafe method \"Close\" on type \"*os.File\"", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/lang/extract.go", "code": "723: \t}\n724: \tdefer f.Close()\n725: \n", "line": "724", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/lang/extract.go", "code": "763: \n764: \t\t\t\tf(data, ty.AttributeType(x), path, 0)\n765: \t\t\t\tpath = path[0:pathIdx]\n", "line": "764", "column": "5" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/todo/todo.go", "code": "112: func (s Status) MarshalGQL(w io.Writer) {\n113: \tio.WriteString(w, strconv.Quote(s.String()))\n114: }\n", "line": "113", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/status/status.go", "code": "63: func (s Status) MarshalGQL(w io.Writer) {\n64: \tio.WriteString(w, strconv.Quote(s.String()))\n65: }\n", "line": "64", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/releaseentry/releaseentry.go", "code": "86: func (_type Type) MarshalGQL(w io.Writer) {\n87: \tio.WriteString(w, strconv.Quote(_type.String()))\n88: }\n", "line": "87", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "4964: func (f TodoOrderField) MarshalGQL(w io.Writer) {\n4965: \tio.WriteString(w, strconv.Quote(f.String()))\n4966: }\n", "line": "4965", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "4658: func (f StatusOrderField) MarshalGQL(w io.Writer) {\n4659: \tio.WriteString(w, strconv.Quote(f.String()))\n4660: }\n", "line": "4659", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "4388: func (f RepoOrderField) MarshalGQL(w io.Writer) {\n4389: \tio.WriteString(w, strconv.Quote(f.String()))\n4390: }\n", "line": "4389", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "4114: func (f ReleaseEntryOrderField) MarshalGQL(w io.Writer) {\n4115: \tio.WriteString(w, strconv.Quote(f.String()))\n4116: }\n", "line": "4115", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "3820: func (f ReleaseCheckOrderField) MarshalGQL(w io.Writer) {\n3821: \tio.WriteString(w, strconv.Quote(f.String()))\n3822: }\n", "line": "3821", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "3548: func (f ReleaseOrderField) MarshalGQL(w io.Writer) {\n3549: \tio.WriteString(w, strconv.Quote(f.String()))\n3550: }\n", "line": "3549", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "3266: func (f ProjectOrderField) MarshalGQL(w io.Writer) {\n3267: \tio.WriteString(w, strconv.Quote(f.String()))\n3268: }\n", "line": "3267", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "2996: func (f PipelineStepOrderField) MarshalGQL(w io.Writer) {\n2997: \tio.WriteString(w, strconv.Quote(f.String()))\n2998: }\n", "line": "2997", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "2724: func (f PipelineOrderField) MarshalGQL(w io.Writer) {\n2725: \tio.WriteString(w, strconv.Quote(f.String()))\n2726: }\n", "line": "2725", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "2213: func (f LicenseOrderField) MarshalGQL(w io.Writer) {\n2214: \tio.WriteString(w, strconv.Quote(f.String()))\n2215: }\n", "line": "2214", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "1925: func (f GitCommitOrderField) MarshalGQL(w io.Writer) {\n1926: \tio.WriteString(w, strconv.Quote(f.String()))\n1927: }\n", "line": "1926", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "1619: func (f ComponentVersionOrderField) MarshalGQL(w io.Writer) {\n1620: \tio.WriteString(w, strconv.Quote(f.String()))\n1621: }\n", "line": "1620", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "1345: func (f ComponentOrderField) MarshalGQL(w io.Writer) {\n1346: \tio.WriteString(w, strconv.Quote(f.String()))\n1347: }\n", "line": "1346", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "1051: func (f CodeScanOrderField) MarshalGQL(w io.Writer) {\n1052: \tio.WriteString(w, strconv.Quote(f.String()))\n1053: }\n", "line": "1052", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "779: func (f CVEOrderField) MarshalGQL(w io.Writer) {\n780: \tio.WriteString(w, strconv.Quote(f.String()))\n781: }\n", "line": "780", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "493: func (f ArtifactOrderField) MarshalGQL(w io.Writer) {\n494: \tio.WriteString(w, strconv.Quote(f.String()))\n495: }\n", "line": "494", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "170: \tquote := []byte{'\"'}\n171: \tw.Write(quote)\n172: \tdefer w.Write(quote)\n", "line": "171", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/pagination.go", "code": "63: func (o OrderDirection) MarshalGQL(w io.Writer) {\n64: \tio.WriteString(w, strconv.Quote(o.String()))\n65: }\n", "line": "64", "column": "2" }, { "severity": "LOW", "confidence": "HIGH", "cwe": { "id": "703", "url": "https://cwe.mitre.org/data/definitions/703.html" }, "rule_id": "G104", "details": "Errors unhandled.", "file": "/Users/jacoblarfors/work/bubbly/entgo-poc/ent/artifact/artifact.go", "code": "105: func (_type Type) MarshalGQL(w io.Writer) {\n106: \tio.WriteString(w, strconv.Quote(_type.String()))\n107: }\n", "line": "106", "column": "2" } ], "Stats": { "files": 184, "lines": 110499, "nosec": 0, "found": 24 }, "GosecVersion": "dev" }