1: D290 White spaces around docstring should be trimmed.
4: L102 copyright year is outdated, expected 2015 but got 2012
28:1: I100 Imports statements are in the wrong order. from operator should be before from pprint
29:1: I100 Imports statements are in the wrong order. import re should be before from operator
38:1: I101 Imported names are in the wrong order. Should be CFG_BASE_URL, CFG_SITE_URL
39:1: I101 Imported names are in the wrong order. Should be AID_ENABLED, BIBAUTHORID_UI_SKIP_ARXIV_STUB_PAGE, MAX_NUM_SHOW_PAPERS, PERSONS_PER_PAGE, PERSON_SEARCH_RESULTS_SHOW_PAPERS_PERSON_LIMIT, VALID_EXPORT_FILTERS
39:1: I100 Imports statements are in the wrong order. from invenio.bibauthorid_config should be before from invenio.config
39:1: F401 'PERSON_SEARCH_RESULTS_SHOW_PAPERS_PERSON_LIMIT' imported but unused
39:1: F401 'BIBAUTHORID_UI_SKIP_ARXIV_STUB_PAGE' imported but unused
39:1: F401 'PERSONS_PER_PAGE' imported but unused
40:29: E126 continuation line over-indented for hanging indent
43:1: I101 Imported names are in the wrong order. Should be CFG_INSPIRE_SITE, CFG_SITE_LANG, CFG_SITE_NAME, CFG_SITE_SECURE_URL, CFG_SITE_URL
43:1: F999 redefinition of unused 'CFG_SITE_URL' from line 38
45:1: I100 Imports statements are in the wrong order. from invenio.bibauthorid_name_utils should be before from invenio.config
46:1: I101 Imported names are in the wrong order. Should be page, pagefooteronly, pageheaderonly
46:1: F401 'pageheaderonly' imported but unused
46:1: F401 'pagefooteronly' imported but unused
47:1: I100 Imports statements are in the wrong order. from invenio.messages should be before from invenio.webpage
49:1: I101 Imported names are in the wrong order. Should be WebInterfaceDirectory, wash_urlargd
50:1: I100 Imports statements are in the wrong order. from invenio.session should be before from invenio.webinterface_handler
51:1: I101 Imported names are in the wrong order. Should be get_canonical_and_alternates_urls, redirect_to_url
51:1: F401 'get_canonical_and_alternates_urls' imported but unused
52:1: I101 Imported names are in the wrong order. Should be collect_user_info, emailUnique, email_valid_p, getUid, get_email_from_username, get_uid_from_email, get_user_preferences, isGuestUser, page_not_authorized, set_user_preferences
52:1: F401 'get_user_preferences' imported but unused
52:1: F401 'set_user_preferences' imported but unused
62:1: I100 Imports statements are in the wrong order. from invenio.access_control_admin should be before from invenio.webuser
62:1: F401 'acc_get_user_roles' imported but unused
65:1: I100 Imports statements are in the wrong order. from invenio.bibauthorid_config should be before from invenio.search_engine_utils
67:1: I100 Imports statements are in the wrong order. import invenio.webauthorprofile_interface should be before import invenio.webinterface_handler_config
68:1: I100 Imports statements are in the wrong order. import invenio.bibauthorid_webapi should be before import invenio.webauthorprofile_interface
69:1: I101 Imported names are in the wrong order. Should be get_title_of_arxiv_pubid, get_title_of_doi, is_valid_orcid
69:1: I100 Imports statements are in the wrong order. from invenio.bibauthorid_general_utils should be before import invenio.bibauthorid_webapi
69:1: F401 'get_title_of_doi' imported but unused
69:1: F401 'get_title_of_arxiv_pubid' imported but unused
70:1: I101 Imported names are in the wrong order. Should be get_claimed_papers_of_author, get_orcid_id_of_author, get_title_of_paper, get_validated_request_tickets_for_author, update_external_ids_of_authors
70:1: I100 Imports statements are in the wrong order. from invenio.bibauthorid_backinterface should be before from invenio.bibauthorid_general_utils
71:13: E126 continuation line over-indented for hanging indent
75:1: I101 Imported names are in the wrong order. Should be author_has_papers, get_person_id_from_canonical_id, get_person_redirect_link, is_valid_canonical_id
75:1: I100 Imports statements are in the wrong order. from invenio.bibauthorid_webauthorprofileinterface should be before from invenio.webauthorprofile_orcidutils
78:1: I100 Imports statements are in the wrong order. from invenio.bibauthorid_templates should be before from invenio.bibauthorid_webauthorprofileinterface
82:1: I101 Imported names are in the wrong order. Should be field_get_subfield_values, record_get_field_instances, record_get_field_value, record_get_field_values
83:31: E126 continuation line over-indented for hanging indent
88:1: E302 expected 2 blank lines, found 1
88: D203 Expected 1 blank line *before* class docstring, found 0
88: D204 Expected 1 blank line *after* class docstring, found 0
88: D300 Expected """-quotes, got '''-quotes
114: D401 First line should be imperative: 'Thi', not 'This'
114: D400 First line should end with '.', not ':'
114: D205 Blank line missing between one-line summary and description
114: D300 Expected """-quotes, got '''-quotes
121:12: E713 test for membership should be 'not in'
130: D300 Expected """-quotes, got '''-quotes
167: D205 Blank line missing between one-line summary and description
167: D300 Expected """-quotes, got '''-quotes
260:5: E303 too many blank lines (2)
260: D300 Expected """-quotes, got '''-quotes
297:19: E127 continuation line over-indented for visual indent
299:13: E129 visually indented line with same indent as next logical line
313:21: E713 test for membership should be 'not in'
315:5: E129 visually indented line with same indent as next logical line
330: D401 First line should be imperative: 'Generate', not 'Generates'
330: D300 Expected """-quotes, got '''-quotes
359:9: E303 too many blank lines (2)
366:5: E303 too many blank lines (2)
366: D401 First line should be imperative: 'Generate', not 'Generates'
366: D300 Expected """-quotes, got '''-quotes
417:9: E303 too many blank lines (2)
424:5: E303 too many blank lines (2)
424: D401 First line should be imperative: 'Generate', not 'Generates'
424: D400 First line should end with '.', not 'n'
424: D205 Blank line missing between one-line summary and description
424: D300 Expected """-quotes, got '''-quotes
472:9: E303 too many blank lines (2)
479:5: E303 too many blank lines (2)
479: D401 First line should be imperative: 'Generate', not 'Generates'
479: D300 Expected """-quotes, got '''-quotes
504:9: E303 too many blank lines (2)
511:5: E303 too many blank lines (2)
511: D401 First line should be imperative: 'Generate', not 'Generates'
511: D300 Expected """-quotes, got '''-quotes
595:29: E711 comparison to None should be 'if cond is None:'
640:9: E303 too many blank lines (2)
647:5: E303 too many blank lines (2)
647: D401 First line should be imperative: 'Generate', not 'Generates'
647: D300 Expected """-quotes, got '''-quotes
673:5: E303 too many blank lines (2)
673: D400 First line should end with '.', not 'f'
673: D205 Blank line missing between one-line summary and description
673: D300 Expected """-quotes, got '''-quotes
698:73: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
706:77: E712 comparison to True should be 'if cond is True:' or 'if cond:'
707:71: E221 multiple spaces before operator
710:18: E713 test for membership should be 'not in'
712:55: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
715:69: E221 multiple spaces before operator
718:55: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
727:5: E303 too many blank lines (2)
728: D401 First line should be imperative: 'Determine', not 'Determines'
728: D400 First line should end with '.', not 'n'
728: D300 Expected """-quotes, got '''-quotes
756:36: F821 undefined name 'acc_find_user_role_actions'
765:5: E303 too many blank lines (2)
766: D401 First line should be imperative: 'Return', not 'Returns'
766: D205 Blank line missing between one-line summary and description
766: D300 Expected """-quotes, got '''-quotes
777:5: E303 too many blank lines (2)
815:21: E129 visually indented line with same indent as next logical line
829:5: E303 too many blank lines (2)
829: D205 Blank line missing between one-line summary and description
829: D300 Expected """-quotes, got '''-quotes
867:53: E231 missing whitespace after ':'
875:47: E231 missing whitespace after ':'
908:9: F841 local variable 'ulevel' is assigned to but never used
952:14: E127 continuation line over-indented for visual indent
953:14: E127 continuation line over-indented for visual indent
959: D401 First line should be imperative: 'associate', not 'associates'
959: D400 First line should end with '.', not 'd'
959: D300 Expected """-quotes, got '''-quotes
959: D200 One-line docstring should not occupy 3 lines
967:29: E128 continuation line under-indented for visual indent
973:29: E128 continuation line under-indented for visual indent
979:29: E128 continuation line under-indented for visual indent
986: D401 First line should be imperative: 'associate', not 'associates'
986: D400 First line should end with '.', not 'd'
986: D300 Expected """-quotes, got '''-quotes
986: D200 One-line docstring should not occupy 3 lines
994:29: E128 continuation line under-indented for visual indent
1000:29: E128 continuation line under-indented for visual indent
1020:29: E128 continuation line under-indented for visual indent
1026: D401 First line should be imperative: 'associate', not 'associates'
1026: D400 First line should end with '.', not 'd'
1026: D300 Expected """-quotes, got '''-quotes
1026: D200 One-line docstring should not occupy 3 lines
1034:25: E128 continuation line under-indented for visual indent
1050:22: E225 missing whitespace around operator
1060:18: E127 continuation line over-indented for visual indent
1064:22: E127 continuation line over-indented for visual indent
1068:22: E127 continuation line over-indented for visual indent
1093:46: E127 continuation line over-indented for visual indent
1102: D401 First line should be imperative: 'emptie', not 'empties'
1102: D400 First line should end with '.', not 'e'
1102: D205 Blank line missing between one-line summary and description
1102: D300 Expected """-quotes, got '''-quotes
1130:29: E128 continuation line under-indented for visual indent
1221:29: E128 continuation line under-indented for visual indent
1226:29: E128 continuation line under-indented for visual indent
1256:29: E128 continuation line under-indented for visual indent
1265:29: E128 continuation line under-indented for visual indent
1271:29: E128 continuation line under-indented for visual indent
1278:52: E251 unexpected spaces around keyword / parameter equals
1278:54: E251 unexpected spaces around keyword / parameter equals
1305: D401 First line should be imperative: 'delete', not 'deletes'
1305: D400 First line should end with '.', not 'd'
1305: D300 Expected """-quotes, got '''-quotes
1305: D200 One-line docstring should not occupy 3 lines
1313:29: E128 continuation line under-indented for visual indent
1319:29: E128 continuation line under-indented for visual indent
1328:25: E128 continuation line under-indented for visual indent
1330: D401 First line should be imperative: 'perform', not 'performs'
1330: D400 First line should end with '.', not 'e'
1330: D300 Expected """-quotes, got '''-quotes
1330: D200 One-line docstring should not occupy 3 lines
1405: D401 First line should be imperative: 'send', not 'sends'
1405: D400 First line should end with '.', not 'n'
1405: D300 Expected """-quotes, got '''-quotes
1405: D200 One-line docstring should not occupy 3 lines
1456:13: E303 too many blank lines (2)
1480:29: E128 continuation line under-indented for visual indent
1486:29: E128 continuation line under-indented for visual indent
1526:5: E303 too many blank lines (2)
1526: D400 First line should end with '.', not 'd'
1526: D300 Expected """-quotes, got '''-quotes
1562:13: E129 visually indented line with same indent as next logical line
1581:13: E128 continuation line under-indented for visual indent
1582:13: E128 continuation line under-indented for visual indent
1583:13: E128 continuation line under-indented for visual indent
1584:13: E128 continuation line under-indented for visual indent
1586: D401 First line should be imperative: 'Initialize', not 'Initializes'
1586: D400 First line should end with '.', not 'o'
1586: D300 Expected """-quotes, got '''-quotes
1607:5: E303 too many blank lines (2)
1607: D401 First line should be imperative: 'delete', not 'deletes'
1607: D400 First line should end with '.', not 't'
1607: D300 Expected """-quotes, got '''-quotes
1607: D200 One-line docstring should not occupy 3 lines
1616:5: E303 too many blank lines (2)
1616: D401 First line should be imperative: 'delete', not 'deletes'
1616: D400 First line should end with '.', not 't'
1616: D300 Expected """-quotes, got '''-quotes
1616: D200 One-line docstring should not occupy 3 lines
1623:5: E303 too many blank lines (2)
1623: D300 Expected """-quotes, got '''-quotes
1623: D200 One-line docstring should not occupy 3 lines
1649:5: E303 too many blank lines (2)
1649: D300 Expected """-quotes, got '''-quotes
1670:25: E128 continuation line under-indented for visual indent
1674:17: E128 continuation line under-indented for visual indent
1675:17: E128 continuation line under-indented for visual indent
1676:17: E128 continuation line under-indented for visual indent
1677:17: E128 continuation line under-indented for visual indent
1678:17: E128 continuation line under-indented for visual indent
1681:5: E303 too many blank lines (2)
1681: D401 First line should be imperative: 'Clean', not 'Cleans'
1681: D400 First line should end with '.', not 'd'
1681: D205 Blank line missing between one-line summary and description
1681: D300 Expected """-quotes, got '''-quotes
1702:13: E129 visually indented line with same indent as next logical line
1722: D400 First line should end with '.', not 'n'
1722: D205 Blank line missing between one-line summary and description
1722: D300 Expected """-quotes, got '''-quotes
1741: D400 First line should end with '.', not 'd'
1741: D300 Expected """-quotes, got '''-quotes
1776: D400 First line should end with '.', not 'e'
1776: D205 Blank line missing between one-line summary and description
1776: D300 Expected """-quotes, got '''-quotes
1792:9: F841 local variable 'person_id' is assigned to but never used
1793:9: F841 local variable 'uid' is assigned to but never used
1837:9: E303 too many blank lines (2)
1863:9: E303 too many blank lines (2)
1875:55: E251 unexpected spaces around keyword / parameter equals
1875:57: E251 unexpected spaces around keyword / parameter equals
1878:9: E303 too many blank lines (2)
1885: D400 First line should end with '.', not 's'
1885: D300 Expected """-quotes, got '''-quotes
1980: D401 First line should be imperative: 'call', not 'calls'
1980: D400 First line should end with '.', not 's'
1980: D300 Expected """-quotes, got '''-quotes
1993:9: F841 local variable 'nquery' is assigned to but never used
2016: D400 First line should end with '.', not 's'
2016: D205 Blank line missing between one-line summary and description
2016: D300 Expected """-quotes, got '''-quotes
2035:16: W601 .has_key() is deprecated, use 'in'
2047:29: W601 .has_key() is deprecated, use 'in'
2073:29: W601 .has_key() is deprecated, use 'in'
2095:29: W601 .has_key() is deprecated, use 'in'
2127: D300 Expected """-quotes, got '''-quotes
2145:16: W601 .has_key() is deprecated, use 'in'
2157:29: W601 .has_key() is deprecated, use 'in'
2160:43: E127 continuation line over-indented for visual indent
2169:29: W601 .has_key() is deprecated, use 'in'
2177:29: W601 .has_key() is deprecated, use 'in'
2185:29: W601 .has_key() is deprecated, use 'in'
2196:5: E303 too many blank lines (2)
2196: D400 First line should end with '.', not 'e'
2196: D300 Expected """-quotes, got '''-quotes
2286:112: E202 whitespace before ')'
2316: D400 First line should end with '.', not 'x'
2316: D300 Expected """-quotes, got '''-quotes
2336:9: F841 local variable 'pinfo' is assigned to but never used
2354: D400 First line should end with '.', not 'x'
2354: D300 Expected """-quotes, got '''-quotes
2398: D400 First line should end with '.', not 'x'
2398: D300 Expected """-quotes, got '''-quotes
2435: D102 Docstring missing
2439:20: W601 .has_key() is deprecated, use 'in'
2447:9: B901 blind except: statement
2517:5: E303 too many blank lines (2)
2518: D102 Docstring missing
2531:13: B901 blind except: statement
2548:5: E303 too many blank lines (2)
2549: D400 First line should end with '.', not 'x'
2549: D300 Expected """-quotes, got '''-quotes
2564: D400 First line should end with '.', not 'x'
2564: D300 Expected """-quotes, got '''-quotes
2575: D400 First line should end with '.', not 'x'
2575: D300 Expected """-quotes, got '''-quotes
2598: D400 First line should end with '.', not 'x'
2598: D300 Expected """-quotes, got '''-quotes
2615:33: E231 missing whitespace after ','
2623: D400 First line should end with '.', not 'x'
2623: D300 Expected """-quotes, got '''-quotes
2651: D400 First line should end with '.', not 'e'
2651: D300 Expected """-quotes, got '''-quotes
2690:26: E128 continuation line under-indented for visual indent
2704: D102 Docstring missing
2741:5: E303 too many blank lines (2)
2741: D400 First line should end with '.', not 'a'
2741: D300 Expected """-quotes, got '''-quotes
2787:12: E713 test for membership should be 'not in'
2824:5: E303 too many blank lines (2)
2827: D101 Docstring missing
2835: D401 First line should be imperative: 'Thi', not 'This'
2835: D400 First line should end with '.', not ':'
2835: D205 Blank line missing between one-line summary and description
2835: D300 Expected """-quotes, got '''-quotes
2842:12: E713 test for membership should be 'not in'
2851: D300 Expected """-quotes, got '''-quotes
2895: D400 First line should end with '.', not 'e'
2895: D208 Docstring is over-indented
2895: D300 Expected """-quotes, got '''-quotes
2952:13: F841 local variable 'ssl_param' is assigned to but never used
2955:9: E303 too many blank lines (2)
3002:9: E303 too many blank lines (2)
3027:5: E303 too many blank lines (2)
3027: D102 Docstring missing
3057:5: E303 too many blank lines (2)
3057: D102 Docstring missing
3058:43: E231 missing whitespace after ':'
3081:5: E303 too many blank lines (2)
3081: D300 Expected """-quotes, got '''-quotes
3096:20: W601 .has_key() is deprecated, use 'in'
3105:9: B901 blind except: statement
3118:5: E303 too many blank lines (2)
3118: D102 Docstring missing
3119:43: E231 missing whitespace after ':'
3137:5: E303 too many blank lines (2)
3137: D300 Expected """-quotes, got '''-quotes
3152:20: W601 .has_key() is deprecated, use 'in'
3161:9: B901 blind except: statement
3170:5: E303 too many blank lines (2)
3174: D300 Expected """-quotes, got '''-quotes
3195:25: E128 continuation line under-indented for visual indent
3199:17: E128 continuation line under-indented for visual indent
3200:17: E128 continuation line under-indented for visual indent
3201:17: E128 continuation line under-indented for visual indent
3202:17: E128 continuation line under-indented for visual indent
3203:17: E128 continuation line under-indented for visual indent
3206:5: E303 too many blank lines (2)
3209: D101 Docstring missing
3220: D300 Expected """-quotes, got '''-quotes
3245: D300 Expected """-quotes, got '''-quotes
3260:20: W601 .has_key() is deprecated, use 'in'
3268:9: B901 blind except: statement
3287:5: E303 too many blank lines (2)
3287: D300 Expected """-quotes, got '''-quotes
3302:20: W601 .has_key() is deprecated, use 'in'
3310:9: B901 blind except: statement
3326:5: E303 too many blank lines (2)
3326: D300 Expected """-quotes, got '''-quotes
3341:20: W601 .has_key() is deprecated, use 'in'
3352:9: B901 blind except: statement
3373:5: E303 too many blank lines (2)
3373: D300 Expected """-quotes, got '''-quotes
3388:20: W601 .has_key() is deprecated, use 'in'
3399:9: B901 blind except: statement
3424:5: E303 too many blank lines (2)
3424: D300 Expected """-quotes, got '''-quotes
3439:20: W601 .has_key() is deprecated, use 'in'
3450:9: B901 blind except: statement
3475:5: E303 too many blank lines (2)
3475: D300 Expected """-quotes, got '''-quotes
3490:20: W601 .has_key() is deprecated, use 'in'
3497:72: E231 missing whitespace after ','
3498:70: E231 missing whitespace after ','
3499:62: E231 missing whitespace after ','
3502:9: B901 blind except: statement
3537:5: E303 too many blank lines (2)
3537: D300 Expected """-quotes, got '''-quotes
3552:20: W601 .has_key() is deprecated, use 'in'
3560:9: B901 blind except: statement
3579:5: E303 too many blank lines (2)
3589:5: E303 too many blank lines (2)
3594: D203 Expected 1 blank line *before* class docstring, found 0
3594: D204 Expected 1 blank line *after* class docstring, found 0
3594: D200 One-line docstring should not occupy 3 lines
3655: D102 Docstring missing
3675: D203 Expected 1 blank line *before* class docstring, found 0
3675: D204 Expected 1 blank line *after* class docstring, found 0
3675: D300 Expected """-quotes, got '''-quotes
3716: D102 Docstring missing
3719: D102 Docstring missing
3752: D203 Expected 1 blank line *before* class docstring, found 0
3752: D204 Expected 1 blank line *after* class docstring, found 0
3752: D300 Expected """-quotes, got '''-quotes
3759:26: E231 missing whitespace after ','
3761: D102 Docstring missing
3764: D102 Docstring missing
3767: D400 First line should end with '.', not 'm'
3767: D200 One-line docstring should not occupy 3 lines
3775:29: E124 closing bracket does not match visual indentation
3827:34: E251 unexpected spaces around keyword / parameter equals
3827:36: E251 unexpected spaces around keyword / parameter equals


1: M100 needs more reviewers
1: M111 unrecognized component name: shellutils


1: D400 First line should end with '.', not 'g'
1: D205 Blank line missing between one-line summary and description
4: L102 copyright year is outdated, expected 2015 but got 2011
29:1: I100 Imports statements are in the wrong order. import fcntl should be before import os
32:1: I100 Imports statements are in the wrong order. import signal should be before import time
33:1: I100 Imports statements are in the wrong order. import select should be before import signal
35:1: I100 Imports statements are in the wrong order. from cStringIO should be before from itertools
36:1: I100 Imports statements are in the wrong order. import subprocess should be before from cStringIO
60: D203 Expected 1 blank line *before* class docstring, found 0
60: D204 Expected 1 blank line *after* class docstring, found 0
60: D200 One-line docstring should not occupy 2 lines
66: D400 First line should end with '.', not 's'
66: D205 Blank line missing between one-line summary and description
130:21: E126 continuation line over-indented for hanging indent
136:21: E126 continuation line over-indented for hanging indent
285: D400 First line should end with '.', not 'n'
285: D205 Blank line missing between one-line summary and description
304:1: E302 expected 2 blank lines, found 1
304: D200 One-line docstring should not occupy 3 lines
311:50: E128 continuation line under-indented for visual indent
312:50: E128 continuation line under-indented for visual indent
324: D401 First line should be imperative: 'work', not 'works'
324: D400 First line should end with '.', not ')'
324: D205 Blank line missing between one-line summary and description
324: D208 Docstring is over-indented
333:67: E502 the backslash is redundant between brackets
350: D400 First line should end with '.', not 'e'
350: D205 Blank line missing between one-line summary and description


