docs: fix Go lint description (both optional), format outliers in SHOWCASE usage
This commit is contained in:
parent
0886e5f3bc
commit
5e0674bf77
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ''}")
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue