Next generation distributed, event-driven, parallel config management!
This report summarizes scanner evidence for purpleidea/mgmt, a Go project with 4,330 GitHub stars. SynthScan examined 202,008 lines of code across 864 source files, recording 1279 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 6.5 (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? 1274 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 1279 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 1279 distinct pattern matches across 10 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 | doc.go | 1 | // Mgmt | COMMENT |
| LOW | doc.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | main.go | 1 | // Mgmt | COMMENT |
| LOW | misc/fpm-repo.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | misc/fpm-repo.sh | 61 | COMMENT | |
| LOW | misc/sigtee.go | 1 | // Mgmt | COMMENT |
| LOW | misc/sigtee.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | misc/filter-golang-stack.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | misc/gomodupgrade.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | misc/gomodupgrade.sh | 21 | # If you modify this program, or any covered work, by linking or combining it | COMMENT |
| LOW | misc/fpm-pack.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/tools.go | 1 | // Mgmt | COMMENT |
| LOW | tools/tools.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | tools/grow.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphviz.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphviz.go | 61 | // path. It (awkwardly) can be used by someone expecting either a | COMMENT |
| LOW | pgraph/graphviz.go | 121 | // https://en.wikipedia.org/wiki/DOT_%28graph_description_language%29 | COMMENT |
| LOW | pgraph/pgraph.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/util_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphsync_bench_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphsync_bench_test.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | pgraph/selfvertex.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/selfvertex.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | pgraph/subgraph_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/pgraph_bench_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphsync.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/simpleedge.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/subgraph.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/subgraph.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | pgraph/subgraph.go | 61 | COMMENT | |
| LOW | pgraph/graphsync_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/pgraph_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/pgraph_test.go | 821 | t.Errorf("should have error during GraphCmp, but got nil") | COMMENT |
| LOW | test/test-golangci-lint.sh | 281 | #glc="$glc --enable=errorlint" | COMMENT |
| LOW | test/test-golangci-lint.sh | 301 | #glc="$glc --enable=godox" | COMMENT |
| LOW | test/test-golangci-lint.sh | 321 | #glc="$glc --enable=maintidx" | COMMENT |
| LOW | test/test-gometalinter.sh | 21 | # TODO: run more linters here if we're brave... | COMMENT |
| LOW | test/test-gomod.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/test-gomod.sh | 21 | # If you modify this program, or any covered work, by linking or combining it | COMMENT |
| LOW | test/test-markdownlint.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/tools/txtarfmt/main.go | 1 | // Mgmt | COMMENT |
| LOW | test/tools/reflowed-comments/main.go | 1 | // Mgmt | COMMENT |
| LOW | test/tools/reflowed-comments/main_test.go | 1 | // Mgmt | COMMENT |
| LOW | test/tools/reflowed-comments/main_test.go | 41 | filename := filepath.Join(dir, "doc.go") | COMMENT |
| LOW | test/tools/receiver-check/main.go | 1 | // Mgmt | COMMENT |
| LOW | util/log.go | 1 | // Mgmt | COMMENT |
| LOW | util/afero_test.go | 1 | // Mgmt | COMMENT |
| LOW | util/systemd_unit.go | 1 | // Mgmt | COMMENT |
| LOW | util/systemd_unit.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | util/error.go | 1 | // Mgmt | COMMENT |
| LOW | util/home.go | 1 | // Mgmt | COMMENT |
| LOW | util/generics_test.go | 1 | // Mgmt | COMMENT |
| LOW | util/infinitechan.go | 1 | // Mgmt | COMMENT |
| LOW | util/infinitechan.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | util/user.go | 1 | // Mgmt | COMMENT |
| LOW | util/user_test.go | 1 | // Mgmt | COMMENT |
| LOW | util/interfaces.go | 1 | // Mgmt | COMMENT |
| LOW | util/sync.go | 1 | // Mgmt | COMMENT |
| LOW | util/sync.go | 181 | // SubscribedSignal represents a synchronized read signal. It doesn't need to be | COMMENT |
| LOW | util/sync.go | 241 | COMMENT | |
| 1174 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/test-omv.sh | 2 | # simple test harness for testing mgmt via omv | COMMENT |
| MEDIUM | test/test-shell.sh | 2 | # simple test harness for testing mgmt | COMMENT |
| MEDIUM | util/afero.go | 122 | // TODO: this should be made more rsync like and robust! | COMMENT |
| MEDIUM | util/afero.go | 167 | // TODO: this should be made more rsync like and robust! | COMMENT |
| MEDIUM | lang/types/value.go | 216 | // possible for the other cases is a more robust approach! | COMMENT |
| MEDIUM | etcd/etcd.go | 40 | // robust, battle-test etcd cluster, then manage your own, and point each mgmt | COMMENT |
| MEDIUM | engine/reverse.go | 40 | // subsequent one. This is helpful for building robust programs with the engine. | COMMENT |
| MEDIUM | engine/resources/firewalld.go | 130 | // is not a replacement for a modern, robust tool like `shorewall`, but it has | COMMENT |
| MEDIUM | engine/resources/hetzner_vm.go | 678 | // TODO: more robust comparison of keylists | COMMENT |
| MEDIUM | engine/graph/exporter.go | 88 | // the usual CheckApply step would run, we end up with a more nuanced | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pgraph/graphviz.go | 222 | // TODO: implement me | COMMENT |
| LOW | integration/basic_test.go | 164 | // TODO: implement a simple test for documentation purposes | COMMENT |
| LOW | lang/types/value_test.go | 688 | // TODO: implement ValueOf tests for TypeFunc | COMMENT |
| LOW | lang/types/type_test.go | 1767 | // TODO: implement testing of the TypeOf function | COMMENT |
| LOW | lang/types/type_test.go | 1768 | // TODO: implement testing TypeOf for struct field name mappings | COMMENT |
| LOW | lang/core/fmt/printf.go | 468 | // TODO: implement better format errors support | COMMENT |
| LOW | lang/interfaces/metadata.go | 173 | // md := obj.Copy() // TODO: implement me | COMMENT |
| LOW | lib/main.go | 849 | //Prometheus: prom, // TODO: implement this via a general Status API | COMMENT |
| LOW | engine/resources/http_server_proxy.go | 128 | // TODO: Add tests for the Path+Sub+Head+Cache path math stuff | COMMENT |
| LOW | engine/resources/file.go | 119 | //traits.Groupable // TODO: implement this | COMMENT |
| LOW | engine/resources/msg.go | 212 | // TODO: implement syslog client | COMMENT |
| LOW | engine/resources/password.go | 455 | Hashing string // TODO: implement me | CODE |
| LOW | engine/graph/autogroup/autogroup_test.go | 117 | // TODO: implement this in vertexCmp for *testGrouper instead? | COMMENT |
| LOW | engine/local/local.go | 346 | // TODO: implement ctx cancellation | COMMENT |
| LOW | engine/local/local.go | 371 | // TODO: implement ctx cancellation | COMMENT |
| LOW | engine/local/local.go | 390 | // TODO: implement ctx cancellation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lang/funcs/operators/operators.go | 616 | // It's okay if scaffold.C is nil. | COMMENT |
| MEDIUM | lang/funcs/operators/operators.go | 829 | // XXX: get these from the scaffold | COMMENT |
| MEDIUM | lang/funcs/multi/multi.go | 45 | // RegisteredFuncs maps a function name to the corresponding function scaffold. | COMMENT |
| MEDIUM | lang/funcs/multi/multi.go | 202 | // scaffold make function field. | COMMENT |
| MEDIUM | lang/funcs/simple/simple.go | 54 | // RegisteredFuncs maps a function name to the corresponding function scaffold. | COMMENT |
| MEDIUM | lang/funcs/simple/simple.go | 118 | // It's okay if scaffold.C is nil. | COMMENT |
| MEDIUM | lang/funcs/simple/simple.go | 227 | // is suitable for use in the scaffold check function field. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | misc/centos-ci.py | 51 | omv = 'wget https://github.com/purpleidea/oh-my-vagrant/raw/master/extras/install-omv.sh && chmod u+x install-omv.sh && | CODE |
| HIGH | misc/centos-ci.py | 61 | git = "git clone --recursive %s %s && cd %s && git checkout %s" % (git_url, folder, folder, branch) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/test-mclfmt.sh | 15 | #F="misc/TODO.mcl" # TODO: you can add single files like this... | COMMENT |
| MEDIUM | modules/grafana/files/ldap.toml | 72 | # If you want to match all (or no ldap groups) then you can use wildcard | COMMENT |
| LOW | engine/resources/fwupd.go | 99 | // daemon if it's not running yet. Don't forget to call Close when done. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | lang/core/funcgen.yaml | 1 | # This file is used by github.com/purpleidea/mgmt/lang/funcs/funcgen/ to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/shell/file-source.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | CODE |
| LOW | test/shell/file-source.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | CODE |
| LOW | lang/types/type.go | 1343 | // match simple "placeholder" variants... skip variants w/ sub types | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test.sh | 3 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | etcd/fs/fs.go | 718 | // XXX: do we need to check if dest path is inside src path? | COMMENT |