Suppress SC2016 for literal behavior-defined engine configs - #51759
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds targeted SC2016 suppression for generated literal JSON engine configurations containing dollar signs.
Changes:
- Conditionally emits the ShellCheck directive above
BASE_CONFIG. - Tests dollar-containing and ordinary configurations.
- Recompiles affected Crush workflow locks.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/behavior_defined_engine.go |
Generates conditional SC2016 suppression. |
pkg/workflow/behavior_defined_engine_harness_test.go |
Covers suppression behavior. |
.github/workflows/smoke-crush.lock.yml |
Updates generated Crush steps. |
.github/workflows/daily-code-metrics.lock.yml |
Updates generated Crush steps. |
.github/workflows/daily-arxiv-researcher.lock.yml |
Updates generated Crush steps. |
Review details
Tip
Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Balanced
Triage: Suppress SC2016 for literal behavior-defined engine configs
|
|
@copilot PR sous-chef triage: please refresh the current maintainer-facing state on the latest head, refresh the branch if GitHub can update it cleanly, and run the No unresolved review threads were surfaced in this pass.
|
PR finisher pass complete:
Actions taken: none needed — branch was already up to date and no threads required resolution. |
Generated Crush configuration steps triggered SC2016 because the literal JSON key
$schemais intentionally single-quoted.Generator
# shellcheck disable=SC2016directly aboveBASE_CONFIGwhen configuration content contains$.Coverage
Generated workflows