Debian Codegraph @

proselint/checks/annotations/misc.py

raw
1 """Annotation left in text.
2
3 ---
4 layout: post
5 source: SublimeLinter-annotations
6 source_url: http://bit.ly/16Q7H41
7 title: archaism
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Annotation left in text.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Check the text."""
21 err = "annotations.misc"
22 msg = "Annotation left in text."
23
24 annotations = [
25 "FIXME",
26 "FIX ME",
27 "TODO",
28 "todo",
29 "ERASE THIS",
30 "FIX THIS",
31 ]
32
33 return existence_check(
34 text, annotations, err, msg, ignore_case=False, join=True)