From 5e0674bf774077c8eae2f38eb1d9c1a2c9429db6 Mon Sep 17 00:00:00 2001 From: tobjend Date: Wed, 1 Jul 2026 15:21:55 +0200 Subject: [PATCH] docs: fix Go lint description (both optional), format outliers in SHOWCASE usage --- README.md | 2 +- SHOWCASE.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index baffa62..f3dc0e0 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ Dervish discovers these conventions automatically from existing examples. The do |--------|-------------------|--------------------------|----------------------|---------------------| | Ansible roles | Module names from `tasks/main.yml` in order | `fail`, `include_vars`, `set_fact`, `package`, `file`, `template`, `service`, `npm`, `pip`, `lineinfile` | `fail?.(include_vars+set_fact+package+file+template+service+...)+.include+?.(npm+pip)+?.lineinfile?` | "Validate preconditions first, then set vars, install packages, configure with templates, start services. Include sub-roles last." | | Helm charts | K8s resource kinds from `helm template` output in rendered order | `ServiceAccount`, `ClusterRole`, `ClusterRoleBinding`, `Service`, `Deployment`, `ConfigMap`, `Alertmanager` | `ServiceAccount.ClusterRole.ClusterRoleBinding.Service.Deployment` (iDRegEx minimal core) | "Every Prometheus stack needs this bootstrap pipeline. Everything else is optional." | -| GitHub Actions (Go lint) | Step `uses:` or `run:` values from workflow YAML in job order | `actions/checkout`, `actions/setup-go`, `golangci/golangci-lint-action`, `megalinter/megalinter` | `actions/checkout.(actions/setup-go+run:echo+run:sudo)+.golangci/golangci-lint-action?.megalinter?` | "Starting a new Go project on GitHub Actions? Four independent projects converged on: checkout → setup Go → golangci-lint → (optionally megalinter)." | +| GitHub Actions (Go lint) | Step `uses:` or `run:` values from workflow YAML in job order | `actions/checkout`, `actions/setup-go`, `golangci/golangci-lint-action`, `megalinter/megalinter` | `actions/checkout.(actions/setup-go+run:echo+run:sudo)+.golangci/golangci-lint-action?.megalinter?` | "Starting a new Go project on GitHub Actions? Four independent projects converged on: checkout → setup Go → (optional golangci-lint) → (optional megalinter)." | ## Real-world Results diff --git a/SHOWCASE.md b/SHOWCASE.md index 0eb081f..fd9adfa 100644 --- a/SHOWCASE.md +++ b/SHOWCASE.md @@ -106,5 +106,7 @@ print(f"Grammar: {result['best']['grammar']}") # Or: find the tight core + flag outliers result = infer_ensemble(role_sequences, min_coverage=0.8) print(f"Core: {result['core']['grammar']}") -print(f"Outliers: {result['core']['outliers']}") +print(f"Outliers ({result['core']['outlier_count']}):") +for i, o in enumerate(result['core']['outliers'], 1): + print(f" {i}. {' → '.join(str(x) for x in o[:8])}{'...' if len(o) > 8 else ''}") ```