Software Alternatives & Reviews

Semgrep VS Shellcheck

Compare Semgrep VS Shellcheck and see what are their differences

Semgrep logo Semgrep

Semgrep is a fast, open-source, static analysis tool for finding bugs and enforcing code standards at editor, commit, and CI time.

Shellcheck logo Shellcheck

ShellCheck finds bugs in your shell scripts
  • Semgrep Landing page
    Landing page //
    2023-07-31
  • Shellcheck Landing page
    Landing page //
    2022-07-26

Semgrep videos

Semgrep: a lightweight static analysis tool for security consultant and hackers

More videos:

  • Review - Using Semgrep and Jenkins for Static Code Analysis
  • Review - Workshop: Scaling your AppSec Program with Semgrep

Shellcheck videos

Linting Your Bash Scripts with Shellcheck

More videos:

  • Tutorial - How To Configure ShellCheck in Jenkins
  • Review - Write Safer Scripts Using Shellcheck

Category Popularity

0-100% (relative to Semgrep and Shellcheck)
Code Analysis
60 60%
40% 40
Code Coverage
46 46%
54% 54
Security
100 100%
0% 0
Code Review
0 0%
100% 100

User comments

Share your experience with using Semgrep and Shellcheck. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Shellcheck should be more popular than Semgrep. It has been mentiond 29 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Semgrep mentions (7)

  • Tree-Sitter
    > Not sure I understand your point. The problem is using Treesitter (for syntax highlighting and "semantic movements") and an LSP at the same time. So if your language has a LSP, using Treesitter additionally is redundant at best and introduces inconcistency at worst. I'm not talking about using Treesitter as the parser for the LSP. > Most popular languages have language-specific tools I'd say even less popular... - Source: Hacker News / 3 months ago
  • Powerful SAST project for Android Application Security
    This project is a compilation of Semgrep rules derived from the OWASP Mobile Application Security Testing Guide (MASTG) specifically for Android applications. The aim is to enhance and support Mobile Application Penetration Testing (MAPT) activities conducted by the ethical hacker community. The primary objective of these rules is to address the static tests outlined in the OWASP MASTG. Source: 11 months ago
  • Do you SecDevOps?
    For generally code analysis, I used Semgrep in the past. Source: over 1 year ago
  • Username/password scanner for network share
    You can try with Semgrep. For scanning shared drive you need to have the access though. Source: over 1 year ago
  • Spring Actuator - Finding Actuators using Static Code Analysis - Part 2
    For these cases, let me introduce you to my favorite static code analysis tool: semgrep. It's a free Open Source tool that you can install and use right now (it only starts costing money if you want to use their dashboard to view the results, which is entirely optional, and all code scanning runs on your device - code is never uploaded to any servers). As stated briefly, semgrep searches for code matching specific... - Source: dev.to / over 1 year ago
View more

Shellcheck mentions (29)

  • I reduced the size of my Docker image by 40% – Dockerizing shell scripts
    > Are "Random shell scripts from the internet" categorically worse than "random docker images from the internet"? > With the shell script, you can literally read it in an ... ... https://shellcheck.net. Can't do that if all of the work is hidden in a Dockerfile's RUN statement. I have my team commit shell scripts in shell script files, and the Dockerfile just runs that shell script. - Source: Hacker News / 3 months ago
  • TermiC: Terminal C, Interactive C/C++ REPL shell created with BASH
    Nice script. It's... uhhh... Not shellcheck-clean. https://shellcheck.net/. - Source: Hacker News / 9 months ago
  • ChatGPT is a boon for linux noobs (but use with caution)
    Another fairly valuable resource is https://shellcheck.net which I use a bit more often than ChatGPT if I need help scripting. Source: 12 months ago
  • I can't run the shell
    Always check your shell scripts at a site like http://shellcheck.net. Source: 12 months ago
  • Need Help with Key Binding
    Once you get the command close to where you want it shellcheck.net is an amazing resource for fixing broken bash things. Paste your command line in and shellcheck will fix any syntax errors. Source: 12 months ago
View more

What are some alternatives?

When comparing Semgrep and Shellcheck, you can also consider the following products

SonarQube - SonarQube, a core component of the Sonar solution, is an open source, self-managed tool that systematically helps developers and organizations deliver Clean Code.

Cppcheck - Cppcheck is an analysis tool for C/C++ code. It detects the types of bugs that the compilers normally fail to detect. The goal is no false positives. CppCheckDownload cppcheck for free.

Snyk - Snyk helps you use open source and stay secure. Continuously find and fix vulnerabilities for npm, Maven, NuGet, RubyGems, PyPI and much more.

Coverity Scan - Find and fix defects in your Java, C/C++ or C# open source project for free

Codacy - Automatically reviews code style, security, duplication, complexity, and coverage on every change while tracking code quality throughout your sprints.

Flawfinder - David A. Wheeler's Page for Flawfinder