DisposaBoy/GoSublime
A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
- Repository: https://github.com/DisposaBoy/GoSublime
- Commit:
890149fb88c64554759cbd8339adf55628939bcd - Generated: 2026-11-13T23:25:52+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 65% | 100% |
| Code quality | 53 | weak | 90% | 100% |
| Security | 71 | adequate | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
-
Explicitly attributed share (lower bound): 0.0%
-
Unattributed share in AI-consistent velocity bursts: 0.0%
-
Estimated AI-generated share: 0.0%
-
Stylometry index: 0.04 per 1,000 lines (narrated steps 2, placeholders 0, assistant phrasing 0, emoji 0). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2018-12 | 664 | 0% |
| 2019-01 | 53 | 0% |
| 2019-02 | 1 | 0% |
| 2019-06 | 2,143 | 0% |
| 2019-07 | 1,460 | 0% |
| 2019-10 | 3,233 | 0% |
| 2019-12 | 598 | 0% |
| 2020-01 | 1,004 | 0% |
| 2020-02 | 182 | 0% |
| 2020-03 | 46 | 0% |
| 2020-05 | 554 | 0% |
| 2020-06 | 62 | 0% |
Evidence
- step-by-step narration comment: # First, shift the edit as far left as possible. (something_bo)
- step-by-step narration comment: # First, shift the edit as far left as possible. (something_bo)
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is weak: test-to-source ratio 0.08, no CI test run detected; 19% of function code in complex or long functions; 12% duplicated lines. Weakest area: process.
| Area | Score |
|---|---|
| Complexity (lizard) | 57 |
| Duplication | 50 |
| Code smells (Opengrep) | 76 |
| Tests and CI | 43 |
| Documentation | 100 |
| Type safety | 40 |
| Process (Scorecard review/maintenance) | 0 |
- Functions: 2,496; mean complexity 3.5, 90th percentile 7; 65 complex and 10 long functions
- Duplicated lines: 11.5% of 31,679 compared
- Tests: 3,351 test lines for 44,513 source lines (ratio 0.08); CI test commands: none detected; 10% of recent source commits also change tests
- Docs missing or thin: none
Most complex functions:
- rawExpr in src/gosublime/something-borrowed/types/expr.go: complexity 145, 528 lines
- stmt in src/gosublime/something-borrowed/types/stmt.go: complexity 115, 357 lines
- builtin in src/gosublime/something-borrowed/types/builtins.go: complexity 93, 326 lines
- infer_type in src/gosublime/something-borrowed/gocode/decl.go: complexity 54, 171 lines
- isRepresentableConst in src/gosublime/something-borrowed/types/const.go: complexity 51, 94 lines
Security
Security posture is adequate: 11 high-severity SAST findings; 2 high-severity workflow issues. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 92 |
| Vulnerable dependencies (OSV) | n/a |
| CI workflows (zizmor) | 63 |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | 37 |
- Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
- OpenSSF Scorecard aggregate: 3.2/10 (published 2026-11-09)
Top findings
| Severity | Finding | Location |
|---|---|---|
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'STARTUPINFO' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
gosubl/gs.py:39 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
gosubl/gs.py:209 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
gosubl/gsshell.py:81 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'STARTUPINFO' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
gosubl/sh.py:16 |
| high | opengrep/python.lang.security.audit.dangerous-subprocess-use-audit: Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. [confidence low] |
gosubl/sh.py:71 |
| high | opengrep/go.lang.security.audit.dangerous-exec-command: Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] |
src/gosublime/cmd/margo_pkg/m_play.go:64 |
| high | opengrep/go.lang.security.audit.dangerous-exec-command: Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] |
src/gosublime/cmd/margo_pkg/m_sh.go:39 |
| high | opengrep/go.lang.security.audit.dangerous-exec-command: Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] |
src/margo.sh/cmdpkg/margo/cmdrunner/cmdrunner.go:20 |
| high | opengrep/go.lang.security.audit.dangerous-exec-command: Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] |
src/margo.sh/format/format.go:83 |
| high | opengrep/go.lang.security.audit.dangerous-exec-command: Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] |
src/margo.sh/mg/cmd.go:353 |
| high | opengrep/go.lang.security.audit.dangerous-exec-command: Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code. [confidence low] |
src/margo.sh/mg/lint.go:116 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/gs-ci.yml:12 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/gs-ci.yml:16 |
| medium | opengrep/python.lang.security.audit.exec-detected: Detected the use of exec(). exec() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources. [confidence low] |
GoSublime.py:19 |
| medium | opengrep/python.lang.security.dangerous-globals-use: Found non static data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'. [confidence low] |
gosubl/sh.py:147 |
| medium | opengrep/go.lang.security.audit.net.pprof-debug-exposure: The profiling 'pprof' endpoint is automatically exposed on /debug/pprof. This could leak information about the server. Instead, use import "net/http/pprof". See https://www.farsightsecurity.com/blog/txt-record/go-remote-profiling-20161028/ for more information and mitigation. [confidence low] |
src/gosublime/something-borrowed/gocode/gocode.go:67 |
| medium | opengrep/go.lang.security.audit.net.use-tls: Found an HTTP server without TLS. Use 'http.ListenAndServeTLS' instead. See https://golang.org/pkg/net/http/#ListenAndServeTLS for more information. [confidence medium] |
src/gosublime/something-borrowed/gocode/gocode.go:67 |
| medium | opengrep/go.lang.security.audit.use-of-unsafe-block: Using the unsafe package in Go gives you low-level memory management and many of the strengths of the C language, but also steps around the type safety of Go and can lead to buffer overflows and possible arbitrary code execution by an attacker. Only use this package if you absolutely know what you'r [confidence low] |
src/gosublime/something-borrowed/gocode/os_windows.go:29 |
| medium | opengrep/go.lang.security.audit.use-of-unsafe-block: Using the unsafe package in Go gives you low-level memory management and many of the strengths of the C language, but also steps around the type safety of Go and can lead to buffer overflows and possible arbitrary code execution by an attacker. Only use this package if you absolutely know what you'r [confidence low] |
src/gosublime/something-borrowed/gocode/os_windows.go:43 |
| medium | opengrep/go.lang.security.audit.xss.import-text-template: When working with web applications that involve rendering user-generated content, it's important to properly escape any HTML content to prevent Cross-Site Scripting (XSS) attacks. In Go, the text/template package does not automatically escape HTML content, which can leave your application vuln [confidence low] |
src/margo.sh/mg/cmd.go:14 |
| medium | opengrep/go.lang.security.audit.use-of-unsafe-block: Using the unsafe package in Go gives you low-level memory management and many of the strengths of the C language, but also steps around the type safety of Go and can lead to buffer overflows and possible arbitrary code execution by an attacker. Only use this package if you absolutely know what you'r [confidence low] |
src/margo.sh/vfs/vfs.go:146 |
| medium | opengrep/go.lang.security.audit.use-of-unsafe-block: Using the unsafe package in Go gives you low-level memory management and many of the strengths of the C language, but also steps around the type safety of Go and can lead to buffer overflows and possible arbitrary code execution by an attacker. Only use this package if you absolutely know what you'r [confidence low] |
src/margo.sh/vfs/vfs.go:335 |
| medium | opengrep/go.lang.security.audit.use-of-unsafe-block: Using the unsafe package in Go gives you low-level memory management and many of the strengths of the C language, but also steps around the type safety of Go and can lead to buffer overflows and possible arbitrary code execution by an attacker. Only use this package if you absolutely know what you'r [confidence low] |
src/margo.sh/vfs/vfs.go:335 |
| medium | zizmor/artipacked: credential persistence through GitHub Actions artifacts [confidence low] |
.github/workflows/gs-ci.yml:15 |
| medium | zizmor/excessive-permissions: overly broad permissions [confidence medium] |
.github/workflows/gs-ci.yml:4 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 44,513; test lines: 3,351
| Language | Lines |
|---|---|
| Go | 35,110 |
| Python | 12,754 |