Allow custom checks for lines
Bug #1276664 reported by
Adi Roiban
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pocket-lint |
Triaged
|
High
|
Unassigned |
Bug Description
I am submitting this code since I already use it and maybe someone else can find it useful.
I am thinking of a simple extension to allow custom regex checks for lines. multi lines regex are not supported.
In my project we mark all tech-debts with a ticket in the issue tracking system but also with a strict format comment in the code. Ex FIXME:123: . TODO or other FIXME:XXX: markers are not allowed as it is much harder to track their progress.
Also each branch name contains a ticket ID so the linter will also check fro FIXME:BRANCH_ID: and make sure all markers were removed while working on BRANCH_ID.
Related branches
lp://staging/~adiroiban/pocket-lint/line-regex
- Curtis Hovey: Approve (code)
-
Diff: 241 lines (+63/-14)8 files modifiedpocketlint/formatcheck.py (+26/-0)
pocketlint/tests/test_css.py (+2/-2)
pocketlint/tests/test_go.py (+2/-2)
pocketlint/tests/test_javascript.py (+2/-2)
pocketlint/tests/test_python.py (+2/-2)
pocketlint/tests/test_sql.py (+2/-2)
pocketlint/tests/test_text.py (+25/-2)
pocketlint/tests/test_xml.py (+2/-2)
Changed in pocket-lint: | |
status: | New → Triaged |
importance: | Undecided → High |
To post a comment you must log in.