1: M100 needs more reviewers


1: D290 White spaces around docstring should be trimmed.
1: D400 First line should end with '.', not 'I'
4: L102 copyright year is outdated, expected 2015 but got 2012
25:1: I100 Imports statements are in the wrong order. import datetime should be before import urllib2
27:1: I100 Imports statements are in the wrong order. from time should be before from xml.dom.minidom
29:1: I101 Imported names are in the wrong order. Should be CFG_CROSSREF_EMAIL, CFG_CROSSREF_PASSWORD, CFG_CROSSREF_USERNAME, CFG_ETCDIR
33:1: I100 Imports statements are in the wrong order. from invenio.bibconvert_xslt_engine should be before from invenio.config
36:1: I100 Imports statements are in the wrong order. from invenio.jsonutils should be before from invenio.urlutils
46: D203 Expected 1 blank line *before* class docstring, found 0
46: D204 Expected 1 blank line *after* class docstring, found 0
46: D400 First line should end with '.', not 's'
48: D400 First line should end with '.', not 'n'
52: D401 First line should be imperative: 'Return', not 'Returns'
52: D400 First line should end with '.', not 'e'
57: D205 Blank line missing between one-line summary and description
72:52: E222 multiple spaces after operator
89:5: E122 continuation line missing indentation or outdented
91:39: E502 the backslash is redundant between brackets
96: D400 First line should end with '.', not 's'
186: D400 First line should end with '.', not 'h'
186: D200 One-line docstring should not occupy 3 lines
222: D400 First line should end with '.', not '6'
222: D205 Blank line missing between one-line summary and description
247:1: E302 expected 2 blank lines, found 1
247: D200 One-line docstring should not occupy 3 lines


1: D400 First line should end with '.', not 'd'
1: D205 Blank line missing between one-line summary and description
4: L102 copyright year is outdated, expected 2015 but got 2014
37:1: I100 Imports statements are in the wrong order. import socket should be before import urlparse
38:1: I100 Imports statements are in the wrong order. import smtplib should be before import socket
39:1: I100 Imports statements are in the wrong order. import re should be before import smtplib
40:1: I100 Imports statements are in the wrong order. import random should be before import re
41:1: I100 Imports statements are in the wrong order. import datetime should be before import random
43:1: I100 Imports statements are in the wrong order. import os should be before from socket
44:1: I100 Imports statements are in the wrong order. import binascii should be before import os
47:1: I101 Imported names are in the wrong order. Should be CFG_ACCESS_CONTROL_LEVEL_ACCOUNTS, CFG_ACCESS_CONTROL_LEVEL_GUESTS, CFG_ACCESS_CONTROL_LEVEL_SITE, CFG_ACCESS_CONTROL_LIMIT_REGISTRATION_TO_DOMAIN, CFG_ACCESS_CONTROL_NOTIFY_ADMIN_ABOUT_NEW_ACCOUNTS, CFG_ACCESS_CONTROL_NOTIFY_USER_ABOUT_NEW_ACCOUNT, CFG_BIBAUTHORID_ENABLED, CFG_CERN_SITE, CFG_INSPIRE_SITE, CFG_SITE_ADMIN_EMAIL, CFG_SITE_LANG, CFG_SITE_NAME, CFG_SITE_NAME_INTL, CFG_SITE_RECORD, CFG_SITE_SECURE_URL, CFG_SITE_SUPPORT_EMAIL, CFG_SITE_URL, CFG_WEBSESSION_ADDRESS_ACTIVATION_EXPIRE_IN_DAYS, CFG_WEBSESSION_DIFFERENTIATE_BETWEEN_GUESTS
48:6: E126 continuation line over-indented for hanging indent
72:1: I101 Imported names are in the wrong order. Should be OperationalError, deserialize_via_marshal, run_sql, serialize_via_marshal
74:1: I101 Imported names are in the wrong order. Should be acc_find_possible_activities, acc_get_action_id, acc_get_action_roles, acc_get_role_id, acc_is_user_in_role
74:1: I100 Imports statements are in the wrong order. from invenio.access_control_admin should be before from invenio.dbquery
76:1: I100 Imports statements are in the wrong order. from invenio.access_control_firerole should be before from invenio.access_control_mailcookie
77:1: I101 Imported names are in the wrong order. Should be CFG_EXTERNAL_AUTH_USING_SSO, SUPERADMINROLE
77:1: I100 Imports statements are in the wrong order. from invenio.access_control_config should be before from invenio.access_control_firerole
78:1: I101 Imported names are in the wrong order. Should be gettext_set_language, wash_language, wash_languages
79:1: I100 Imports statements are in the wrong order. from invenio.mailutils should be before from invenio.messages
80:1: I100 Imports statements are in the wrong order. from invenio.errorlib should be before from invenio.mailutils
82:1: I100 Imports statements are in the wrong order. from invenio.external_authentication should be before from invenio.webgroup_dblayer
83:1: I101 Imported names are in the wrong order. Should be CFG_EXTERNAL_AUTHENTICATION, CFG_EXTERNAL_AUTH_DEFAULT, CFG_TEMP_EMAIL_ADDRESS, CFG_WEBACCESS_MSGS, CFG_WEBACCESS_WARNING_MSGS
83:1: I100 Imports statements are in the wrong order. from invenio.access_control_config should be before from invenio.external_authentication
87:1: I100 Imports statements are in the wrong order. import invenio.template should be before from invenio.webuser_config
94:1: E302 expected 2 blank lines, found 1
94: D400 First line should end with '.', not 's'
94: D208 Docstring is over-indented
110:1: E302 expected 2 blank lines, found 1
110: D202 No blank lines allowed *after* function docstring, found 1
157:5: E303 too many blank lines (2)
173:1: E302 expected 2 blank lines, found 1
173: D205 Blank line missing between one-line summary and description
173: D208 Docstring is over-indented
189:42: E701 multiple statements on one line (colon)
190:42: E701 multiple statements on one line (colon)
200:22: E261 at least two spaces before inline comment
234:1: E302 expected 2 blank lines, found 1
234: D200 One-line docstring should not occupy 2 lines
262:1: E302 expected 2 blank lines, found 1
262: D200 One-line docstring should not occupy 3 lines
269:1: E302 expected 2 blank lines, found 1
269: D200 One-line docstring should not occupy 3 lines
276:1: E302 expected 2 blank lines, found 1
276:40: E251 unexpected spaces around keyword / parameter equals
276:42: E251 unexpected spaces around keyword / parameter equals
276: D205 Blank line missing between one-line summary and description
284:1: E302 expected 2 blank lines, found 1
284: D200 One-line docstring should not occupy 3 lines
291:1: E302 expected 2 blank lines, found 1
299:1: E302 expected 2 blank lines, found 1
299: D205 Blank line missing between one-line summary and description
320:1: E302 expected 2 blank lines, found 1
320: D209 Put multi-line docstring closing quotes on separate line
320: D205 Blank line missing between one-line summary and description
333:1: E302 expected 2 blank lines, found 1
333: D400 First line should end with '.', not 't'
333: D208 Docstring is over-indented
349:1: E302 expected 2 blank lines, found 1
355:1: E302 expected 2 blank lines, found 1
365:1: E302 expected 2 blank lines, found 1
369:1: E302 expected 2 blank lines, found 1
375:9: E125 continuation line with same indent as next logical line
379:1: E302 expected 2 blank lines, found 1
379: D205 Blank line missing between one-line summary and description
379: D208 Docstring is over-indented
394:1: E302 expected 2 blank lines, found 1
394: D205 Blank line missing between one-line summary and description
394: D208 Docstring is over-indented
409:1: E302 expected 2 blank lines, found 1
409: D209 Put multi-line docstring closing quotes on separate line
409: D400 First line should end with '.', not 'e'
409: D205 Blank line missing between one-line summary and description
428: D202 No blank lines allowed *after* function docstring, found 1
428: D400 First line should end with '.', not 'd'
428: D205 Blank line missing between one-line summary and description
428: D208 Docstring is over-indented
429:9: E128 continuation line under-indented for visual indent
473:18: E261 at least two spaces before inline comment
475:74: E261 at least two spaces before inline comment
479:26: E261 at least two spaces before inline comment
481:26: E261 at least two spaces before inline comment
494:51: E128 continuation line under-indented for visual indent
502:9: E128 continuation line under-indented for visual indent
503:9: E128 continuation line under-indented for visual indent
504:23: E261 at least two spaces before inline comment
508:1: E302 expected 2 blank lines, found 1
508: D400 First line should end with '.', not 'd'
508: D205 Blank line missing between one-line summary and description
525:1: E302 expected 2 blank lines, found 1
531:1: E302 expected 2 blank lines, found 1
531: D401 First line should be imperative: 'Merge', not 'Merges'
531: D205 Blank line missing between one-line summary and description
571:1: E302 expected 2 blank lines, found 1
571: D202 No blank lines allowed *after* function docstring, found 1
571: D400 First line should end with '.', not ','
571: D205 Blank line missing between one-line summary and description
571: D208 Docstring is over-indented
581:8: E713 test for membership should be 'not in'
584:50: E261 at least two spaces before inline comment
587:63: E713 test for membership should be 'not in'
590:94: E261 at least two spaces before inline comment
590:95: E262 inline comment should start with '# '
621:20: E261 at least two spaces before inline comment
672:29: E261 at least two spaces before inline comment
676:25: B901 blind except: statement
680:29: E128 continuation line under-indented for visual indent
681:29: E128 continuation line under-indented for visual indent
682:45: E261 at least two spaces before inline comment
684:25: E128 continuation line under-indented for visual indent
685:25: E128 continuation line under-indented for visual indent
688:35: E261 at least two spaces before inline comment
691:35: E261 at least two spaces before inline comment
698:21: E261 at least two spaces before inline comment
704:17: B901 blind except: statement
716:13: B901 blind except: statement
719:18: E261 at least two spaces before inline comment
729:34: W601 .has_key() is deprecated, use 'in'
752:10: E261 at least two spaces before inline comment
760:28: E261 at least two spaces before inline comment
766:30: E261 at least two spaces before inline comment
768:30: E261 at least two spaces before inline comment
785:1: E302 expected 2 blank lines, found 1
785: D200 One-line docstring should not occupy 2 lines
801:1: E302 expected 2 blank lines, found 1
801: D202 No blank lines allowed *after* function docstring, found 1
801: D400 First line should end with '.', not 'r'
801: D205 Blank line missing between one-line summary and description
812:11: E127 continuation line over-indented for visual indent
817:1: E302 expected 2 blank lines, found 1
817: D202 No blank lines allowed *after* function docstring, found 1
817: D400 First line should end with '.', not '1'
817: D200 One-line docstring should not occupy 2 lines
828:1: E302 expected 2 blank lines, found 1
828: D202 No blank lines allowed *after* function docstring, found 1
828: D400 First line should end with '.', not '1'
828: D200 One-line docstring should not occupy 2 lines
839:1: E302 expected 2 blank lines, found 1
839: D205 Blank line missing between one-line summary and description
849:1: E302 expected 2 blank lines, found 1
863:1: E302 expected 2 blank lines, found 1
863: D209 Put multi-line docstring closing quotes on separate line
863: D400 First line should end with '.', not 'e'
863: D205 Blank line missing between one-line summary and description
872:1: E302 expected 2 blank lines, found 1
872: D205 Blank line missing between one-line summary and description
882:11: E127 continuation line over-indented for visual indent
893:9: E113 unexpected indentation
896:1: E302 expected 2 blank lines, found 1
896: D209 Put multi-line docstring closing quotes on separate line
896: D400 First line should end with '.', not 'e'
896: D205 Blank line missing between one-line summary and description
905:1: E302 expected 2 blank lines, found 1
905: D209 Put multi-line docstring closing quotes on separate line
905: D205 Blank line missing between one-line summary and description
917:1: E302 expected 2 blank lines, found 1
917: D202 No blank lines allowed *after* function docstring, found 1
950:1: E302 expected 2 blank lines, found 1
950: D202 No blank lines allowed *after* function docstring, found 1
1003:1: E302 expected 2 blank lines, found 1
1032:18: W601 .has_key() is deprecated, use 'in'
1033:12: E127 continuation line over-indented for visual indent
1034:12: E127 continuation line over-indented for visual indent
1038:9: B901 blind except: statement
1041:26: W601 .has_key() is deprecated, use 'in'
1043:26: W601 .has_key() is deprecated, use 'in'
1067:1: E302 expected 2 blank lines, found 1
1071:1: E302 expected 2 blank lines, found 1
1071: D400 First line should end with '.', not ')'
1071: D205 Blank line missing between one-line summary and description
1085:1: E302 expected 2 blank lines, found 1
1085: D400 First line should end with '.', not ')'
1085: D205 Blank line missing between one-line summary and description
1109:1: E302 expected 2 blank lines, found 1
1109: D400 First line should end with '.', not 's'
1116:25: W601 .has_key() is deprecated, use 'in'
1118:9: B901 blind except: statement
1122:1: E302 expected 2 blank lines, found 1
1122: D103 Docstring missing
1126:42: E261 at least two spaces before inline comment
1128:1: E302 expected 2 blank lines, found 1
1128: D103 Docstring missing
1129:23: E721 do not compare types, use 'isinstance()'
1133:1: E302 expected 2 blank lines, found 1
1133: D103 Docstring missing
1141:1: E302 expected 2 blank lines, found 1
1141: D103 Docstring missing
1142: D400 First line should end with '.', not 'h'
1142: D205 Blank line missing between one-line summary and description
1151:51: E261 at least two spaces before inline comment
1195:1: E302 expected 2 blank lines, found 1
1195: D400 First line should end with '.', not 'y'
1195: D205 Blank line missing between one-line summary and description
1207:20: E203 whitespace before ':'
1208:22: E203 whitespace before ':'
1209:18: E203 whitespace before ':'
1210:14: E203 whitespace before ':'
1211:16: E203 whitespace before ':'
1212:14: E203 whitespace before ':'
1212:15: E231 missing whitespace after ':'
1213:19: E203 whitespace before ':'
1214:16: E203 whitespace before ':'
1215:16: E203 whitespace before ':'
1216:16: E203 whitespace before ':'
1217:18: E203 whitespace before ':'
1218:53: E203 whitespace before ':'
1219:31: E203 whitespace before ':'
1220:29: E203 whitespace before ':'
1221:30: E203 whitespace before ':'
1222:30: E203 whitespace before ':'
1223:32: E203 whitespace before ':'
1224:36: E203 whitespace before ':'
1225:31: E203 whitespace before ':'
1226:29: E203 whitespace before ':'
1227:29: E203 whitespace before ':'
1228:34: E203 whitespace before ':'
1229:34: E203 whitespace before ':'
1230:40: E203 whitespace before ':'
1231:41: E203 whitespace before ':'
1232:33: E203 whitespace before ':'
1245:27: W601 .has_key() is deprecated, use 'in'
1246:27: W601 .has_key() is deprecated, use 'in'
1247:27: W601 .has_key() is deprecated, use 'in'
1282:17: E129 visually indented line with same indent as next logical line
1301:17: E129 visually indented line with same indent as next logical line
1326:5: E125 continuation line with same indent as next logical line
1339:26: E261 at least two spaces before inline comment
1379:21: E129 visually indented line with same indent as next logical line
1383:21: E129 visually indented line with same indent as next logical line
1398:21: E129 visually indented line with same indent as next logical line
1410:23: F841 local variable 'e' is assigned to but never used
1432: D202 No blank lines allowed *after* function docstring, found 1
1455: D202 No blank lines allowed *after* function docstring, found 1


1: D100 Docstring missing
2: L102 copyright year is outdated, expected 2015 but got 2013
21:1: I100 Imports statements are in the wrong order. import shutil should be before import time
23:1: I101 Imported names are in the wrong order. Should be CFG_ACCESS_CONTROL_LEVEL_SITE, CFG_BIBDOCFILE_DOCUMENT_FILE_MANAGER_ICON_DOCTYPES, CFG_BIBDOCFILE_DOCUMENT_FILE_MANAGER_ICON_SIZE, CFG_INSPIRE_SITE, CFG_SITE_LANG, CFG_SITE_RECORD, CFG_SITE_SECURE_URL, CFG_SITE_URL, CFG_TMPSHAREDDIR, CFG_WEBSUBMIT_STORAGEDIR
33:1: I100 Imports statements are in the wrong order. from invenio.bibdocfile_config should be before from invenio.config
34:6: E126 continuation line over-indented for hanging indent
37:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio.bibdocfile_config
40:1: I100 Imports statements are in the wrong order. from invenio.access_control_engine should be before from invenio.access_control_mailcookie
41:1: I100 Imports statements are in the wrong order. from invenio.access_control_admin should be before from invenio.access_control_engine
42:1: I101 Imported names are in the wrong order. Should be page, pagefooteronly, pageheaderonly, warning_page, write_warning
44:1: I101 Imported names are in the wrong order. Should be collect_user_info, getUid, isGuestUser, isUserSuperAdmin, page_not_authorized
45:29: E126 continuation line over-indented for hanging indent
46:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio.webuser
47:1: I101 Imported names are in the wrong order. Should be WebInterfaceDirectory, wash_urlargd
48:1: I100 Imports statements are in the wrong order. from invenio.urlutils should be before from invenio.webinterface_handler
49:1: I100 Imports statements are in the wrong order. from invenio.messages should be before from invenio.urlutils
50:1: I101 Imported names are in the wrong order. Should be check_user_can_view_record, create_navtrail_links, get_colID, guess_primary_collection_of_a_record, is_user_owner_of_record, record_empty, record_exists
51:6: E126 continuation line over-indented for hanging indent
54:1: I101 Imported names are in the wrong order. Should be BibDoc, BibRecDocs, InvenioBibDocFileError, file_strip_ext, get_subformat_from_format, normalize_format, stream_restricted_icon
54:1: I100 Imports statements are in the wrong order. from invenio.bibdocfile should be before from invenio.search_engine
59:1: I100 Imports statements are in the wrong order. import invenio.template should be before from invenio.websearchadminlib
65:1: I101 Imported names are in the wrong order. Should be create_file_upload_interface, get_upload_file_interface_css, get_upload_file_interface_javascript, move_uploaded_files_to_storage
65:1: I100 Imports statements are in the wrong order. from invenio.bibdocfile_managedocfiles should be before import invenio.template
66:6: E126 continuation line over-indented for hanging indent
74: D101 Docstring missing
76: D102 Docstring missing
116:94: E203 whitespace before ':'
118:30: E127 continuation line over-indented for visual indent
118:95: E502 the backslash is redundant between brackets
118:76: E203 whitespace before ':'
118:92: E203 whitespace before ':'
126:60: E502 the backslash is redundant between brackets
127:52: E251 unexpected spaces around keyword / parameter equals
127:54: E251 unexpected spaces around keyword / parameter equals
130:13: E303 too many blank lines (2)
210:107: E203 whitespace before ':'
212:37: E122 continuation line missing indentation or outdented
212:102: E502 the backslash is redundant between brackets
212:83: E203 whitespace before ':'
212:99: E203 whitespace before ':'
213:41: E128 continuation line under-indented for visual indent
273:25: E128 continuation line under-indented for visual indent
273:79: E502 the backslash is redundant between brackets
274:41: E127 continuation line over-indented for visual indent
275:54: E502 the backslash is redundant between brackets
276:25: E128 continuation line under-indented for visual indent
278:25: E126 continuation line over-indented for hanging indent
285:25: E127 continuation line over-indented for visual indent
286:25: E127 continuation line over-indented for visual indent
287:25: E127 continuation line over-indented for visual indent
288:25: E127 continuation line over-indented for visual indent
291: D400 First line should end with '.', not 't'
291: D205 Blank line missing between one-line summary and description
291: D208 Docstring is over-indented
303:1: E302 expected 2 blank lines, found 1
303: D290 White spaces around docstring should be trimmed.
303: D202 No blank lines allowed *after* function docstring, found 1
303: D400 First line should end with '.', not 's'
312:13: E203 whitespace before ':'
346: D101 Docstring missing
350: D400 First line should end with '.', not 'd'
350: D200 One-line docstring should not occupy 3 lines
371:22: E126 continuation line over-indented for hanging indent
371:50: E203 whitespace before ':'
372:55: E203 whitespace before ':'
382:9: E122 continuation line missing indentation or outdented
435:96: E128 continuation line under-indented for visual indent
446:50: E502 the backslash is redundant between brackets
466:5: E128 continuation line under-indented for visual indent
476:26: E251 unexpected spaces around keyword / parameter equals
476:28: E251 unexpected spaces around keyword / parameter equals
479:111: E502 the backslash is redundant between brackets
479:34: E251 unexpected spaces around keyword / parameter equals
479:36: E251 unexpected spaces around keyword / parameter equals
480:37: E127 continuation line over-indented for visual indent
481:25: E251 unexpected spaces around keyword / parameter equals
481:27: E251 unexpected spaces around keyword / parameter equals
482:24: E251 unexpected spaces around keyword / parameter equals
482:26: E251 unexpected spaces around keyword / parameter equals
487: D202 No blank lines allowed *after* method docstring, found 1
487: D400 First line should end with '.', not 'e'
487: D300 Expected """-quotes, got '-quotes
501:16: W601 .has_key() is deprecated, use 'in'
502:16: E127 continuation line over-indented for visual indent
506:35: E128 continuation line under-indented for visual indent
507:35: E128 continuation line under-indented for visual indent
517:13: B901 blind except: statement
523:13: B901 blind except: statement
528:17: E128 continuation line under-indented for visual indent
529:17: E128 continuation line under-indented for visual indent
530:17: E128 continuation line under-indented for visual indent


80:1: I101 Imported names are in the wrong order. Should be IndentedHelpFormatter, Option, OptionError, OptionGroup, OptionParser
82:1: I100 Imports statements are in the wrong order. import os should be before from optparse
95: D290 White spaces around docstring should be trimmed.
95: D400 First line should end with '.', not 'o'
106: D202 No blank lines allowed *after* function docstring, found 1
106: D400 First line should end with '.', not 'g'
106: D205 Blank line missing between one-line summary and description
117:27: E127 continuation line over-indented for visual indent
128:5: E303 too many blank lines (2)
211:23: E126 continuation line over-indented for hanging indent
291:27: E127 continuation line over-indented for visual indent
303:5: E303 too many blank lines (3)
306:1: E302 expected 2 blank lines, found 1
306: D400 First line should end with '.', not 's'
306: D205 Blank line missing between one-line summary and description
314: D401 First line should be imperative: 'Return', not 'Returns'
314: D400 First line should end with '.', not ':'
343:20: E127 continuation line over-indented for visual indent
387:1: E302 expected 2 blank lines, found 1
387: D205 Blank line missing between one-line summary and description
396:21: E127 continuation line over-indented for visual indent
401:50: E502 the backslash is redundant between brackets
402:25: E127 continuation line over-indented for visual indent
402:66: E502 the backslash is redundant between brackets
403:25: E127 continuation line over-indented for visual indent
413:1: E302 expected 2 blank lines, found 1
413: D205 Blank line missing between one-line summary and description
422:21: E127 continuation line over-indented for visual indent
441:1: E302 expected 2 blank lines, found 1
441: D400 First line should end with '.', not '6'
441: D205 Blank line missing between one-line summary and description
451:14: E127 continuation line over-indented for visual indent
463:50: E127 continuation line over-indented for visual indent
464:50: E127 continuation line over-indented for visual indent
465:50: E127 continuation line over-indented for visual indent
473:1: E302 expected 2 blank lines, found 1
473: D400 First line should end with '.', not 'r'
473: D205 Blank line missing between one-line summary and description
483:14: E127 continuation line over-indented for visual indent
487:16: E126 continuation line over-indented for hanging indent
502:45: E128 continuation line under-indented for visual indent
503:45: E128 continuation line under-indented for visual indent
511:1: E302 expected 2 blank lines, found 1
511: D400 First line should end with '.', not 'd'
511: D205 Blank line missing between one-line summary and description
538:1: E302 expected 2 blank lines, found 1
538: D209 Put multi-line docstring closing quotes on separate line
538: D400 First line should end with '.', not 'n'
538: D205 Blank line missing between one-line summary and description
564:32: F841 local variable 'err' is assigned to but never used
583:1: E302 expected 2 blank lines, found 1
583: D209 Put multi-line docstring closing quotes on separate line
583: D400 First line should end with '.', not 'n'
583: D205 Blank line missing between one-line summary and description
589:5: B901 blind except: statement
590:9: F401 'pickle' imported but unused
622:1: E302 expected 2 blank lines, found 1
622: D200 One-line docstring should not occupy 3 lines
636:1: E302 expected 2 blank lines, found 1
636: D400 First line should end with '.', not 'N'
636: D205 Blank line missing between one-line summary and description
672:32: W601 .has_key() is deprecated, use 'in'
676:49: E128 continuation line under-indented for visual indent
687:82: E231 missing whitespace after ','
689:37: W601 .has_key() is deprecated, use 'in'
701:1: E302 expected 2 blank lines, found 1
701: D400 First line should end with '.', not 's'
701: D205 Blank line missing between one-line summary and description
719:1: E302 expected 2 blank lines, found 1
719: D205 Blank line missing between one-line summary and description
733:14: E126 continuation line over-indented for hanging indent
759:69: E502 the backslash is redundant between brackets
777:32: E261 at least two spaces before inline comment
800:1: E302 expected 2 blank lines, found 1
819:1: E302 expected 2 blank lines, found 1
819: D103 Docstring missing
828:1: E302 expected 2 blank lines, found 1
828: D103 Docstring missing
834:1: E302 expected 2 blank lines, found 1
851:1: E302 expected 2 blank lines, found 1
859:72: E502 the backslash is redundant between brackets
860:20: E127 continuation line over-indented for visual indent
860:44: E231 missing whitespace after ','
864:35: E261 at least two spaces before inline comment
875:1: E302 expected 2 blank lines, found 1
899:50: E231 missing whitespace after ','
905:1: E302 expected 2 blank lines, found 1
918:48: E231 missing whitespace after ','
924:1: E302 expected 2 blank lines, found 1
935:1: E302 expected 2 blank lines, found 1
941:1: E302 expected 2 blank lines, found 1
947:1: E302 expected 2 blank lines, found 1
953:1: E302 expected 2 blank lines, found 1
959:1: E302 expected 2 blank lines, found 1
959: D400 First line should end with '.', not 'e'
959: D205 Blank line missing between one-line summary and description
972:5: B901 blind except: statement
975:1: E302 expected 2 blank lines, found 1
975: D400 First line should end with '.', not 's'
975: D205 Blank line missing between one-line summary and description
984:23: E127 continuation line over-indented for visual indent
1058:64: E261 at least two spaces before inline comment
1059:13: E128 continuation line under-indented for visual indent
1060:13: E128 continuation line under-indented for visual indent
1060:61: E261 at least two spaces before inline comment
1061:13: E128 continuation line under-indented for visual indent
1062:13: E128 continuation line under-indented for visual indent
1063:13: E128 continuation line under-indented for visual indent
1064:13: E128 continuation line under-indented for visual indent
1065:13: E128 continuation line under-indented for visual indent
1066:13: E128 continuation line under-indented for visual indent
1066:21: E261 at least two spaces before inline comment
1161:29: E127 continuation line over-indented for visual indent
1163:30: E127 continuation line over-indented for visual indent
1218:91: E502 the backslash is redundant between brackets
1219:28: E127 continuation line over-indented for visual indent
1220:67: E502 the backslash is redundant between brackets
1221:33: E128 continuation line under-indented for visual indent
1221:80: E502 the backslash is redundant between brackets
1222:15: E127 continuation line over-indented for visual indent
1284:17: E203 whitespace before ':'
1286:99: E502 the backslash is redundant between brackets
1286:26: E203 whitespace before ':'
1287:29: E127 continuation line over-indented for visual indent
1288:58: E502 the backslash is redundant between brackets
1289:71: E502 the backslash is redundant between brackets
1291:58: E502 the backslash is redundant between brackets
1292:72: E502 the backslash is redundant between brackets
1294:58: E502 the backslash is redundant between brackets
1295:75: E502 the backslash is redundant between brackets
1297:63: E502 the backslash is redundant between brackets
1298:64: E502 the backslash is redundant between brackets
1300:61: E502 the backslash is redundant between brackets
1301:66: E502 the backslash is redundant between brackets
1345:1: E302 expected 2 blank lines, found 1
1345: D400 First line should end with '.', not 'r'
1345: D205 Blank line missing between one-line summary and description
1369:1: E302 expected 2 blank lines, found 1
1369: D200 One-line docstring should not occupy 3 lines
1381:1: E302 expected 2 blank lines, found 1
1381: D400 First line should end with '.', not 'y'
1381: D205 Blank line missing between one-line summary and description
1400:1: E302 expected 2 blank lines, found 0
1400: D401 First line should be imperative: 'Return', not 'Returns'
1400: D200 One-line docstring should not occupy 3 lines
1418: D400 First line should end with '.', not 'e'
1418: D205 Blank line missing between one-line summary and description
1435:1: E302 expected 2 blank lines, found 1
1435: D400 First line should end with '.', not 'L'
1435: D205 Blank line missing between one-line summary and description
1471: D400 First line should end with '.', not 's'
1471: D200 One-line docstring should not occupy 3 lines
1478:1: E302 expected 2 blank lines, found 1
1478: D400 First line should end with '.', not 's'
1478: D200 One-line docstring should not occupy 3 lines
1486: D400 First line should end with '.', not 'd'
1486: D200 One-line docstring should not occupy 3 lines
1494: D200 One-line docstring should not occupy 3 lines
1502: D200 One-line docstring should not occupy 3 lines
1510: D200 One-line docstring should not occupy 3 lines
1511:43: E128 continuation line under-indented for visual indent
1520: D202 No blank lines allowed *after* function docstring, found 1
1523: D203 Expected 1 blank line *before* class docstring, found 0
1523: D204 Expected 1 blank line *after* class docstring, found 0
1523: D400 First line should end with '.', not 'l'
1637: D290 White spaces around docstring should be trimmed.
1637: D400 First line should end with '.', not 's'


1: D290 White spaces around docstring should be trimmed.
1: D400 First line should end with '.', not 'y'
4: L102 copyright year is outdated, expected 2015 but got 2014
25:1: I100 Imports statements are in the wrong order. import os should be before import traceback
28:1: I100 Imports statements are in the wrong order. import datetime should be before import time
30:1: I100 Imports statements are in the wrong order. import inspect should be before import re
33:1: I101 Imported names are in the wrong order. Should be CFG_ERRORLIB_RESET_EXCEPTION_NOTIFICATION_COUNTER_AFTER, CFG_ERRORLIB_SENTRY_URI, CFG_LOGDIR, CFG_PROPAGATE_EXCEPTIONS, CFG_SITE_ADMIN_EMAIL, CFG_SITE_ADMIN_EMAIL_EXCEPTIONS, CFG_SITE_EMERGENCY_EMAIL_ADDRESSES, CFG_SITE_LANG, CFG_SITE_NAME, CFG_SITE_SUPPORT_EMAIL, CFG_SITE_URL, CFG_VERSION, CFG_WEBALERT_ALERT_ENGINE_EMAIL
33:1: F401 'CFG_SITE_LANG' imported but unused
42:1: F401 'wash_url_argument' imported but unused
43:1: I101 Imported names are in the wrong order. Should be gettext_set_language, wash_language
43:1: I100 Imports statements are in the wrong order. from invenio.messages should be before from invenio.urlutils
43:1: F401 'wash_language' imported but unused
43:1: F401 'gettext_set_language' imported but unused
44:1: I100 Imports statements are in the wrong order. from invenio.dateutils should be before from invenio.messages
53: D401 First line should be imperative: 'Return', not 'Returns'
53: D400 First line should end with '.', not 'n'
53: D205 Blank line missing between one-line summary and description
63:59: E502 the backslash is redundant between brackets
64:27: E131 continuation line unaligned for hanging indent
66:5: B901 blind except: statement
70: D209 Put multi-line docstring closing quotes on separate line
70: D400 First line should end with '.', not 't'
70: D205 Blank line missing between one-line summary and description
96: D400 First line should end with '.', not 'e'
96: D205 Blank line missing between one-line summary and description
114:13: E122 continuation line missing indentation or outdented
115:13: E122 continuation line missing indentation or outdented
116:13: E122 continuation line missing indentation or outdented
117:13: E122 continuation line missing indentation or outdented
117:52: E502 the backslash is redundant between brackets
118:21: E126 continuation line over-indented for hanging indent
121:1: E302 expected 2 blank lines, found 1
121: D400 First line should end with '.', not 'h'
121: D205 Blank line missing between one-line summary and description
143:1: E302 expected 2 blank lines, found 1
143: D202 No blank lines allowed *after* function docstring, found 1
143: D400 First line should end with '.', not 'm'
143: D205 Blank line missing between one-line summary and description
173:1: E302 expected 2 blank lines, found 1
198:1: E302 expected 2 blank lines, found 1
198: D400 First line should end with '.', not ','
198: D205 Blank line missing between one-line summary and description
220:38: E202 whitespace before '}'
232:17: E127 continuation line over-indented for visual indent
239:21: E127 continuation line over-indented for visual indent
245:29: E127 continuation line over-indented for visual indent
268:21: B901 blind except: statement
283:25: B901 blind except: statement
308:1: E302 expected 2 blank lines, found 1
308: D400 First line should end with '.', not '2'
308: D200 One-line docstring should not occupy 3 lines
318:1: E302 expected 2 blank lines, found 1
318: D205 Blank line missing between one-line summary and description
340:5: B901 blind except: statement
344:1: E302 expected 2 blank lines, found 1
344: D200 One-line docstring should not occupy 3 lines
355:1: E302 expected 2 blank lines, found 1
355: D202 No blank lines allowed *after* function docstring, found 1
355: D205 Blank line missing between one-line summary and description
397:37: E128 continuation line under-indented for visual indent
398:37: E128 continuation line under-indented for visual indent
399:37: E128 continuation line under-indented for visual indent
400:37: E128 continuation line under-indented for visual indent
403:37: E128 continuation line under-indented for visual indent
404:37: E128 continuation line under-indented for visual indent
405:37: E128 continuation line under-indented for visual indent
406:37: E128 continuation line under-indented for visual indent
407:37: E128 continuation line under-indented for visual indent
408:37: E128 continuation line under-indented for visual indent
409:37: E128 continuation line under-indented for visual indent
456:28: E225 missing whitespace around operator
465:13: B901 blind except: statement
475:17: E128 continuation line under-indented for visual indent
476:17: E129 visually indented line with same indent as next logical line
501: D205 Blank line missing between one-line summary and description
543:5: B901 blind except: statement
552: D401 First line should be imperative: 'Send', not 'Sends'
552: D400 First line should end with '.', not 'k'
552: D200 One-line docstring should not occupy 3 lines
586:13: E131 continuation line unaligned for hanging indent
590:1: E302 expected 2 blank lines, found 1
590: D200 One-line docstring should not occupy 3 lines
601:1: E302 expected 2 blank lines, found 1
601: D400 First line should end with '.', not 'r'
601: D205 Blank line missing between one-line summary and description
612: D103 Docstring missing
621:13: E122 continuation line missing indentation or outdented
622:13: E122 continuation line missing indentation or outdented
623:13: E122 continuation line missing indentation or outdented
624:13: E122 continuation line missing indentation or outdented
625:13: E122 continuation line missing indentation or outdented


1: M100 needs more reviewers
3: M102 unrecognized bullet/signature
4: M102 unrecognized bullet/signature
6: M102 unrecognized bullet/signature
7: M102 unrecognized bullet/signature
11: M102 unrecognized bullet/signature
12: M102 unrecognized bullet/signature


too sweet aren't really


1: D209 Put multi-line docstring closing quotes on separate line
18: L101 copyright is missing
26:1: F401 'quote' imported but unused
27:1: I100 Imports statements are in the wrong order. import time should be before from urllib
27:1: F401 'time' imported but unused
28:1: I201 Missing newline before sections or imports.
31:1: I100 Imports statements are in the wrong order. from invenio.bibdocfile should be before from invenio.messages
32:1: F401 'WebInterfaceDirectory' imported but unused
33:1: I101 Imported names are in the wrong order. Should be pagefooteronly, pageheaderonly
33:1: F401 'pageheaderonly' imported but unused
33:1: F401 'pagefooteronly' imported but unused
34:1: I101 Imported names are in the wrong order. Should be create_navtrail_links, get_colID, get_record, guess_primary_collection_of_a_record, perform_request_search, print_record
34:1: I100 Imports statements are in the wrong order. from invenio.search_engine should be before from invenio.webpage
34:1: F401 'create_navtrail_links' imported but unused
34:1: F401 'print_record' imported but unused
34:1: F401 'get_colID' imported but unused
34:1: F401 'guess_primary_collection_of_a_record' imported but unused
34:1: F401 'perform_request_search' imported but unused
37:1: F401 'get_detailed_page_tabs' imported but unused
38:1: I100 Imports statements are in the wrong order. from invenio.template should be before from invenio.websearchadminlib
40:1: F401 'collect_user_info' imported but unused
41:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio.webuser
43:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio
44:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio
46:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio
47:1: F401 'bibclassify_text_extractor' imported but unused
48:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio
56: D401 First line should be imperative: 'Generate', not 'Generates'
56: D202 No blank lines allowed *after* function docstring, found 1
56: D400 First line should end with '.', not 's'
56: D205 Blank line missing between one-line summary and description
117: D401 First line should be imperative: 'Write', not 'Writes'
117: D202 No blank lines allowed *after* function docstring, found 2
117: D400 First line should end with '.', not 't'
121:5: E303 too many blank lines (2)
130:5: E303 too many blank lines (2)
146:63: E221 multiple spaces before operator
150:1: E303 too many blank lines (3)
150: D401 First line should be imperative: 'Return', not 'Returns'
150: D400 First line should end with '.', not 'c'
150: D205 Blank line missing between one-line summary and description
151:33: E127 continuation line over-indented for visual indent
196:70: E231 missing whitespace after ','
207:78: E231 missing whitespace after ','
212:1: E302 expected 2 blank lines, found 1
212: D401 First line should be imperative: 'Extract', not 'Extracts'
212: D202 No blank lines allowed *after* function docstring, found 1
212: D400 First line should end with '.', not 'e'
212: D205 Blank line missing between one-line summary and description
234:9: B901 blind except: statement
257:14: E261 at least two spaces before inline comment
259:97: E202 whitespace before ')'
264:17: E128 continuation line under-indented for visual indent
268:21: E128 continuation line under-indented for visual indent
275:1: E303 too many blank lines (3)
275: D401 First line should be imperative: 'Store', not 'Stores'
275: D400 First line should end with '.', not 'e'
275: D205 Blank line missing between one-line summary and description
307:17: E128 continuation line under-indented for visual indent
310: D103 Docstring missing
312:17: E128 continuation line under-indented for visual indent
314:1: E302 expected 2 blank lines, found 1
327:25: E127 continuation line over-indented for visual indent
333:25: E127 continuation line over-indented for visual indent
340:25: E127 continuation line over-indented for visual indent
347:25: E127 continuation line over-indented for visual indent
354:1: E303 too many blank lines (3)
354: D401 First line should be imperative: 'Remove', not 'Removes'
354: D400 First line should end with '.', not 'l'


这里请传回一个 Vec2


This is a Rack middleware. See https://www.amberbit.com/blog/2011/07/13/introduction-to-rack-middleware/


It might not make sense to automatically precache `/styleguide/`, since I don't know if it offers much utility for the average person using a WSK-site and it significantly adds to the precache size.

That being said, I'm including it in this PR since it's hard to test out the precaching behavior if only the main page is cached.


ack


Good job :+1:


1: D400 First line should end with '.', not 'd'
4: L102 copyright year is outdated, expected 2015 but got 2012
24:1: I101 Imported names are in the wrong order. Should be task_get_option, task_sleep_now_if_required, task_update_progress, write_message
24:1: I201 Missing newline before sections or imports.
25:29: E126 continuation line over-indented for hanging indent
31: D103 Docstring missing
40: D103 Docstring missing
57: D103 Docstring missing
68: D103 Docstring missing
100: D103 Docstring missing
114: D401 First line should be imperative: 'Call', not 'Calls'
114: D400 First line should end with '.', not 't'
133: D400 First line should end with '.', not 'e'
133: D205 Blank line missing between one-line summary and description


1: D400 First line should end with '.', not 'e'
4: L102 copyright year is outdated, expected 2015 but got 2011
28:1: F401 'sys' imported but unused
31:1: I100 Imports statements are in the wrong order. from tempfile should be before from urllib
33:1: I101 Imported names are in the wrong order. Should be get_kbs, get_plaintext_document_body, parse_reference_line, parse_references, parse_tagged_reference_line
40:1: I100 Imports statements are in the wrong order. from invenio.bibindex_tokenizers.BibIndexJournalTokenizer should be before from invenio.search_engine_utils
42:1: I100 Imports statements are in the wrong order. from invenio.bibdocfile should be before from invenio.bibindex_tokenizers.BibIndexJournalTokenizer
44:1: I100 Imports statements are in the wrong order. from invenio.bibtask should be before from invenio.search_engine
45:1: I101 Imported names are in the wrong order. Should be create_record, record_add_fields, record_delete_fields, record_get_field_instances, record_has_field, record_xml_output
45:1: I100 Imports statements are in the wrong order. from invenio.bibrecord should be before from invenio.bibtask
51:1: I101 Imported names are in the wrong order. Should be find_numeration_in_body, get_reference_section_beginning
54:1: I100 Imports statements are in the wrong order. from invenio.refextract_config should be before from invenio.refextract_text
55:1: I100 Imports statements are in the wrong order. from invenio.config should be before from invenio.refextract_config
60:1: E303 too many blank lines (3)
60: D203 Expected 1 blank line *before* class docstring, found 0
60: D400 First line should end with '.', not 't'
64: D203 Expected 1 blank line *before* class docstring, found 0
64: D400 First line should end with '.', not 'n'
64: D205 Blank line missing between one-line summary and description
64: D207 Docstring is under-indented
73: D400 First line should end with '.', not 'l'
94: D400 First line should end with '.', not 'e'
104: D400 First line should end with '.', not 'e'
123: D400 First line should end with '.', not 'g'
137: D400 First line should end with '.', not 'g'
159: D400 First line should end with '.', not 'd'
172: D400 First line should end with '.', not 'd'
181: D401 First line should be imperative: 'Extract', not 'Extracts'
181: D209 Put multi-line docstring closing quotes on separate line
181: D400 First line should end with '.', not 'm'
181: D205 Blank line missing between one-line summary and description
199: D400 First line should end with '.', not 'd'
230: D202 No blank lines allowed *after* function docstring, found 1
230: D400 First line should end with '.', not 'd'
266: D103 Docstring missing
278: D103 Docstring missing
287: D103 Docstring missing
297: D401 First line should be imperative: 'Check', not 'Checks'
297: D400 First line should end with '.', not 'd'
303: D400 First line should end with '.', not 'y'
335: D103 Docstring missing
339: D103 Docstring missing


1: D400 First line should end with '.', not 'e'
4: L102 copyright year is outdated, expected 2015 but got 2013
28:1: I100 Imports statements are in the wrong order. import re should be before from invenio.testutils
28:1: I201 Missing newline before sections or imports.
28:1: F401 're' imported but unused
29:1: I201 Missing newline before sections or imports.
31:1: I100 Imports statements are in the wrong order. from invenio should be before from mock
33:1: I101 Imported names are in the wrong order. Should be InvenioXmlTestCase, make_test_suite, run_test_suite
34:1: I100 Imports statements are in the wrong order. from invenio.refextract_engine should be before from invenio.testutils
35:1: I100 Imports statements are in the wrong order. from invenio.docextract_utils should be before from invenio.refextract_engine
37:1: I100 Imports statements are in the wrong order. from invenio.config should be before from invenio.refextract_text
38:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio.config
42: D103 Docstring missing
50:56: E127 continuation line over-indented for visual indent
60:25: E203 whitespace before ':'
61:25: E203 whitespace before ':'
62:25: E203 whitespace before ':'
63:25: E203 whitespace before ':'
68: D101 Docstring missing
70: D102 Docstring missing
86: D102 Docstring missing
90: D102 Docstring missing
101: D102 Docstring missing
113: D400 First line should end with '.', not 'n'
126: D102 Docstring missing
144: D102 Docstring missing
155: D102 Docstring missing
167: D102 Docstring missing
179:1: E302 expected 2 blank lines, found 1
179: D203 Expected 1 blank line *before* class docstring, found 0
179: D400 First line should end with '.', not 't'
182: D102 Docstring missing
251: D102 Docstring missing
254: D102 Docstring missing
265: D102 Docstring missing
296: D102 Docstring missing
312: D102 Docstring missing
322: D102 Docstring missing
338: D102 Docstring missing
353: D102 Docstring missing
363: D102 Docstring missing
378: D102 Docstring missing
393: D102 Docstring missing
403: D102 Docstring missing
420: D102 Docstring missing
435: D400 First line should end with '.', not 's'
445: D102 Docstring missing
468: D102 Docstring missing
483: D102 Docstring missing
498: D102 Docstring missing
508: D102 Docstring missing
524: D102 Docstring missing
534: D102 Docstring missing
554: D102 Docstring missing
565: D102 Docstring missing
576: D102 Docstring missing
585: D102 Docstring missing
596: D102 Docstring missing
614: D102 Docstring missing
624: D102 Docstring missing
636: D102 Docstring missing
646: D102 Docstring missing
656: D102 Docstring missing
671: D102 Docstring missing
690: D102 Docstring missing
709: D102 Docstring missing
724: D102 Docstring missing
739: D102 Docstring missing
754: D102 Docstring missing
765: D102 Docstring missing
783: D102 Docstring missing
798: D102 Docstring missing
823: D102 Docstring missing
844: D400 First line should end with '.', not 'm'
861: D400 First line should end with '.', not 'm'
878: D102 Docstring missing
890: D102 Docstring missing
902: D102 Docstring missing
914: D102 Docstring missing
925: D102 Docstring missing
936: D102 Docstring missing
947: D102 Docstring missing
999: D400 First line should end with '.', not 't'
1017: D401 First line should be imperative: 'Serie', not 'Series'
1017: D400 First line should end with '.', not 'y'
1017: D300 Expected """-quotes, got '-quotes
1035: D401 First line should be imperative: 'Serie', not 'Series'
1035: D400 First line should end with '.', not 'y'
1035: D300 Expected """-quotes, got '-quotes
1053: D401 First line should be imperative: 'Serie', not 'Series'
1053: D400 First line should end with '.', not 'y'
1053: D300 Expected """-quotes, got '-quotes
1071: D400 First line should end with '.', not 't'
1071: D300 Expected """-quotes, got '-quotes
1081: D102 Docstring missing
1098: D102 Docstring missing
1109: D102 Docstring missing
1118: D102 Docstring missing
1128: D102 Docstring missing
1148: D102 Docstring missing
1176: D401 First line should be imperative: 'author', not 'authors'
1176: D400 First line should end with '.', not 's'
1188: D102 Docstring missing
1199: D209 Put multi-line docstring closing quotes on separate line
1199: D400 First line should end with '.', not 'e'
1199: D205 Blank line missing between one-line summary and description
1210: D400 First line should end with '.', not 'a'
1220: D290 White spaces around docstring should be trimmed.
1220: D400 First line should end with '.', not '"'
1242: D400 First line should end with '.', not 't'
1267: D400 First line should end with '.', not 'n'
1280: D102 Docstring missing
1291: D102 Docstring missing
1302: D102 Docstring missing
1311: D102 Docstring missing
1322: D209 Put multi-line docstring closing quotes on separate line
1322: D400 First line should end with '.', not 's'
1322: D205 Blank line missing between one-line summary and description
1335: D209 Put multi-line docstring closing quotes on separate line
1335: D400 First line should end with '.', not 's'
1335: D205 Blank line missing between one-line summary and description
1348: D209 Put multi-line docstring closing quotes on separate line
1348: D400 First line should end with '.', not 's'
1348: D205 Blank line missing between one-line summary and description
1361: D209 Put multi-line docstring closing quotes on separate line
1361: D400 First line should end with '.', not 's'
1361: D205 Blank line missing between one-line summary and description
1374: D102 Docstring missing
1385: D102 Docstring missing
1396: D102 Docstring missing
1407: D102 Docstring missing
1418: D102 Docstring missing
1441: D102 Docstring missing
1451: D400 First line should end with '.', not '1'
1451: D300 Expected """-quotes, got '-quotes
1469: D102 Docstring missing
1481: D102 Docstring missing
1493: D102 Docstring missing
1505: D102 Docstring missing
1516: D102 Docstring missing
1527: D102 Docstring missing
1538: D400 First line should end with '.', not 't'
1550: D400 First line should end with '.', not 's'
1563: D401 First line should be imperative: 'wa', not 'was'
1563: D400 First line should end with '.', not 'P'
1575: D102 Docstring missing
1585: D102 Docstring missing
1595: D102 Docstring missing
1607: D102 Docstring missing
1618: D102 Docstring missing
1629: D102 Docstring missing
1640: D102 Docstring missing
1649: D102 Docstring missing
1661: D102 Docstring missing
1673: D102 Docstring missing
1684: D400 First line should end with '.', not 't'
1698: D102 Docstring missing
1708: D102 Docstring missing
1719: D102 Docstring missing
1730: D102 Docstring missing
1758: D102 Docstring missing
1791: D209 Put multi-line docstring closing quotes on separate line
1791: D400 First line should end with '.', not 'r'
1833: D102 Docstring missing
1847: D102 Docstring missing
1862: D102 Docstring missing
1876: D102 Docstring missing
1903: D102 Docstring missing
1926: D400 First line should end with '.', not 'T'
1940: D400 First line should end with '.', not 'e'
1954: D102 Docstring missing
1965: D102 Docstring missing
1976: D102 Docstring missing
1987: D102 Docstring missing
1997: D102 Docstring missing
2007: D102 Docstring missing
2018: D102 Docstring missing
2030: D102 Docstring missing
2040: D102 Docstring missing
2052: D102 Docstring missing
2064: D102 Docstring missing
2076: D102 Docstring missing
2087: D102 Docstring missing
2098: D102 Docstring missing
2109: D102 Docstring missing
2122: D102 Docstring missing
2135: D102 Docstring missing
2146: D102 Docstring missing
2157: D102 Docstring missing
2168: D102 Docstring missing
2179:5: E303 too many blank lines (2)
2179: D102 Docstring missing
2189: D102 Docstring missing
2199: D102 Docstring missing
2209: D102 Docstring missing
2220: D102 Docstring missing
2230: D102 Docstring missing
2241: D102 Docstring missing
2252: D102 Docstring missing
2262: D102 Docstring missing
2273: D102 Docstring missing
2284: D102 Docstring missing
2294: D102 Docstring missing
2304: D102 Docstring missing
2314: D102 Docstring missing
2325: D102 Docstring missing
2342: D102 Docstring missing
2354: D400 First line should end with '.', not 't'
2368: D400 First line should end with '.', not 'r'
2379: D400 First line should end with '.', not 'r'
2389: D400 First line should end with '.', not 'r'
2399: D102 Docstring missing
2408: D400 First line should end with '.', not 'r'
2419: D102 Docstring missing
2428: D102 Docstring missing
2438: D102 Docstring missing
2447: D102 Docstring missing
2467: D400 First line should end with '.', not 'g'
2493: D401 First line should be imperative: 'Test', not 'Tests'
2493: D400 First line should end with '.', not 't'
2512: D102 Docstring missing
2522: D102 Docstring missing
2533: D400 First line should end with '.', not 'k'
2549: D400 First line should end with '.', not 'y'
2561: D401 First line should be imperative: 'Make', not 'Makes'
2561: D400 First line should end with '.', not 'r'
2574: D102 Docstring missing
2585: D102 Docstring missing
2596: D102 Docstring missing
2607: D102 Docstring missing
2623: D102 Docstring missing
2639: D102 Docstring missing
2665: D102 Docstring missing
2687: D102 Docstring missing
2696: D102 Docstring missing
2706: D102 Docstring missing
2716: D102 Docstring missing
2725: D102 Docstring missing
2734: D102 Docstring missing
2743: D102 Docstring missing
2752: D102 Docstring missing
2761: D102 Docstring missing
2769: D102 Docstring missing
2786: D209 Put multi-line docstring closing quotes on separate line
2786: D400 First line should end with '.', not 'r'
2799: D209 Put multi-line docstring closing quotes on separate line
2799: D400 First line should end with '.', not 'r'
2811: D102 Docstring missing
2824: D102 Docstring missing
2833: D102 Docstring missing
2843: D400 First line should end with '.', not 'r'
2861: D102 Docstring missing
2870: D401 First line should be imperative: 'Check', not 'Checks'
2870: D400 First line should end with '.', not 't'
2881: D101 Docstring missing
2882: D102 Docstring missing
2886: D102 Docstring missing
2890: D102 Docstring missing
2892:9: E301 expected 1 blank line, found 0
2898:20: F821 undefined name 'NotSafeForExtraction'
2905:30: F821 undefined name 'unittest'
2905: D101 Docstring missing
2906: D209 Put multi-line docstring closing quotes on separate line
2906: D400 First line should end with '.', not 's'
2924: D400 First line should end with '.', not 'L'
2929: D102 Docstring missing
2938: D102 Docstring missing
2940:9: E301 expected 1 blank line, found 0


1: D400 First line should end with '.', not 'k'
4: L102 copyright year is outdated, expected 2015 but got 2014
27:1: I100 Imports statements are in the wrong order. import os should be before import sys
31:1: I101 Imported names are in the wrong order. Should be task_get_option, task_init, task_set_option
32:29: E126 continuation line over-indented for hanging indent
33:1: I101 Imported names are in the wrong order. Should be CFG_INSPIRE_SITE, CFG_REFEXTRACT_TICKET_QUEUE, CFG_SITE_SECURE_URL, CFG_TMPSHAREDDIR, CFG_VERSION
34:28: E126 continuation line over-indented for hanging indent
41:1: I101 Imported names are in the wrong order. Should be DESCRIPTION, HELP_MESSAGE
41:1: I100 Imports statements are in the wrong order. from invenio.refextract_cli should be before from invenio.search_engine
42:1: I101 Imported names are in the wrong order. Should be FullTextNotAvailable, extract_references_from_record, record_can_extract_refs, record_can_overwrite_refs
42:1: I100 Imports statements are in the wrong order. from invenio.refextract_api should be before from invenio.refextract_cli
43:36: E126 continuation line over-indented for hanging indent
47:1: I100 Imports statements are in the wrong order. from invenio.bibtask should be before from invenio.refextract_config
48:1: I101 Imported names are in the wrong order. Should be split_ids, task_run_core_wrapper
49:37: E126 continuation line over-indented for hanging indent
51:1: I100 Imports statements are in the wrong order. from invenio.docextract_record should be before from invenio.docextract_utils
52:1: I100 Imports statements are in the wrong order. from invenio.bibedit_utils should be before from invenio.docextract_record
53:1: I101 Imported names are in the wrong order. Should be field_get_subfield_values, record_get_field_instances
54:31: E126 continuation line over-indented for hanging indent
55:1: I100 Imports statements are in the wrong order. from invenio.bibcatalog should be before from invenio.bibrecord
58: D101 Docstring missing
62: D290 White spaces around docstring should be trimmed.
62: D400 First line should end with '.', not 's'
62: D205 Blank line missing between one-line summary and description
77: D290 White spaces around docstring should be trimmed.
77: D400 First line should end with '.', not 'k'
125: D103 Docstring missing
181: D103 Docstring missing
195: D103 Docstring missing
216:1: E303 too many blank lines (3)
216: D103 Docstring missing
230: D401 First line should be imperative: 'Construct', not 'Constructs'
235:9: E128 continuation line under-indented for visual indent
236:9: E128 continuation line under-indented for visual indent
237:9: E128 continuation line under-indented for visual indent
238:9: E128 continuation line under-indented for visual indent
259:9: E128 continuation line under-indented for visual indent
260:9: E128 continuation line under-indented for visual indent
261:29: E127 continuation line over-indented for visual indent
272:9: E128 continuation line under-indented for visual indent
273:9: E128 continuation line under-indented for visual indent
274:9: E128 continuation line under-indented for visual indent


1: D400 First line should end with '.', not 'k'
4: L102 copyright year is outdated, expected 2015 but got 2011
28:1: I100 Imports statements are in the wrong order. import re should be before import time
32:1: I100 Imports statements are in the wrong order. import socket should be before from xml.dom
35:1: I101 Imported names are in the wrong order. Should be fetch_last_updated, store_last_updated
36:37: E126 continuation line over-indented for hanging indent
38:1: I100 Imports statements are in the wrong order. from invenio.dbquery should be before from invenio.shellutils
39:1: I100 Imports statements are in the wrong order. from invenio.bibtask should be before from invenio.dbquery
40:1: I101 Imported names are in the wrong order. Should be record_can_extract_refs, record_has_fulltext
41:36: E126 continuation line over-indented for hanging indent
42:1: I101 Imported names are in the wrong order. Should be task_get_option, task_init, task_set_option, task_sleep_now_if_required, task_update_progress, write_message
42:1: I100 Imports statements are in the wrong order. from invenio.bibtask should be before from invenio.refextract_api
43:29: E126 continuation line over-indented for hanging indent
49:1: I101 Imported names are in the wrong order. Should be CFG_ARXIV_URL_PATTERN, CFG_TMPDIR, CFG_TMPSHAREDDIR, CFG_VERSION
49:1: I100 Imports statements are in the wrong order. from invenio.config should be before from invenio.search_engine_utils
50:28: E126 continuation line over-indented for hanging indent
55:1: I100 Imports statements are in the wrong order. from invenio.bibdocfile should be before from invenio.docextract_record
56:32: E126 continuation line over-indented for hanging indent
58:1: I100 Imports statements are in the wrong order. from invenio should be before from invenio.oai_harvest_dblayer
59:1: I101 Imported names are in the wrong order. Should be InvenioFileDownloadError, download_external_url
70: D101 Docstring missing
74: D101 Docstring missing
78: D101 Docstring missing
79: D102 Docstring missing
84: D103 Docstring missing
88: D400 First line should end with '.', not 'd'
117: D400 First line should end with '.', not 's'
133: D400 First line should end with '.', not 'e'
143: D400 First line should end with '.', not 'd'
150: D400 First line should end with '.', not 'v'
210: D400 First line should end with '.', not 's'
225:37: E126 continuation line over-indented for hanging indent
254:1: E302 expected 2 blank lines, found 1
254: D202 No blank lines allowed *after* function docstring, found 1
254: D400 First line should end with '.', not 'e'
300: D401 First line should be imperative: 'Check', not 'Checks'
300: D400 First line should end with '.', not 'v'
342: D209 Put multi-line docstring closing quotes on separate line
342: D400 First line should end with '.', not 's'
346:24: E203 whitespace before ':'
353: D400 First line should end with '.', not 'd'
365: D202 No blank lines allowed *after* function docstring, found 1
365: D400 First line should end with '.', not 'n'
368: D401 First line should be imperative: 'Return', not 'Returns'
368: D400 First line should end with '.', not 's'
392: D202 No blank lines allowed *after* function docstring, found 1
392: D400 First line should end with '.', not 'k'
458: D401 First line should be imperative: 'Construct', not 'Constructs'
462:9: E128 continuation line under-indented for visual indent
463:9: E128 continuation line under-indented for visual indent
464:9: E128 continuation line under-indented for visual indent
465:9: E128 continuation line under-indented for visual indent
474:9: E128 continuation line under-indented for visual indent
475:9: E128 continuation line under-indented for visual indent
476:9: E128 continuation line under-indented for visual indent
477:9: E128 continuation line under-indented for visual indent


