Skip to content

Instantly share code, notes, and snippets.

@orbitcowboy
Created August 13, 2016 16:07
Show Gist options
  • Save orbitcowboy/b3a6baef31afda29276880dce7d3fd8a to your computer and use it in GitHub Desktop.
Save orbitcowboy/b3a6baef31afda29276880dce7d3fd8a to your computer and use it in GitHub Desktop.
Run cppcheck on multiple sln files
#!/bin/bash
find . -type f -name '*.sln' -exec readlink -f {} \; | uniq | sed -e 's/^/cppcheck --enable=all --std=posix --library=std,windows --project=/' > /tmp/cppcheck.sh && sh /tmp/cppcheck.sh && rm /tmp/cppcheck.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment