shellcheck-configuration

Configure ShellCheck linting for bash, sh, and POSIX shells via .shellcheckrc.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ekremmkasap/jarvis --skill shellcheck-configuration-ekremmkasap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shellcheck-configuration
Source: https://github.com/ekremmkasap/jarvis/tree/main/server/agent_prompts/wshobson/plugins/shell-scripting/skills/shellcheck-configuration
Command: npx skills add https://github.com/ekremmkasap/jarvis --skill shellcheck-configuration-ekremmkasap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Shell scripting is prone to subtle errors and inconsistent linting across projects; this skill centralizes ShellCheck configuration and guidance to standardize quality.

Core Features & Use Cases

  • Guidance on installing ShellCheck
  • Project-level configuration with .shellcheckrc
  • Examples of common error codes and usage across CI/CD pipelines
  • Practical patterns for suppressions and rule sets
  • Use Case: standardizing linting across multiple bash scripts and repos

Quick Start

Configure a project by creating a .shellcheckrc with the target shell and enabled rules, then integrate ShellCheck into CI to enforce linting.

Frequently Asked Questions about shellcheck-configuration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure ShellCheck for a bash project using .shellcheckrc?

To configure ShellCheck, create a project-level .shellcheckrc file specifying the target shell and enabled rules to standardize static analysis. This project-level file ensures consistent linting behavior across all bash, sh, and POSIX shell scripts within your development repositories.

What is the best way to integrate shell static analysis into a CI pipeline?

The best way to integrate shell static analysis into a CI pipeline is by applying a standardized ShellCheck configuration with a .shellcheckrc file. This enforces consistent linting rules and reduces false positives across all bash and POSIX shell scripts pushed through the continuous integration workflow.

How do I suppress specific ShellCheck false positives in my shell scripts?

You can suppress specific ShellCheck false positives by utilizing project-level suppression patterns and configuring disabled rules within your .shellcheckrc file. This approach standardizes linting by silencing irrelevant warnings while maintaining strict static analysis for actual script errors.

Can I use ShellCheck for POSIX sh scripts or is it only for bash?

Yes, you can use ShellCheck for POSIX sh scripts as well as bash. The configuration process allows you to explicitly specify the target shell in your .shellcheckrc file, ensuring the static analysis rules applied are appropriate for the specific POSIX or bash environment you are targeting.

Why does ShellCheck report inconsistent errors across different repositories?

ShellCheck reports inconsistent errors across different repositories due to a lack of centralized project-level configuration. Creating a standardized .shellcheckrc file to define enabled rules and target shells resolves this by enforcing uniform static analysis guidelines across all team projects.