Shellcheck Configuration

Shellcheck Configuration

Explains how to set up and use ShellCheck for shell script linting: configuration, error codes, suppressing false positives and CI integration.

Skill files2 files

references/

SKILL.md35 lines
1
---
2
name: shellcheck-configuration
3
description: Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
4
---
5
6
# ShellCheck Configuration and Static Analysis
7
8
Comprehensive guidance for configuring and using ShellCheck to improve shell script quality, catch common pitfalls, and enforce best practices through static code analysis.
9
10
## When to Use This Skill
11
12
- Setting up linting for shell scripts in CI/CD pipelines
13
- Analyzing existing shell scripts for issues
14
- Understanding ShellCheck error codes and warnings
15
- Configuring ShellCheck for specific project requirements
16
- Integrating ShellCheck into development workflows
17
- Suppressing false positives and configuring rule sets
18
- Enforcing consistent code quality standards
19
- Migrating scripts to meet quality gates
20
21
## Detailed patterns and worked examples
22
23
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
24
25
## Best Practices
26
27
1. **Run ShellCheck in CI/CD** - Catch issues before merging
28
2. **Configure for your target shell** - Don't analyze bash as sh
29
3. **Document exclusions** - Explain why violations are suppressed
30
4. **Address violations** - Don't just disable warnings
31
5. **Enable strict mode** - Use `--enable=all` with careful exclusions
32
6. **Update regularly** - Keep ShellCheck current for new checks
33
7. **Use pre-commit hooks** - Catch issues locally before pushing
34
8. **Integrate with editors** - Get real-time feedback during development
35

© Ryan Snodgrass · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…