Commit b314ff9b authored by Michal Čihař's avatar Michal Čihař

Ignore all two letter words in same check

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 283b519d
...@@ -41,7 +41,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -41,7 +41,6 @@ SAME_BLACKLIST = frozenset((
'administrator', 'administrator',
'administration', 'administration',
'africa', 'africa',
'ah',
'alarm', 'alarm',
'album', 'album',
'aliasing', 'aliasing',
...@@ -71,7 +70,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -71,7 +70,6 @@ SAME_BLACKLIST = frozenset((
'bar', 'bar',
'baseball', 'baseball',
'battery', 'battery',
'bb',
'begin', 'begin',
'bios', 'bios',
'bit', 'bit',
...@@ -102,7 +100,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -102,7 +100,6 @@ SAME_BLACKLIST = frozenset((
'click', 'click',
'clipboard', 'clipboard',
'club', 'club',
'cm',
'code', 'code',
'collation', 'collation',
'color', 'color',
...@@ -125,7 +122,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -125,7 +122,6 @@ SAME_BLACKLIST = frozenset((
'data', 'data',
'database', 'database',
'date', 'date',
'db',
'dbm', 'dbm',
'debian', 'debian',
'debug', 'debug',
...@@ -143,7 +139,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -143,7 +139,6 @@ SAME_BLACKLIST = frozenset((
'direction', 'direction',
'distribution', 'distribution',
'distro', 'distro',
'dm',
'doc', 'doc',
'docs', 'docs',
'doctor', 'doctor',
...@@ -169,7 +164,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -169,7 +164,6 @@ SAME_BLACKLIST = frozenset((
'enum', 'enum',
'error', 'error',
'escape', 'escape',
'eu',
'exchange', 'exchange',
'excel', 'excel',
'expert', 'expert',
...@@ -197,7 +191,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -197,7 +191,6 @@ SAME_BLACKLIST = frozenset((
'format', 'format',
'freemind', 'freemind',
'freeplane', 'freeplane',
'ft',
'full', 'full',
'fulltext', 'fulltext',
'function', 'function',
...@@ -246,7 +239,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -246,7 +239,6 @@ SAME_BLACKLIST = frozenset((
'icmp', 'icmp',
'icon', 'icon',
'icons', 'icons',
'id',
'ids', 'ids',
'idea', 'idea',
'ignore', 'ignore',
...@@ -257,7 +249,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -257,7 +249,6 @@ SAME_BLACKLIST = frozenset((
'imei', 'imei',
'imsi', 'imsi',
'import', 'import',
'in',
'inconsistent', 'inconsistent',
'index', 'index',
'india', 'india',
...@@ -291,12 +282,9 @@ SAME_BLACKLIST = frozenset(( ...@@ -291,12 +282,9 @@ SAME_BLACKLIST = frozenset((
'joins', 'joins',
'jpeg', 'jpeg',
'karaoke', 'karaoke',
'kb',
'kernel', 'kernel',
'kib', 'kib',
'km',
'knoppix', 'knoppix',
'ko',
'kong', 'kong',
'label', 'label',
'land', 'land',
...@@ -324,7 +312,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -324,7 +312,6 @@ SAME_BLACKLIST = frozenset((
'longitude', 'longitude',
'lord', 'lord',
'ltr', 'ltr',
'ma',
'mah', 'mah',
'manager', 'manager',
'mandrake', 'mandrake',
...@@ -348,7 +335,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -348,7 +335,6 @@ SAME_BLACKLIST = frozenset((
'messages', 'messages',
'meta', 'meta',
'metal', 'metal',
'mi',
'mib', 'mib',
'micropayment', 'micropayment',
'micropayments', 'micropayments',
...@@ -360,7 +346,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -360,7 +346,6 @@ SAME_BLACKLIST = frozenset((
'minus', 'minus',
'minute', 'minute',
'minutes', 'minutes',
'mm',
'model', 'model',
'module', 'module',
'modules', 'modules',
...@@ -370,10 +355,8 @@ SAME_BLACKLIST = frozenset(( ...@@ -370,10 +355,8 @@ SAME_BLACKLIST = frozenset((
'motif', 'motif',
'mouse', 'mouse',
'mph', 'mph',
'ms',
'multiplayer', 'multiplayer',
'musicbottle', 'musicbottle',
'mv',
'name', 'name',
'namecoin', 'namecoin',
'namecoins', 'namecoins',
...@@ -383,13 +366,11 @@ SAME_BLACKLIST = frozenset(( ...@@ -383,13 +366,11 @@ SAME_BLACKLIST = frozenset((
'network', 'network',
'neutral', 'neutral',
'nimh', 'nimh',
'no',
'node', 'node',
'none', 'none',
'normal', 'normal',
'note', 'note',
'notify', 'notify',
'nt',
'null', 'null',
'num', 'num',
'numeric', 'numeric',
...@@ -397,7 +378,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -397,7 +378,6 @@ SAME_BLACKLIST = frozenset((
'office', 'office',
'offline', 'offline',
'ogg', 'ogg',
'ok',
'online', 'online',
'opac', 'opac',
'open', 'open',
...@@ -411,7 +391,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -411,7 +391,6 @@ SAME_BLACKLIST = frozenset((
'option', 'option',
'options', 'options',
'orientation', 'orientation',
'os',
'osm', 'osm',
'osmand', 'osmand',
'output', 'output',
...@@ -448,7 +427,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -448,7 +427,6 @@ SAME_BLACKLIST = frozenset((
'plural', 'plural',
'plus', 'plus',
'png', 'png',
'po',
'point', 'point',
'polygon', 'polygon',
'polymer', 'polymer',
...@@ -472,10 +450,8 @@ SAME_BLACKLIST = frozenset(( ...@@ -472,10 +450,8 @@ SAME_BLACKLIST = frozenset((
'protocol', 'protocol',
'provider', 'provider',
'proxy', 'proxy',
'pt',
'pull', 'pull',
'push', 'push',
'px',
'python', 'python',
'python-gammu', 'python-gammu',
'query', 'query',
...@@ -605,14 +581,12 @@ SAME_BLACKLIST = frozenset(( ...@@ -605,14 +581,12 @@ SAME_BLACKLIST = frozenset((
'tray', 'tray',
'trigger', 'trigger',
'triggers', 'triggers',
'ts',
'tutorial', 'tutorial',
'tour', 'tour',
'type', 'type',
'twiki', 'twiki',
'twitter', 'twitter',
'ubuntu', 'ubuntu',
'ui',
'ukolovnik', 'ukolovnik',
'unicode', 'unicode',
'unique', 'unique',
...@@ -652,7 +626,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -652,7 +626,6 @@ SAME_BLACKLIST = frozenset((
'xkeys', 'xkeys',
'xml', 'xml',
'yard', 'yard',
'yd',
'zen', 'zen',
'zero', 'zero',
'zip', 'zip',
...@@ -686,13 +659,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -686,13 +659,6 @@ SAME_BLACKLIST = frozenset((
'dec', 'dec',
# Week names shotrcuts # Week names shotrcuts
'mo',
'tu',
'we',
'th',
'fr',
'sa',
'su',
'mon', 'mon',
'tue', 'tue',
'wed', 'wed',
...@@ -702,10 +668,7 @@ SAME_BLACKLIST = frozenset(( ...@@ -702,10 +668,7 @@ SAME_BLACKLIST = frozenset((
'sun', 'sun',
# Roman numbers # Roman numbers
'ii',
'iii', 'iii',
'iv',
'vi',
# Architectures # Architectures
'alpha', 'alpha',
...@@ -823,7 +786,6 @@ SAME_BLACKLIST = frozenset(( ...@@ -823,7 +786,6 @@ SAME_BLACKLIST = frozenset((
'nahuatl', 'nahuatl',
'neapolitan', 'neapolitan',
'nepali', 'nepali',
'n\'ko',
'norwegian', 'norwegian',
'nynorsk', 'nynorsk',
'occitan', 'occitan',
...@@ -987,7 +949,7 @@ def test_word(word): ...@@ -987,7 +949,7 @@ def test_word(word):
''' '''
Test whether word should be ignored. Test whether word should be ignored.
''' '''
return len(word) <= 1 or word in SAME_BLACKLIST return len(word) <= 2 or word in SAME_BLACKLIST
class SameCheck(TargetCheck): class SameCheck(TargetCheck):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment