Style definitions for nice terminal layouts 👄
This report summarizes scanner evidence for charmbracelet/lipgloss, a Go project with 11,914 GitHub stars. SynthScan examined 17,563 lines of code across 98 source files, recording 88 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 7.2 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 65 finding(s).
Are imports declared and package/API names verified? 12 finding(s).
Are wrappers, guards, and repeated structures necessary? 11 finding(s).
Which changes need focused human review? 88 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 88 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | query.go | 61 | if bg, err = backgroundColor(f, f); err == nil { | COMMENT |
| LOW | color.go | 41 | ) | COMMENT |
| LOW | color.go | 161 | type ANSIColor = ansi.IndexedColor | COMMENT |
| LOW | color.go | 181 | // myHotColor := lightDark(red, blue) | COMMENT |
| LOW | color.go | 201 | // hasDarkBG := lipgloss.HasDarkBackground(os.Stdin, os.Stdout) | COMMENT |
| LOW | color.go | 241 | // complete := lipgloss.Complete(p) | COMMENT |
| LOW | join.go | 1 | package lipgloss | COMMENT |
| LOW | join.go | 101 | // the right. | COMMENT |
| LOW | writer.go | 21 | // str := NewStyle(). | COMMENT |
| LOW | writer.go | 41 | return fmt.Fprintf(Writer, format, v...) //nolint:wrapcheck | COMMENT |
| LOW | writer.go | 61 | // | COMMENT |
| LOW | writer.go | 81 | func Fprintln(w io.Writer, v ...any) (int, error) { | COMMENT |
| LOW | writer.go | 141 | // Sprintf returns a formatted string for stdout, automatically downsampling | COMMENT |
| LOW | set.go | 321 | // AlignVertical sets a vertical text alignment rule. | COMMENT |
| LOW | set.go | 401 | // Margin is a shorthand method for setting margins on all sides at once. | COMMENT |
| LOW | set.go | 461 | // rendering blocks with a specific character, such as a space or a dot. | COMMENT |
| LOW | set.go | 501 | s.set(borderTopKey, top) | COMMENT |
| LOW | set.go | 601 | s.set(borderBottomForegroundKey, c) | COMMENT |
| LOW | set.go | 641 | COMMENT | |
| LOW | set.go | 661 | // background colors of the borders at once. The arguments work as follows: | COMMENT |
| LOW | set.go | 721 | // only to font rendering and don't want it to change any physical dimensions. | COMMENT |
| LOW | set.go | 741 | // | COMMENT |
| LOW | set.go | 801 | // Transform applies a given function to a string at render time, allowing for | COMMENT |
| LOW | blending.go | 81 | } | COMMENT |
| LOW | blending.go | 101 | // Background(gradient[index]). | COMMENT |
| LOW | tree/example_test.go | 141 | // ├── Bar | COMMENT |
| LOW | tree/tree.go | 1 | // Package tree allows you to build trees, as simple or complicated as you need. | COMMENT |
| LOW | tree/tree.go | 241 | // EnumeratorStyleFunc sets the enumeration style function. Use this function | COMMENT |
| LOW | tree/tree.go | 261 | // Use IndenterStyleFunc to conditionally set styles based on the tree node. | COMMENT |
| LOW | tree/tree.go | 301 | // ItemStyleFunc sets the item style function. Use this for conditional styling. | COMMENT |
| LOW | tree/tree.go | 321 | // for a classic or rounded tree. For example, you can have a rounded tree: | COMMENT |
| LOW | tree/tree.go | 341 | // | COMMENT |
| LOW | tree/enumerator.go | 1 | package tree | COMMENT |
| LOW | tree/enumerator.go | 41 | } | COMMENT |
| LOW | tree/enumerator.go | 61 | // ├── Foo | COMMENT |
| LOW | compat/doc.go | 1 | // Package compat is a compatibility layer for Lip Gloss that provides a way to | COMMENT |
| LOW | table/table_test.go | 1481 | StyleFunc(TableStyle). | COMMENT |
| LOW | table/table_test.go | 1501 | // │ amet, │ び理別よン國 │ والكوري │ 名見壌府。博 │ 회의 │ | COMMENT |
| LOW | table/table_test.go | 1521 | // │ inciderint │ 容ひるべ。際 │ عرض. ونتج │ 激伝阜中野品 │ │ | COMMENT |
| LOW | table/table_test.go | 1541 | // │ │ ご出来ぼぎむ │ │ │ │ | COMMENT |
| LOW | table/resizing.go | 21 | // to the total width. | COMMENT |
| LOW | table/table.go | 21 | // | COMMENT |
| LOW | examples/compat/standalone/main.go | 61 | // isn't a TTY (i.e. we're logging to a file) colors will be stripped | COMMENT |
| LOW | examples/color/standalone/main.go | 61 | COMMENT | |
| LOW | list/list.go | 1 | // Package list allows you to build lists, as simple or complicated as you need. | COMMENT |
| LOW | list/list.go | 21 | // | COMMENT |
| LOW | list/list.go | 41 | // "C", | COMMENT |
| LOW | list/list.go | 61 | // | COMMENT |
| LOW | list/list.go | 121 | // | COMMENT |
| LOW | list/list.go | 161 | // Use this to conditionally set different styles based on the current items, | COMMENT |
| LOW | list/list.go | 181 | // the tree is indented. The default indentor places a border connecting sibling | COMMENT |
| LOW | list/list.go | 221 | // Use this to conditionally set different styles based on the current items, | COMMENT |
| LOW | list/list.go | 261 | for _, item := range items { | COMMENT |
| LOW | list/list.go | 281 | // | COMMENT |
| LOW | list/enumerator.go | 1 | package list | COMMENT |
| LOW | list/enumerator.go | 21 | // - Bullet | COMMENT |
| LOW | list/enumerator.go | 61 | const abcLen = 26 | COMMENT |
| LOW | list/enumerator.go | 101 | // • Bar | COMMENT |
| LOW | list/enumerator.go | 121 | // Example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | set.go | 648 | // ┌──────────┐ | COMMENT |
| MEDIUM | set.go | 653 | // └──────────┘ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1491 | // ┌──────────────┬───────────────┬───────────────┬───────────────┬───────────────┐ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1493 | // ├──────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1495 | // └──────────────┴───────────────┴───────────────┴───────────────┴───────────────┘ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1496 | // ┌──────────────┬───────────────┬───────────────┬───────────────┬───────────────┐ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1498 | // ├──────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ | COMMENT |
| MEDIUM | table/table_test.go | 1555 | // └──────────────┴───────────────┴───────────────┴───────────────┴───────────────┘ | COMMENT |
| MEDIUM⚡ | table/resizing.go | 32 | // ┌──────┬───────────────┬──────────┐ | COMMENT |
| MEDIUM⚡ | table/resizing.go | 34 | // ├──────┼───────────────┼──────────┤ | COMMENT |
| MEDIUM⚡ | table/resizing.go | 38 | // └──────┴───────────────┴──────────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | table/table_test.go | 1494 | // │ Lorem ipsum… │ 耐許ヱヨカハ… │ شيء قد للحكو… │ 版応道潟部中… │ 각급 선거관… │ | COMMENT |
| LOW⚡ | table/table_test.go | 1499 | // │ Lorem ipsum │ 耐許ヱヨカハ │ شيء قد │ 版応道潟部中 │ 각급 │ | COMMENT |
| LOW | table/table_test.go | 902 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 902 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1021 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1021 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1114 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1114 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1173 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| LOW | table/table_test.go | 1173 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| LOW | table/table_test.go | 1469 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| LOW | table/table_test.go | 1469 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | color.go | 49 | // Example usage: | COMMENT |
| LOW | color.go | 157 | // Example usage: | COMMENT |
| LOW | color.go | 217 | // Example usage: | COMMENT |
| LOW | color.go | 238 | // Example usage: | COMMENT |
| LOW | color.go | 255 | // Example usage: | COMMENT |
| LOW | compat/color.go | 23 | // Example usage: | COMMENT |