Problem was here, I should have realised that the issue was the blocks would not settle because the player controlled block was considered 'in play' and therefore could not be settled, this is why the other blocks would not fall until the player controlled block was placed


1: M100 needs more reviewers
1: M101 signature is missing
3: M190 line is too long (73 > 72)


1: D400 First line should end with '.', not 'd'
4: L102 copyright year is outdated, expected 2015 but got 2012
24:1: I101 Imported names are in the wrong order. Should be task_get_option, task_sleep_now_if_required, task_update_progress, write_message
24:1: I201 Missing newline before sections or imports.
25:29: E126 continuation line over-indented for hanging indent
31: D103 Docstring missing
40: D103 Docstring missing
57: D103 Docstring missing
68: D103 Docstring missing
101: D103 Docstring missing
115: D401 First line should be imperative: 'Call', not 'Calls'
115: D400 First line should end with '.', not 't'
134: D400 First line should end with '.', not 'e'
134: D205 Blank line missing between one-line summary and description


1: M100 needs more reviewers
1: M101 signature is missing
3: M190 line is too long (77 > 72)


1: D290 White spaces around docstring should be trimmed.
1: D400 First line should end with '.', not 'y'
4: L102 copyright year is outdated, expected 2015 but got 2014
25:1: I100 Imports statements are in the wrong order. import os should be before import traceback
28:1: I100 Imports statements are in the wrong order. import datetime should be before import time
30:1: I100 Imports statements are in the wrong order. import inspect should be before import re
33:1: I101 Imported names are in the wrong order. Should be CFG_ERRORLIB_RESET_EXCEPTION_NOTIFICATION_COUNTER_AFTER, CFG_ERRORLIB_SENTRY_URI, CFG_LOGDIR, CFG_PROPAGATE_EXCEPTIONS, CFG_SITE_ADMIN_EMAIL, CFG_SITE_ADMIN_EMAIL_EXCEPTIONS, CFG_SITE_EMERGENCY_EMAIL_ADDRESSES, CFG_SITE_LANG, CFG_SITE_NAME, CFG_SITE_SUPPORT_EMAIL, CFG_SITE_URL, CFG_VERSION, CFG_WEBALERT_ALERT_ENGINE_EMAIL
33:1: F401 'CFG_SITE_LANG' imported but unused
42:1: F401 'wash_url_argument' imported but unused
43:1: I101 Imported names are in the wrong order. Should be gettext_set_language, wash_language
43:1: I100 Imports statements are in the wrong order. from invenio.messages should be before from invenio.urlutils
43:1: F401 'wash_language' imported but unused
43:1: F401 'gettext_set_language' imported but unused
44:1: I100 Imports statements are in the wrong order. from invenio.dateutils should be before from invenio.messages
53: D401 First line should be imperative: 'Return', not 'Returns'
53: D400 First line should end with '.', not 'n'
53: D205 Blank line missing between one-line summary and description
63:59: E502 the backslash is redundant between brackets
64:27: E131 continuation line unaligned for hanging indent
66:5: B901 blind except: statement
70: D209 Put multi-line docstring closing quotes on separate line
70: D400 First line should end with '.', not 't'
70: D205 Blank line missing between one-line summary and description
96: D400 First line should end with '.', not 'e'
96: D205 Blank line missing between one-line summary and description
114:13: E122 continuation line missing indentation or outdented
115:13: E122 continuation line missing indentation or outdented
116:13: E122 continuation line missing indentation or outdented
117:13: E122 continuation line missing indentation or outdented
117:52: E502 the backslash is redundant between brackets
118:21: E126 continuation line over-indented for hanging indent
121:1: E302 expected 2 blank lines, found 1
121: D400 First line should end with '.', not 'h'
121: D205 Blank line missing between one-line summary and description
143:1: E302 expected 2 blank lines, found 1
143: D202 No blank lines allowed *after* function docstring, found 1
143: D400 First line should end with '.', not 'm'
143: D205 Blank line missing between one-line summary and description
173:1: E302 expected 2 blank lines, found 1
198:1: E302 expected 2 blank lines, found 1
198: D400 First line should end with '.', not ','
198: D205 Blank line missing between one-line summary and description
220:38: E202 whitespace before '}'
232:17: E127 continuation line over-indented for visual indent
239:21: E127 continuation line over-indented for visual indent
245:29: E127 continuation line over-indented for visual indent
268:21: B901 blind except: statement
283:25: B901 blind except: statement
308:1: E302 expected 2 blank lines, found 1
308: D400 First line should end with '.', not '2'
308: D200 One-line docstring should not occupy 3 lines
318:1: E302 expected 2 blank lines, found 1
318: D205 Blank line missing between one-line summary and description
340:5: B901 blind except: statement
344:1: E302 expected 2 blank lines, found 1
344: D200 One-line docstring should not occupy 3 lines
355:1: E302 expected 2 blank lines, found 1
355: D202 No blank lines allowed *after* function docstring, found 1
355: D205 Blank line missing between one-line summary and description
397:37: E128 continuation line under-indented for visual indent
398:37: E128 continuation line under-indented for visual indent
399:37: E128 continuation line under-indented for visual indent
400:37: E128 continuation line under-indented for visual indent
403:37: E128 continuation line under-indented for visual indent
404:37: E128 continuation line under-indented for visual indent
405:37: E128 continuation line under-indented for visual indent
406:37: E128 continuation line under-indented for visual indent
407:37: E128 continuation line under-indented for visual indent
408:37: E128 continuation line under-indented for visual indent
409:37: E128 continuation line under-indented for visual indent
461:28: E225 missing whitespace around operator
470:13: B901 blind except: statement
480:17: E128 continuation line under-indented for visual indent
481:17: E129 visually indented line with same indent as next logical line
506: D205 Blank line missing between one-line summary and description
548:5: B901 blind except: statement
557: D401 First line should be imperative: 'Send', not 'Sends'
557: D400 First line should end with '.', not 'k'
557: D200 One-line docstring should not occupy 3 lines
591:13: E131 continuation line unaligned for hanging indent
595:1: E302 expected 2 blank lines, found 1
595: D200 One-line docstring should not occupy 3 lines
606:1: E302 expected 2 blank lines, found 1
606: D400 First line should end with '.', not 'r'
606: D205 Blank line missing between one-line summary and description
617: D103 Docstring missing
626:13: E122 continuation line missing indentation or outdented
627:13: E122 continuation line missing indentation or outdented
628:13: E122 continuation line missing indentation or outdented
629:13: E122 continuation line missing indentation or outdented
630:13: E122 continuation line missing indentation or outdented


1: M100 needs more reviewers
1: M101 signature is missing
1: M190 line is too long (56 > 50)


Command matcher should only match if it's the first thing on the line (e.g. `$line` matches `/^\s*command`)