Skip to content

Instantly share code, notes, and snippets.

@obrok
obrok / mlint.sh
Created May 21, 2012 22:54
Tool to run an appropriate lint on every modified file
#!/bin/bash
# Requirements:
# - node.js (brew install node || open http://nodejs.org/dist/v0.6.18/node-v0.6.18.pkg)
# - jslint (brew install jslint)
# - coffeelint (npm install -g coffeelint)
# - csslint (npm install -g csslint)
# - reek (gem install reek)
for file in `git status -s | awk '{ print $2 }'`