Mercurial > hg
comparison tests/test-check-code.t @ 15281:aeeb2afcdc25 stable
check-code: support multiline matches like try/except/finally
- match one pattern at a time against entire file
- find line containing match
- sort matches by line number
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 16 Oct 2011 20:26:20 -0500 |
parents | b071cd58af50 |
children | 42e71f5852ee |
comparison
equal
deleted
inserted
replaced
15280:52bc0c4daaf9 | 15281:aeeb2afcdc25 |
---|---|
48 ./wrong.py:2: | 48 ./wrong.py:2: |
49 > del(arg2) | 49 > del(arg2) |
50 Python keyword is not a function | 50 Python keyword is not a function |
51 ./wrong.py:3: | 51 ./wrong.py:3: |
52 > return ( 5+6, 9) | 52 > return ( 5+6, 9) |
53 gratuitous whitespace in () or [] | |
53 missing whitespace in expression | 54 missing whitespace in expression |
54 gratuitous whitespace in () or [] | |
55 ./quote.py:5: | 55 ./quote.py:5: |
56 > '"""', 42+1, """and | 56 > '"""', 42+1, """and |
57 missing whitespace in expression | 57 missing whitespace in expression |
58 ./non-py24.py:2: | 58 ./non-py24.py:2: |
59 > if any(): | 59 > if any(): |