summaryrefslogtreecommitdiff
path: root/tools/lint-hunks.py
AgeCommit message (Collapse)Author
2013-10-15lint-hunks: remove runtime/int filterGuillaume Martres
There's no good reason to use types like long or short in new code. Change-Id: Ic6de6259d5a99b7af478e9c6ab74e65d81b022e2
2012-10-19lint-hunks: better support for working treeJohn Koleszar
When run with no arguments, report warnings in the diff between the working tree and HEAD. With arguments, report warnings in the diff between the named commit and its parents. Change-Id: Ie10dcdecb303edf8af51bad645cc11206a1fc26b
2012-10-17lint-hunks: exit status for only affected linesJohn Koleszar
Prior to this patch, if there were any lint errors, this script would exit with an error, even if those errors were not in the hunks being tested by this script. This change makes it so that if any lint lines are printed, an error is returned. Change-Id: I69c8bef4367ccf25d287508f29e587b1f4426143
2012-10-17lint-hunks: support operating on arbirary revsJohn Koleszar
Rather than diffing only the index, support checking arbitrary commits. Change-Id: Ia135a487990d8293d1e0799dc062b9f49e020b25
2012-08-10lint_hunks: show style violations in the indexJohn Koleszar
Shows the subset of style violations that intersect with lines modified in the current index. Change-Id: I0b51674fd43df118e8bbf55b684a1ca0bd0e1d40