29:1: E402 module level import not at top of file
30:1: E402 module level import not at top of file
31:1: E402 module level import not at top of file
32:1: E402 module level import not at top of file
33:1: E402 module level import not at top of file
36:1: I101 Imported names are in the wrong order. Should be CFG_ACCESS_CONTROL_LEVEL_ACCOUNTS, CFG_BASE_URL, CFG_BIBFORMAT_HIDDEN_TAGS, CFG_BIBINDEX_CHARS_PUNCTUATION, CFG_BIBRANK_SHOW_DOWNLOAD_GRAPHS, CFG_BIBRANK_SHOW_DOWNLOAD_GRAPHS, CFG_BIBSORT_BUCKETS, CFG_BIBSORT_ENABLED, CFG_BIBUPLOAD_EXTERNAL_SYSNO_TAG, CFG_BIBUPLOAD_EXTERNAL_SYSNO_TAG, CFG_BIBUPLOAD_SERIALIZE_RECORD_STRUCTURE, CFG_BIBUPLOAD_SERIALIZE_RECORD_STRUCTURE, CFG_CERN_SITE, CFG_INSPIRE_SITE, CFG_LOGDIR, CFG_LOGDIR, CFG_OAI_ID_FIELD, CFG_SITE_LANG, CFG_SITE_NAME, CFG_SITE_RECORD, CFG_SITE_URL, CFG_SOLR_URL, CFG_WEBSEARCH_DEF_RECORDS_IN_GROUPS, CFG_WEBSEARCH_DETAILED_META_FORMAT, CFG_WEBSEARCH_DISPLAY_NEAREST_TERMS, CFG_WEBSEARCH_FIELDS_CONVERT, CFG_WEBSEARCH_FULLTEXT_SNIPPETS, CFG_WEBSEARCH_IDXPAIRS_EXACT_SEARCH, CFG_WEBSEARCH_IDXPAIRS_FIELDS, CFG_WEBSEARCH_PREV_NEXT_HIT_LIMIT, CFG_WEBSEARCH_SYNONYM_KBRS, CFG_WEBSEARCH_VIEWRESTRCOLL_POLICY, CFG_WEBSEARCH_WILDCARD_LIMIT, CFG_WEBSEARCH_WILDCARD_LIMIT, CFG_XAPIAN_ENABLED
36:1: F999 redefinition of unused 'CFG_BIBUPLOAD_SERIALIZE_RECORD_STRUCTURE' from line 36
36:1: F999 redefinition of unused 'CFG_BIBUPLOAD_EXTERNAL_SYSNO_TAG' from line 36
36:1: F999 redefinition of unused 'CFG_BIBRANK_SHOW_DOWNLOAD_GRAPHS' from line 36
36:1: F999 redefinition of unused 'CFG_LOGDIR' from line 36
36:1: F999 redefinition of unused 'CFG_WEBSEARCH_WILDCARD_LIMIT' from line 36
36:1: F401 'CFG_XAPIAN_ENABLED' imported but unused
36:1: F401 'CFG_BIBINDEX_CHARS_PUNCTUATION' imported but unused
36:1: F401 'CFG_OAI_ID_FIELD' imported but unused
36:1: F401 'CFG_WEBSEARCH_VIEWRESTRCOLL_POLICY' imported but unused
36:1: F401 'CFG_WEBSEARCH_SYNONYM_KBRS' imported but unused
36:1: F401 'CFG_BIBUPLOAD_SERIALIZE_RECORD_STRUCTURE' imported but unused
36:1: F401 'CFG_WEBSEARCH_DISPLAY_NEAREST_TERMS' imported but unused
36:1: F401 'CFG_WEBSEARCH_FIELDS_CONVERT' imported but unused
36:1: F401 'CFG_ACCESS_CONTROL_LEVEL_ACCOUNTS' imported but unused
36:1: F401 'CFG_SITE_RECORD' imported but unused
36:1: F401 'CFG_BIBRANK_SHOW_DOWNLOAD_GRAPHS' imported but unused
36:1: F401 'CFG_INSPIRE_SITE' imported but unused
36:1: F401 'CFG_LOGDIR' imported but unused
36:1: F401 'CFG_BIBUPLOAD_EXTERNAL_SYSNO_TAG' imported but unused
36:1: F401 'CFG_WEBSEARCH_PREV_NEXT_HIT_LIMIT' imported but unused
36:1: F401 'CFG_BASE_URL' imported but unused
36:1: F401 'CFG_BIBFORMAT_HIDDEN_TAGS' imported but unused
36:1: F401 'CFG_WEBSEARCH_WILDCARD_LIMIT' imported but unused
36:1: F401 'CFG_WEBSEARCH_DETAILED_META_FORMAT' imported but unused
36:1: F401 'CFG_BIBSORT_BUCKETS' imported but unused
36:1: F401 'CFG_WEBSEARCH_FULLTEXT_SNIPPETS' imported but unused
36:1: F401 'CFG_SOLR_URL' imported but unused
36:1: F401 'CFG_WEBSEARCH_IDXPAIRS_EXACT_SEARCH' imported but unused
36:1: F401 'CFG_WEBSEARCH_IDXPAIRS_FIELDS' imported but unused
36:1: E402 module level import not at top of file
37:6: E126 continuation line over-indented for hanging indent
80:1: E402 module level import not at top of file
81:1: F401 'get_most_popular_field_values' imported but unused
81:1: E402 module level import not at top of file
82:1: I101 Imported names are in the wrong order. Should be InvenioWebSearchCitedbyLimitError, InvenioWebSearchReferstoLimitError, InvenioWebSearchUnknownCollectionError, InvenioWebSearchWildcardLimitError
82:1: I100 Imports statements are in the wrong order. from invenio.modules.search.errors should be before from invenio.modules.search.utils
82:1: F401 'InvenioWebSearchUnknownCollectionError' imported but unused
82:1: F401 'InvenioWebSearchReferstoLimitError' imported but unused
82:1: F401 'InvenioWebSearchWildcardLimitError' imported but unused
82:1: F401 'InvenioWebSearchCitedbyLimitError' imported but unused
82:1: E402 module level import not at top of file
83:6: E126 continuation line over-indented for hanging indent
87:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrecord should be before from invenio.modules.search.errors
87:1: F401 'get_fieldvalues_alephseq_like' imported but unused
87:1: E402 module level import not at top of file
89:1: E402 module level import not at top of file
90:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrecord should be before from .utils
90:1: I201 Missing newline before sections or imports.
90:1: F401 'create_record' imported but unused
90:1: F401 'record_xml_output' imported but unused
90:1: E402 module level import not at top of file
91:1: I101 Imported names are in the wrong order. Should be get_bibrank_methods, is_method_valid, rank_by_citations, rank_records
91:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrank.record_sorter should be before from invenio.legacy.bibrecord
91:1: F401 'rank_by_citations' imported but unused
91:1: F401 'get_bibrank_methods' imported but unused
91:1: E402 module level import not at top of file
96:1: I101 Imported names are in the wrong order. Should be calculate_reading_similarity_list, register_page_view_event
96:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrank.downloads_similarity should be before from invenio.legacy.bibrank.record_sorter
96:1: F401 'register_page_view_event' imported but unused
96:1: F401 'calculate_reading_similarity_list' imported but unused
96:1: E402 module level import not at top of file
97:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibindex.engine_stemmer should be before from invenio.legacy.bibrank.downloads_similarity
97:1: F401 'stem' imported but unused
97:1: E402 module level import not at top of file
98:1: F401 'BibIndexDefaultTokenizer' imported but unused
98:1: E402 module level import not at top of file
99:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibindex.engine_utils should be before from invenio.modules.indexer.tokenizers.BibIndexDefaultTokenizer
99:1: F401 'author_name_requires_phrase_search' imported but unused
99:1: F401 'get_field_tags' imported but unused
99:1: E402 module level import not at top of file
101:1: I101 Imported names are in the wrong order. Should be lower_index_term, wash_author_name, wash_index_term
101:1: F401 'wash_index_term' imported but unused
101:1: F401 'wash_author_name' imported but unused
101:1: F401 'lower_index_term' imported but unused
101:1: E402 module level import not at top of file
102:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibindex.engine_config should be before from invenio.legacy.bibindex.engine_washer
102:1: F401 'CFG_BIBINDEX_SYNONYM_MATCH_TYPE' imported but unused
102:1: E402 module level import not at top of file
103:1: I101 Imported names are in the wrong order. Should be create_excel, format_record, format_records, get_output_format_content_type
103:1: F401 'create_excel' imported but unused
103:1: F401 'get_output_format_content_type' imported but unused
103:1: F401 'format_record' imported but unused
103:1: F401 'format_records' imported but unused
103:1: E402 module level import not at top of file
104:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrank.downloads_grapher should be before from invenio.modules.formatter
104:1: F401 'create_download_history_graph_and_box' imported but unused
104:1: E402 module level import not at top of file
105:1: F401 'DataCacher' imported but unused
105:1: E402 module level import not at top of file
106:1: I101 Imported names are in the wrong order. Should be perform_external_collection_search, print_external_results_overview
106:1: F401 'perform_external_collection_search' imported but unused
106:1: F401 'print_external_results_overview' imported but unused
106:1: E402 module level import not at top of file
107:1: E402 module level import not at top of file
108:1: I101 Imported names are in the wrong order. Should be CFG_ACC_GRANT_AUTHOR_RIGHTS_TO_EMAILS_IN_TAGS, CFG_ACC_GRANT_VIEWER_RIGHTS_TO_EMAILS_IN_TAGS, VIEWRESTRCOLL
108:1: F401 'CFG_ACC_GRANT_AUTHOR_RIGHTS_TO_EMAILS_IN_TAGS' imported but unused
108:1: F401 'CFG_ACC_GRANT_VIEWER_RIGHTS_TO_EMAILS_IN_TAGS' imported but unused
108:1: E402 module level import not at top of file
111:1: I100 Imports statements are in the wrong order. from invenio.legacy.websearch.adminlib should be before from invenio.modules.access.local_config
111:1: F401 'get_detailed_page_tabs' imported but unused
111:1: F401 'get_detailed_page_tabs_counts' imported but unused
111:1: E402 module level import not at top of file
112:1: I100 Imports statements are in the wrong order. from intbitset should be before from invenio.legacy.websearch.adminlib
112:1: I201 Missing newline before sections or imports.
112:1: E402 module level import not at top of file
113:1: I101 Imported names are in the wrong order. Should be DatabaseError, InvenioDbQueryWildcardLimitError, deserialize_via_marshal
113:1: I201 Missing newline before sections or imports.
113:1: F401 'deserialize_via_marshal' imported but unused
113:1: F401 'DatabaseError' imported but unused
113:1: F401 'InvenioDbQueryWildcardLimitError' imported but unused
113:1: E402 module level import not at top of file
114:1: F401 'acc_authorize_action' imported but unused
114:1: E402 module level import not at top of file
115:1: I100 Imports statements are in the wrong order. from invenio.ext.logging should be before from invenio.modules.access.engine
115:1: E402 module level import not at top of file
116:1: I101 Imported names are in the wrong order. Should be encode_for_xml, strip_accents, wash_for_utf8
116:1: F401 'encode_for_xml' imported but unused
116:1: F401 'wash_for_utf8' imported but unused
116:1: F401 'strip_accents' imported but unused
116:1: E402 module level import not at top of file
117:1: I100 Imports statements are in the wrong order. from invenio.legacy should be before from invenio.utils.text
117:1: E402 module level import not at top of file
119:1: E402 module level import not at top of file
122:1: I101 Imported names are in the wrong order. Should be calculate_cited_by_list, calculate_co_cited_with_list, get_cited_by_list, get_citedby_hitset, get_citers_log, get_records_with_num_cites, get_refers_to_list, get_refersto_hitset
122:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrank.citation_searcher should be before import invenio.legacy.template
122:1: F401 'get_citedby_hitset' imported but unused
122:1: F401 'calculate_cited_by_list' imported but unused
122:1: F401 'get_refersto_hitset' imported but unused
122:1: F401 'get_records_with_num_cites' imported but unused
122:1: F401 'get_cited_by_list' imported but unused
122:1: F401 'get_citers_log' imported but unused
122:1: F401 'calculate_co_cited_with_list' imported but unused
122:1: F401 'get_refers_to_list' imported but unused
122:1: E402 module level import not at top of file
127:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrank.citation_grapher should be before from invenio.legacy.bibrank.citation_searcher
127:1: F401 'create_citation_history_graph_and_box' imported but unused
127:1: E402 module level import not at top of file
128:1: I101 Imported names are in the wrong order. Should be get_self_cited_by, get_self_cited_by_list, get_self_refers_to_list
128:1: F401 'get_self_refers_to_list' imported but unused
128:1: F401 'get_self_cited_by' imported but unused
128:1: F401 'get_self_cited_by_list' imported but unused
128:1: E402 module level import not at top of file
129:55: E126 continuation line over-indented for hanging indent
132:1: I101 Imported names are in the wrong order. Should be get_table_update_time, run_sql, run_sql_with_limit, wash_table_column_name
132:1: F401 'wash_table_column_name' imported but unused
132:1: F401 'get_table_update_time' imported but unused
132:1: F401 'run_sql_with_limit' imported but unused
132:1: E402 module level import not at top of file
134:1: I101 Imported names are in the wrong order. Should be collect_user_info, getUid
134:1: F401 'collect_user_info' imported but unused
134:1: E402 module level import not at top of file
135:1: I101 Imported names are in the wrong order. Should be create_error_box, pagefooteronly, pageheaderonly, write_warning
135:1: I100 Imports statements are in the wrong order. from invenio.legacy.webpage should be before from invenio.legacy.webuser
135:1: F401 'pagefooteronly' imported but unused
135:1: F401 'create_error_box' imported but unused
135:1: F401 'write_warning' imported but unused
135:1: F401 'pageheaderonly' imported but unused
135:1: E402 module level import not at top of file
136:1: I100 Imports statements are in the wrong order. from invenio.base.i18n should be before from invenio.legacy.webpage
136:1: E402 module level import not at top of file
138:1: F401 'apache' imported but unused
138:1: E402 module level import not at top of file
140:1: I100 Imports statements are in the wrong order. from invenio.legacy.websearch_external_collections should be before from invenio.utils
140:1: F401 'do_calculate_hosted_collections_results' imported but unused
140:1: F401 'calculate_hosted_collections_results' imported but unused
140:1: E402 module level import not at top of file
141:1: F401 'CFG_EXTERNAL_COLLECTION_MAXRESULTS' imported but unused
141:1: E402 module level import not at top of file
146:22: E203 whitespace before ':'
146:14: E225 missing whitespace around operator
147:24: E203 whitespace before ':'
148:24: E203 whitespace before ':'
149:28: E203 whitespace before ':'
150:30: E203 whitespace before ':'
151:24: E203 whitespace before ':'
152:23: E203 whitespace before ':'
153:29: E203 whitespace before ':'
154:26: E203 whitespace before ':'
155:33: E203 whitespace before ':'
156:30: E203 whitespace before ':'
157:30: E203 whitespace before ':'
158:30: E203 whitespace before ':'
159:30: E203 whitespace before ':'
160:30: E203 whitespace before ':'
161:30: E203 whitespace before ':'
162:41: E703 statement ends with a semicolon
164:1: E402 module level import not at top of file
165:1: F401 'collection_restricted_p' imported but unused
165:1: E402 module level import not at top of file
166:1: F401 'restricted_collection_cache' imported but unused
166:1: E402 module level import not at top of file
167:1: F401 'get_permitted_restricted_collections' imported but unused
167:1: E402 module level import not at top of file
168:1: I100 Imports statements are in the wrong order. from invenio.modules.collections.cache should be before from invenio.modules.search.utils
168:1: F401 'get_all_restricted_recids' imported but unused
168:1: E402 module level import not at top of file
171:1: F401 'check_user_can_view_record' imported but unused
171:1: E402 module level import not at top of file
173:1: I100 Imports statements are in the wrong order. from invenio.modules.collections.cache should be before from invenio.modules.records.access
173:1: E402 module level import not at top of file
174:1: I100 Imports statements are in the wrong order. from invenio.modules.collections.cache should be before from invenio.modules.collections.cache
174:1: E402 module level import not at top of file
175:1: F401 'get_field_i18nname' imported but unused
175:1: E402 module level import not at top of file
177:1: I100 Imports statements are in the wrong order. from invenio.modules.indexer.models should be before from invenio.modules.search.cache
177:1: E402 module level import not at top of file
183: D401 First line should be imperative: 'Create', not 'Creates'
183: D202 No blank lines allowed *after* function docstring, found 1
183: D400 First line should end with '.', not 'n'
183: D205 Blank line missing between one-line summary and description
191:33: E261 at least two spaces before inline comment
200:1: F401 'get_synonym_terms' imported but unused
200:1: E402 module level import not at top of file
202:1: F403 'from invenio.modules.search.washers import *' used; unable to detect undefined names
202:1: E402 module level import not at top of file
205: D401 First line should be imperative: 'Return', not 'Returns'
205: D300 Expected """-quotes, got '-quotes
226:1: I100 Imports statements are in the wrong order. from invenio.modules.collections.cache should be before from invenio.modules.search.washers
226:1: F401 'get_collection_allchildren' imported but unused
226:1: E402 module level import not at top of file
229: D401 First line should be imperative: 'Return', not 'Returns'
229: D202 No blank lines allowed *after* function docstring, found 1
232:5: E266 too many leading '#' for block comment
236:5: E266 too many leading '#' for block comment
237:5: E266 too many leading '#' for block comment
239:34: E261 at least two spaces before inline comment
256:13: B901 blind except: statement
261:9: E266 too many leading '#' for block comment
273:9: E266 too many leading '#' for block comment
278:17: E266 too many leading '#' for block comment
287: D400 First line should end with '.', not 'o'
287: D205 Blank line missing between one-line summary and description
287: D208 Docstring is over-indented
332:1: F403 'from invenio.modules.search.searchext.engines.native import *' used; unable to detect undefined names
332:1: E402 module level import not at top of file
335: D209 Put multi-line docstring closing quotes on separate line
335: D400 First line should end with '.', not 'y'
335: D205 Blank line missing between one-line summary and description
335: D208 Docstring is over-indented
348:38: E203 whitespace before ','
379:1: E302 expected 2 blank lines, found 0
379: D209 Put multi-line docstring closing quotes on separate line
379: D400 First line should end with '.', not 'g'
379: D205 Blank line missing between one-line summary and description
379: D208 Docstring is over-indented
408: D209 Put multi-line docstring closing quotes on separate line
408: D205 Blank line missing between one-line summary and description
420:1: I100 Imports statements are in the wrong order. from invenio.modules.search.models should be before from invenio.modules.search.searchext.engines.native
420:1: E402 module level import not at top of file
425: D290 White spaces around docstring should be trimmed.
425: D400 First line should end with '.', not 'h'
425: D205 Blank line missing between one-line summary and description
443: D401 First line should be imperative: 'I', not 'Is'
443: D400 First line should end with '.', not '?'
454:1: E302 expected 2 blank lines, found 1
454: D205 Blank line missing between one-line summary and description
454: D208 Docstring is over-indented
461:1: I101 Imported names are in the wrong order. Should be CACHE_SORTED_DATA, SORTING_METHODS
461:1: F401 'CACHE_SORTED_DATA' imported but unused
461:1: E402 module level import not at top of file
464: D205 Blank line missing between one-line summary and description
464: D208 Docstring is over-indented
478:20: E127 continuation line over-indented for visual indent
480:25: E126 continuation line over-indented for hanging indent
531: D103 Docstring missing
541: D401 First line should be imperative: 'calculate', not 'calculates'
541: D209 Put multi-line docstring closing quotes on separate line
541: D202 No blank lines allowed *after* function docstring, found 1
541: D400 First line should end with '.', not 'e'
541: D205 Blank line missing between one-line summary and description
552:20: E261 at least two spaces before inline comment
556:17: E261 at least two spaces before inline comment
599: D290 White spaces around docstring should be trimmed.
599: D400 First line should end with '.', not 'n'
605:25: E261 at least two spaces before inline comment
606:13: E222 multiple spaces after operator
629:10: E261 at least two spaces before inline comment
646:1: E266 too many leading '#' for block comment
648: D103 Docstring missing
649:25: E128 continuation line under-indented for visual indent
650:25: E128 continuation line under-indented for visual indent
651:25: E128 continuation line under-indented for visual indent
652:25: E128 continuation line under-indented for visual indent
669: D401 First line should be imperative: 'Set', not 'Sets'
669: D202 No blank lines allowed *after* function docstring, found 1
669: D400 First line should end with '.', not 'l'
669: D200 One-line docstring should not occupy 3 lines
670:23: E128 continuation line under-indented for visual indent
671:23: E128 continuation line under-indented for visual indent
672:23: E128 continuation line under-indented for visual indent
673:23: E128 continuation line under-indented for visual indent
674:23: E128 continuation line under-indented for visual indent
712:9: B901 blind except: statement


1: D100 Docstring missing


73: D102 Docstring missing
118: D101 Docstring missing
119: D102 Docstring missing
148: D103 Docstring missing
187: D203 Expected 1 blank line *before* class docstring, found 0
187: D204 Expected 1 blank line *after* class docstring, found 0
187: D400 First line should end with '.', not 'e'
187: D205 Blank line missing between one-line summary and description
192: D102 Docstring missing


24:1: I100 Imports statements are in the wrong order. from flask_login should be before import pypeg2
25:1: I201 Missing newline before sections or imports.
26:1: I201 Missing newline before sections or imports.
29:1: I100 Imports statements are in the wrong order. from .walkers.match_unit should be before from .walkers.terms


22:1: I101 Imported names are in the wrong order. Should be g, request, url_for
24:1: I201 Missing newline before sections or imports.
25:1: I100 Imports statements are in the wrong order. from itertools should be before from intbitset
25:1: I201 Missing newline before sections or imports.
27:1: I201 Missing newline before sections or imports.
29:1: I100 Imports statements are in the wrong order. from invenio.base.globals should be before from six
137:9: B901 blind except: statement


26:1: I201 Missing newline before sections or imports.
243: D401 First line should be imperative: 'Searche', not 'Searches'
243: D209 Put multi-line docstring closing quotes on separate line
243: D400 First line should end with '.', not 'd'
243: D205 Blank line missing between one-line summary and description
388:9: E731 do not assign a lambda expression, use a def
394:13: E731 do not assign a lambda expression, use a def
398:17: E731 do not assign a lambda expression, use a def
400:17: E731 do not assign a lambda expression, use a def
449:9: E731 do not assign a lambda expression, use a def
455:13: E731 do not assign a lambda expression, use a def
459:17: E731 do not assign a lambda expression, use a def
461:17: E731 do not assign a lambda expression, use a def


22:1: I101 Imported names are in the wrong order. Should be AndOp, DoubleQuotedValue, EmptyQuery, Keyword, KeywordOp, NotOp, OrOp, RangeOp, RegexValue, SingleQuotedValue, Value, ValueQuery
42: D102 Docstring missing
45:5: F999 redefinition of unused 'visit' from line 41
46: D102 Docstring missing
49:5: F999 redefinition of unused 'visit' from line 45
50: D102 Docstring missing
53:5: F999 redefinition of unused 'visit' from line 49
54: D102 Docstring missing
59:5: F999 redefinition of unused 'visit' from line 53
60: D102 Docstring missing
63:5: F999 redefinition of unused 'visit' from line 59
64: D102 Docstring missing
68:5: F999 redefinition of unused 'visit' from line 63
69: D102 Docstring missing
77:5: F999 redefinition of unused 'visit' from line 68
78: D102 Docstring missing
87:5: F999 redefinition of unused 'visit' from line 77
88: D102 Docstring missing
93:5: F999 redefinition of unused 'visit' from line 87
94: D102 Docstring missing
99:5: F999 redefinition of unused 'visit' from line 93
100: D102 Docstring missing
110:5: F999 redefinition of unused 'visit' from line 99
111: D102 Docstring missing


23:1: I201 Missing newline before sections or imports.
25:1: I101 Imported names are in the wrong order. Should be AndOp, DoubleQuotedValue, EmptyQuery, Keyword, KeywordOp, NotOp, OrOp, RangeOp, RegexValue, SingleQuotedValue, Value, ValueQuery
25:1: I100 Imports statements are in the wrong order. from invenio_query_parser.ast should be before import six
76: D102 Docstring missing
82: D102 Docstring missing
85:5: F999 redefinition of unused 'visit' from line 81
86: D102 Docstring missing
89:5: F999 redefinition of unused 'visit' from line 85
90: D102 Docstring missing
93:5: F999 redefinition of unused 'visit' from line 89
94: D102 Docstring missing
101:5: F999 redefinition of unused 'visit' from line 93
102: D102 Docstring missing
105:5: F999 redefinition of unused 'visit' from line 101
106: D102 Docstring missing
109:5: F999 redefinition of unused 'visit' from line 105
110: D102 Docstring missing
113:5: F999 redefinition of unused 'visit' from line 109
114: D102 Docstring missing
117:5: F999 redefinition of unused 'visit' from line 113
118: D102 Docstring missing
121:5: F999 redefinition of unused 'visit' from line 117
122: D102 Docstring missing
125:5: F999 redefinition of unused 'visit' from line 121
126: D102 Docstring missing
129:5: F999 redefinition of unused 'visit' from line 125
130: D102 Docstring missing


23:1: I101 Imported names are in the wrong order. Should be AndOp, DoubleQuotedValue, EmptyQuery, Keyword, KeywordOp, NotOp, OrOp, RangeOp, RegexValue, SingleQuotedValue, Value, ValueQuery
23:1: I201 Missing newline before sections or imports.
45: D102 Docstring missing
48:5: F999 redefinition of unused 'visit' from line 44
49: D102 Docstring missing
52:5: F999 redefinition of unused 'visit' from line 48
53: D102 Docstring missing
56:5: F999 redefinition of unused 'visit' from line 52
57: D102 Docstring missing
64:5: F999 redefinition of unused 'visit' from line 56
65: D102 Docstring missing
68:5: F999 redefinition of unused 'visit' from line 64
69: D102 Docstring missing
72:5: F999 redefinition of unused 'visit' from line 68
73: D102 Docstring missing
76:5: F999 redefinition of unused 'visit' from line 72
77: D102 Docstring missing
80:5: F999 redefinition of unused 'visit' from line 76
81: D102 Docstring missing
84:5: F999 redefinition of unused 'visit' from line 80
85: D102 Docstring missing
88:5: F999 redefinition of unused 'visit' from line 84
89: D102 Docstring missing
92:5: F999 redefinition of unused 'visit' from line 88
93: D102 Docstring missing


1: M100 needs more reviewers
1: M101 signature is missing


27:1: I201 Missing newline before sections or imports.
255: D401 First line should be imperative: 'Searche', not 'Searches'
255: D209 Put multi-line docstring closing quotes on separate line
255: D400 First line should end with '.', not 'd'
255: D205 Blank line missing between one-line summary and description
400:9: E731 do not assign a lambda expression, use a def
406:13: E731 do not assign a lambda expression, use a def
410:17: E731 do not assign a lambda expression, use a def
412:17: E731 do not assign a lambda expression, use a def
461:9: E731 do not assign a lambda expression, use a def
467:13: E731 do not assign a lambda expression, use a def
471:17: E731 do not assign a lambda expression, use a def
473:17: E731 do not assign a lambda expression, use a def


3: L102 copyright year is outdated, expected 2015 but got 2014


44:1: F401 'functools' imported but unused
45:1: F401 'json' imported but unused
48:1: I101 Imported names are in the wrong order. Should be Blueprint, abort, current_app, flash, g, jsonify, make_response, redirect, render_template, request, session, url_for
48:1: F401 'render_template' imported but unused
51:1: I101 Imported names are in the wrong order. Should be current_breadcrumbs, default_breadcrumb_root, register_breadcrumb
54:1: I100 Imports statements are in the wrong order. from math should be before from flask.ext.login
54:1: I201 Missing newline before sections or imports.
55:1: I201 Missing newline before sections or imports.
56:1: I201 Missing newline before sections or imports.
58:1: I101 Imported names are in the wrong order. Should be templated, wash_arguments
58:1: I100 Imports statements are in the wrong order. from invenio.base.decorators should be before from werkzeug.local
62:1: I100 Imports statements are in the wrong order. from invenio.ext.template.context_processor should be before from invenio.modules.indexer.models
65:1: I100 Imports statements are in the wrong order. from invenio.modules.search.registry should be before from invenio.utils.pagination
66:1: I100 Imports statements are in the wrong order. from invenio.modules.collections.decorators should be before from invenio.modules.search.registry
70:1: I101 Imported names are in the wrong order. Should be get_collection_name_from_cache, get_search_query_id
70:1: F401 'get_collection_name_from_cache' imported but unused
71:1: I101 Imported names are in the wrong order. Should be faceted_results_filter, get_current_user_records_that_can_be_displayed
71:1: F401 'faceted_results_filter' imported but unused
191:5: B901 blind except: statement
259:9: E731 do not assign a lambda expression, use a def


spelling of assignment.


no, it's all inside one action.

i was suggesting to, instead of taking the map out from `DB` and sticking it back in later, we could just apply a function to it inside `DB` with a lens operator that works like `state` from the `State` monad.

you are right: avoiding an extra map traversal is more interesting than avoiding an extra record access.  if you just use `updateLookupWithKey` is should be fine.


Very soon.


4: L102 copyright year is outdated, expected 2015 but got 2014
30:1: I100 Imports statements are in the wrong order. import os should be before import warnings
30:1: E402 module level import not at top of file
31:1: I201 Missing newline before sections or imports.
31:1: E402 module level import not at top of file
32:1: I100 Imports statements are in the wrong order. import sys should be before import pkg_resources
32:1: I201 Missing newline before sections or imports.
32:1: E402 module level import not at top of file
34:1: E402 module level import not at top of file
36:1: E402 module level import not at top of file
71:5: E266 too many leading '#' for block comment


30:3: B901 blind except: statement
35:1: I101 Imported names are in the wrong order. Should be abort, current_app, g, render_template, request, send_from_directory, url_for
35:1: I100 Imports statements are in the wrong order. from flask should be before from werkzeug.wrappers
35:1: I201 Missing newline before sections or imports.
72:5: E266 too many leading '#' for block comment
79:5: E266 too many leading '#' for block comment
130:5: E266 too many leading '#' for block comment
162:13: E731 do not assign a lambda expression, use a def


4: L102 copyright year is outdated, expected 2015 but got 2014
37:1: I201 Missing newline before sections or imports.
38:1: I100 Imports statements are in the wrong order. import sys should be before import sqlalchemy
38:1: I201 Missing newline before sections or imports.
41:1: I201 Missing newline before sections or imports.
44:1: F401 'attribute_mapped_collection' imported but unused
103:13: B901 blind except: statement
130:14: B901 blind except: statement
176:9: B901 blind except: statement
298: D102 Docstring missing
306: D102 Docstring missing
324: D102 Docstring missing


4: L102 copyright year is outdated, expected 2015 but got 2014
24:1: I101 Imported names are in the wrong order. Should be current_app, g, has_app_context, request
24:1: I100 Imports statements are in the wrong order. from flask should be before import six
25:1: I201 Missing newline before sections or imports.


1: D205 Blank line missing between one-line summary and description
1: D208 Docstring is over-indented
30:1: E402 module level import not at top of file
31:1: I100 Imports statements are in the wrong order. import cgi should be before import time
31:1: E402 module level import not at top of file
32:1: I201 Missing newline before sections or imports.
32:1: E402 module level import not at top of file
33:1: I101 Imported names are in the wrong order. Should be CFG_ACCESS_CONTROL_LEVEL_SITE, CFG_CERN_SITE, CFG_SITE_LANG, CFG_SITE_RECORD, CFG_SITE_SECURE_URL, CFG_SITE_URL
33:1: I100 Imports statements are in the wrong order. from invenio.config should be before from six
33:1: I201 Missing newline before sections or imports.
33:1: E402 module level import not at top of file
34:28: E126 continuation line over-indented for hanging indent
39:1: I101 Imported names are in the wrong order. Should be collect_user_info, getUid, isGuestUser, page_not_authorized
39:1: E402 module level import not at top of file
40:29: E126 continuation line over-indented for hanging indent
41:1: I101 Imported names are in the wrong order. Should be page, pagefooteronly, pageheaderonly
41:1: I100 Imports statements are in the wrong order. from invenio.legacy.webpage should be before from invenio.legacy.webuser
41:1: E402 module level import not at top of file
42:1: I100 Imports statements are in the wrong order. from invenio.ext.email should be before from invenio.legacy.webpage
42:1: E402 module level import not at top of file
43:1: I101 Imported names are in the wrong order. Should be check_user_can_view_record, create_navtrail_links, get_fieldvalues, guess_primary_collection_of_a_record, record_exists
43:1: E402 module level import not at top of file
44:6: E126 continuation line over-indented for hanging indent
47:1: I101 Imported names are in the wrong order. Should be make_canonical_urlargd, redirect_to_url
47:1: E402 module level import not at top of file
48:30: E126 continuation line over-indented for hanging indent
49:1: I100 Imports statements are in the wrong order. from invenio.base.i18n should be before from invenio.utils.url
49:1: E402 module level import not at top of file
50:1: I101 Imported names are in the wrong order. Should be WebInterfaceDirectory, wash_urlargd
50:1: E402 module level import not at top of file
51:1: E402 module level import not at top of file
52:1: E402 module level import not at top of file
53:1: E402 module level import not at top of file
54:1: I100 Imports statements are in the wrong order. import invenio.legacy.template should be before from invenio.modules.access.mailcookie
54:1: E402 module level import not at top of file
56:1: I100 Imports statements are in the wrong order. import invenio.legacy.bibcirculation.db_layer should be before import invenio.legacy.template
56:1: E402 module level import not at top of file
57:1: E402 module level import not at top of file
58:1: I101 Imported names are in the wrong order. Should be ill_register_request, ill_register_request_with_recid, ill_request_with_recid, perform_book_proposal_send, perform_borrower_loans, perform_get_holdings_information, perform_loanshistoricaloverview, perform_new_request, perform_new_request_send
58:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibcirculation.api should be before from invenio.legacy.bibcirculation.utils
58:1: E402 module level import not at top of file
59:36: E126 continuation line over-indented for hanging indent
67:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibcirculation.adminlib should be before from invenio.legacy.bibcirculation.api
67:1: E402 module level import not at top of file
68:44: E126 continuation line over-indented for hanging indent
69:1: I101 Imported names are in the wrong order. Should be AMZ_ACQUISITION_IDENTIFIER_TAG, CFG_BIBCIRCULATION_ACQ_STATUS_NEW, CFG_BIBCIRCULATION_ILLS_EMAIL, CFG_BIBCIRCULATION_ILL_STATUS_NEW
69:1: E402 module level import not at top of file
70:43: E126 continuation line over-indented for hanging indent
74:1: E402 module level import not at top of file
75:1: E731 do not assign a lambda expression, use a def
82:1: E302 expected 2 blank lines, found 1
82: D203 Expected 1 blank line *before* class docstring, found 0
87: D102 Docstring missing
90: D400 First line should end with '.', not 't'
90: D208 Docstring is over-indented
90: D200 One-line docstring should not occupy 3 lines
97: D401 First line should be imperative: 'Display', not 'Displays'
97: D202 No blank lines allowed *after* method docstring, found 1
97: D400 First line should end with '.', not 'r'
97: D205 Blank line missing between one-line summary and description
112:70: E502 the backslash is redundant between brackets
119:30: E203 whitespace before ':'
121:25: E203 whitespace before ':'
122:21: E126 continuation line over-indented for hanging indent
128:52: E502 the backslash is redundant between brackets
129:44: E251 unexpected spaces around keyword / parameter equals
129:46: E251 unexpected spaces around keyword / parameter equals
138:26: E251 unexpected spaces around keyword / parameter equals
138:34: E251 unexpected spaces around keyword / parameter equals
138:26: E221 multiple spaces before operator
139:25: E251 unexpected spaces around keyword / parameter equals
139:34: E251 unexpected spaces around keyword / parameter equals
139:25: E221 multiple spaces before operator
140:24: E251 unexpected spaces around keyword / parameter equals
140:34: E251 unexpected spaces around keyword / parameter equals
140:24: E221 multiple spaces before operator
141:32: E251 unexpected spaces around keyword / parameter equals
141:34: E251 unexpected spaces around keyword / parameter equals
142:24: E251 unexpected spaces around keyword / parameter equals
142:34: E251 unexpected spaces around keyword / parameter equals
142:24: E221 multiple spaces before operator
143:29: E251 unexpected spaces around keyword / parameter equals
143:34: E251 unexpected spaces around keyword / parameter equals
143:29: E221 multiple spaces before operator
144:30: E251 unexpected spaces around keyword / parameter equals
144:34: E251 unexpected spaces around keyword / parameter equals
144:30: E221 multiple spaces before operator
147: D202 No blank lines allowed *after* method docstring, found 1
147: D200 One-line docstring should not occupy 3 lines
157:86: E502 the backslash is redundant between brackets
164:30: E203 whitespace before ':'
167:25: E203 whitespace before ':'
173:52: E502 the backslash is redundant between brackets
174:29: E128 continuation line under-indented for visual indent
174:33: E251 unexpected spaces around keyword / parameter equals
174:35: E251 unexpected spaces around keyword / parameter equals
179:26: E251 unexpected spaces around keyword / parameter equals
179:34: E251 unexpected spaces around keyword / parameter equals
179:26: E221 multiple spaces before operator
180:25: E251 unexpected spaces around keyword / parameter equals
180:34: E251 unexpected spaces around keyword / parameter equals
180:25: E221 multiple spaces before operator
181:24: E251 unexpected spaces around keyword / parameter equals
181:34: E251 unexpected spaces around keyword / parameter equals
181:24: E221 multiple spaces before operator
182:32: E251 unexpected spaces around keyword / parameter equals
182:34: E251 unexpected spaces around keyword / parameter equals
183:24: E251 unexpected spaces around keyword / parameter equals
183:34: E251 unexpected spaces around keyword / parameter equals
183:24: E221 multiple spaces before operator
184:29: E251 unexpected spaces around keyword / parameter equals
184:34: E251 unexpected spaces around keyword / parameter equals
184:29: E221 multiple spaces before operator
185:30: E251 unexpected spaces around keyword / parameter equals
185:34: E251 unexpected spaces around keyword / parameter equals
185:30: E221 multiple spaces before operator
189: D203 Expected 1 blank line *before* class docstring, found 0
189: D204 Expected 1 blank line *after* class docstring, found 2
193:5: E303 too many blank lines (2)
194:37: E231 missing whitespace after ','
199: D290 White spaces around docstring should be trimmed.
199: D400 First line should end with '.', not 't'
199: D200 One-line docstring should not occupy 2 lines
203:59: E128 continuation line under-indented for visual indent
205: D401 First line should be imperative: 'Display', not 'Displays'
205: D202 No blank lines allowed *after* method docstring, found 1
205: D400 First line should end with '.', not 'r'
205: D205 Blank line missing between one-line summary and description
230:73: E502 the backslash is redundant between brackets
237:30: E203 whitespace before ':'
240:25: E203 whitespace before ':'
246:52: E502 the backslash is redundant between brackets
247:33: E128 continuation line under-indented for visual indent
247:37: E251 unexpected spaces around keyword / parameter equals
247:39: E251 unexpected spaces around keyword / parameter equals
250:25: E128 continuation line under-indented for visual indent
251:25: E126 continuation line over-indented for hanging indent
265:26: E251 unexpected spaces around keyword / parameter equals
265:34: E251 unexpected spaces around keyword / parameter equals
265:26: E221 multiple spaces before operator
266:25: E251 unexpected spaces around keyword / parameter equals
266:34: E251 unexpected spaces around keyword / parameter equals
266:25: E221 multiple spaces before operator
267:24: E251 unexpected spaces around keyword / parameter equals
267:34: E251 unexpected spaces around keyword / parameter equals
267:24: E221 multiple spaces before operator
268:32: E251 unexpected spaces around keyword / parameter equals
268:34: E251 unexpected spaces around keyword / parameter equals
269:24: E251 unexpected spaces around keyword / parameter equals
269:34: E251 unexpected spaces around keyword / parameter equals
269:24: E221 multiple spaces before operator
270:29: E251 unexpected spaces around keyword / parameter equals
270:34: E251 unexpected spaces around keyword / parameter equals
270:29: E221 multiple spaces before operator
271:30: E251 unexpected spaces around keyword / parameter equals
271:34: E251 unexpected spaces around keyword / parameter equals
271:30: E221 multiple spaces before operator
273: D401 First line should be imperative: 'Display', not 'Displays'
273: D202 No blank lines allowed *after* method docstring, found 1
273: D400 First line should end with '.', not 'r'
273: D205 Blank line missing between one-line summary and description
285:75: E502 the backslash is redundant between brackets
292:30: E203 whitespace before ':'
295:25: E203 whitespace before ':'
301:52: E502 the backslash is redundant between brackets
302:44: E251 unexpected spaces around keyword / parameter equals
302:46: E251 unexpected spaces around keyword / parameter equals
304:9: E266 too many leading '#' for block comment
311:26: E251 unexpected spaces around keyword / parameter equals
311:34: E251 unexpected spaces around keyword / parameter equals
311:26: E221 multiple spaces before operator
312:25: E251 unexpected spaces around keyword / parameter equals
312:34: E251 unexpected spaces around keyword / parameter equals
312:25: E221 multiple spaces before operator
313:24: E251 unexpected spaces around keyword / parameter equals
313:34: E251 unexpected spaces around keyword / parameter equals
313:24: E221 multiple spaces before operator
314:32: E251 unexpected spaces around keyword / parameter equals
314:34: E251 unexpected spaces around keyword / parameter equals
315:24: E251 unexpected spaces around keyword / parameter equals
315:34: E251 unexpected spaces around keyword / parameter equals
315:24: E221 multiple spaces before operator
316:29: E251 unexpected spaces around keyword / parameter equals
316:34: E251 unexpected spaces around keyword / parameter equals
316:29: E221 multiple spaces before operator
317:30: E251 unexpected spaces around keyword / parameter equals
317:34: E251 unexpected spaces around keyword / parameter equals
317:30: E221 multiple spaces before operator
319: D401 First line should be imperative: 'Display', not 'Displays'
319: D202 No blank lines allowed *after* method docstring, found 1
319: D400 First line should end with '.', not 'r'
319: D205 Blank line missing between one-line summary and description
327:13: E128 continuation line under-indented for visual indent
330:76: E231 missing whitespace after ','
357:22: E222 multiple spaces after operator
370:75: E502 the backslash is redundant between brackets
377:30: E203 whitespace before ':'
380:25: E203 whitespace before ':'
386:52: E502 the backslash is redundant between brackets
387:44: E251 unexpected spaces around keyword / parameter equals
387:46: E251 unexpected spaces around keyword / parameter equals
405:41: E126 continuation line over-indented for hanging indent
410:26: E251 unexpected spaces around keyword / parameter equals
410:34: E251 unexpected spaces around keyword / parameter equals
410:26: E221 multiple spaces before operator
411:25: E251 unexpected spaces around keyword / parameter equals
411:34: E251 unexpected spaces around keyword / parameter equals
411:25: E221 multiple spaces before operator
412:24: E251 unexpected spaces around keyword / parameter equals
412:34: E251 unexpected spaces around keyword / parameter equals
412:24: E221 multiple spaces before operator
413:32: E251 unexpected spaces around keyword / parameter equals
413:34: E251 unexpected spaces around keyword / parameter equals
414:24: E251 unexpected spaces around keyword / parameter equals
414:34: E251 unexpected spaces around keyword / parameter equals
414:24: E221 multiple spaces before operator
415:29: E251 unexpected spaces around keyword / parameter equals
415:34: E251 unexpected spaces around keyword / parameter equals
415:29: E221 multiple spaces before operator
416:30: E251 unexpected spaces around keyword / parameter equals
416:34: E251 unexpected spaces around keyword / parameter equals
416:30: E221 multiple spaces before operator
418: D401 First line should be imperative: 'Display', not 'Displays'
418: D202 No blank lines allowed *after* method docstring, found 1
418: D400 First line should end with '.', not 'r'
418: D205 Blank line missing between one-line summary and description
426:13: E128 continuation line under-indented for visual indent
454:75: E502 the backslash is redundant between brackets
461:30: E203 whitespace before ':'
464:25: E203 whitespace before ':'
470:52: E502 the backslash is redundant between brackets
471:44: E251 unexpected spaces around keyword / parameter equals
471:46: E251 unexpected spaces around keyword / parameter equals
474:52: E203 whitespace before ':'
475:48: E203 whitespace before ':'
481:9: E266 too many leading '#' for block comment
493:26: E251 unexpected spaces around keyword / parameter equals
493:34: E251 unexpected spaces around keyword / parameter equals
493:26: E221 multiple spaces before operator
494:25: E251 unexpected spaces around keyword / parameter equals
494:34: E251 unexpected spaces around keyword / parameter equals
494:25: E221 multiple spaces before operator
495:24: E251 unexpected spaces around keyword / parameter equals
495:34: E251 unexpected spaces around keyword / parameter equals
495:24: E221 multiple spaces before operator
496:32: E251 unexpected spaces around keyword / parameter equals
496:34: E251 unexpected spaces around keyword / parameter equals
497:24: E251 unexpected spaces around keyword / parameter equals
497:34: E251 unexpected spaces around keyword / parameter equals
497:24: E221 multiple spaces before operator
498:29: E251 unexpected spaces around keyword / parameter equals
498:34: E251 unexpected spaces around keyword / parameter equals
498:29: E221 multiple spaces before operator
499:30: E251 unexpected spaces around keyword / parameter equals
499:34: E251 unexpected spaces around keyword / parameter equals
499:30: E221 multiple spaces before operator
501: D401 First line should be imperative: 'Display', not 'Displays'
501: D202 No blank lines allowed *after* method docstring, found 1
501: D400 First line should end with '.', not 'r'
501: D205 Blank line missing between one-line summary and description
513:78: E502 the backslash is redundant between brackets
520:30: E203 whitespace before ':'
523:25: E203 whitespace before ':'
529:52: E502 the backslash is redundant between brackets
530:44: E251 unexpected spaces around keyword / parameter equals
530:46: E251 unexpected spaces around keyword / parameter equals
532:9: E266 too many leading '#' for block comment
539:26: E251 unexpected spaces around keyword / parameter equals
539:34: E251 unexpected spaces around keyword / parameter equals
539:26: E221 multiple spaces before operator
540:25: E251 unexpected spaces around keyword / parameter equals
540:34: E251 unexpected spaces around keyword / parameter equals
540:25: E221 multiple spaces before operator
541:24: E251 unexpected spaces around keyword / parameter equals
541:34: E251 unexpected spaces around keyword / parameter equals
541:24: E221 multiple spaces before operator
542:32: E251 unexpected spaces around keyword / parameter equals
542:34: E251 unexpected spaces around keyword / parameter equals
543:24: E251 unexpected spaces around keyword / parameter equals
543:34: E251 unexpected spaces around keyword / parameter equals
543:24: E221 multiple spaces before operator
544:29: E251 unexpected spaces around keyword / parameter equals
544:34: E251 unexpected spaces around keyword / parameter equals
544:29: E221 multiple spaces before operator
545:30: E251 unexpected spaces around keyword / parameter equals
545:34: E251 unexpected spaces around keyword / parameter equals
545:30: E221 multiple spaces before operator
547: D401 First line should be imperative: 'Display', not 'Displays'
547: D202 No blank lines allowed *after* method docstring, found 1
547: D400 First line should end with '.', not 'r'
547: D205 Blank line missing between one-line summary and description
555:13: E128 continuation line under-indented for visual indent
565:78: E502 the backslash is redundant between brackets
572:30: E203 whitespace before ':'
575:25: E203 whitespace before ':'
581:52: E502 the backslash is redundant between brackets
582:33: E128 continuation line under-indented for visual indent
582:37: E251 unexpected spaces around keyword / parameter equals
582:39: E251 unexpected spaces around keyword / parameter equals
593:17: E128 continuation line under-indented for visual indent
594:17: E128 continuation line under-indented for visual indent
594:53: E203 whitespace before ':'
595:17: E128 continuation line under-indented for visual indent
595:38: E203 whitespace before ':'
596:17: E128 continuation line under-indented for visual indent
596:61: E202 whitespace before '}'
598:13: E266 too many leading '#' for block comment
600:37: E128 continuation line under-indented for visual indent
601:37: E126 continuation line over-indented for hanging indent
613:26: E251 unexpected spaces around keyword / parameter equals
613:34: E251 unexpected spaces around keyword / parameter equals
613:26: E221 multiple spaces before operator
614:25: E251 unexpected spaces around keyword / parameter equals
614:34: E251 unexpected spaces around keyword / parameter equals
614:25: E221 multiple spaces before operator
615:24: E251 unexpected spaces around keyword / parameter equals
615:34: E251 unexpected spaces around keyword / parameter equals
615:24: E221 multiple spaces before operator
616:32: E251 unexpected spaces around keyword / parameter equals
616:34: E251 unexpected spaces around keyword / parameter equals
617:24: E251 unexpected spaces around keyword / parameter equals
617:34: E251 unexpected spaces around keyword / parameter equals
617:24: E221 multiple spaces before operator
618:29: E251 unexpected spaces around keyword / parameter equals
618:34: E251 unexpected spaces around keyword / parameter equals
618:29: E221 multiple spaces before operator
619:30: E251 unexpected spaces around keyword / parameter equals
619:34: E251 unexpected spaces around keyword / parameter equals
619:30: E221 multiple spaces before operator
621: D102 Docstring missing
624:17: E128 continuation line under-indented for visual indent
664:79: E502 the backslash is redundant between brackets
671:30: E203 whitespace before ':'
674:25: E203 whitespace before ':'
680:52: E502 the backslash is redundant between brackets
681:33: E128 continuation line under-indented for visual indent
681:37: E251 unexpected spaces around keyword / parameter equals
681:39: E251 unexpected spaces around keyword / parameter equals
683:9: E266 too many leading '#' for block comment
690:55: E128 continuation line under-indented for visual indent
692:26: E251 unexpected spaces around keyword / parameter equals
692:34: E251 unexpected spaces around keyword / parameter equals
692:26: E221 multiple spaces before operator
693:25: E251 unexpected spaces around keyword / parameter equals
693:34: E251 unexpected spaces around keyword / parameter equals
693:25: E221 multiple spaces before operator
694:24: E251 unexpected spaces around keyword / parameter equals
694:34: E251 unexpected spaces around keyword / parameter equals
694:24: E221 multiple spaces before operator
695:32: E251 unexpected spaces around keyword / parameter equals
695:34: E251 unexpected spaces around keyword / parameter equals
696:24: E251 unexpected spaces around keyword / parameter equals
696:34: E251 unexpected spaces around keyword / parameter equals
696:24: E221 multiple spaces before operator
697:29: E251 unexpected spaces around keyword / parameter equals
697:34: E251 unexpected spaces around keyword / parameter equals
697:29: E221 multiple spaces before operator
698:30: E251 unexpected spaces around keyword / parameter equals
698:34: E251 unexpected spaces around keyword / parameter equals
698:30: E221 multiple spaces before operator
700: D102 Docstring missing
703:17: E128 continuation line under-indented for visual indent
743:79: E502 the backslash is redundant between brackets
750:30: E203 whitespace before ':'
753:25: E203 whitespace before ':'
759:52: E502 the backslash is redundant between brackets
760:33: E128 continuation line under-indented for visual indent
760:37: E251 unexpected spaces around keyword / parameter equals
760:39: E251 unexpected spaces around keyword / parameter equals
769:66: E128 continuation line under-indented for visual indent
776:60: E203 whitespace before ':'
777:56: E203 whitespace before ':'
781:13: E303 too many blank lines (2)
784:55: E126 continuation line over-indented for hanging indent
800:32: E251 unexpected spaces around keyword / parameter equals
800:34: E251 unexpected spaces around keyword / parameter equals
801:30: E251 unexpected spaces around keyword / parameter equals
801:34: E251 unexpected spaces around keyword / parameter equals
801:30: E221 multiple spaces before operator
802:31: E251 unexpected spaces around keyword / parameter equals
802:34: E251 unexpected spaces around keyword / parameter equals
802:31: E221 multiple spaces before operator
803:30: E251 unexpected spaces around keyword / parameter equals
803:32: E251 unexpected spaces around keyword / parameter equals
803:43: E251 unexpected spaces around keyword / parameter equals
803:45: E251 unexpected spaces around keyword / parameter equals
804:31: E251 unexpected spaces around keyword / parameter equals
804:34: E251 unexpected spaces around keyword / parameter equals
804:31: E221 multiple spaces before operator
807:23: E124 closing bracket does not match visual indentation
816:61: E502 the backslash is redundant between brackets
817:41: E127 continuation line over-indented for visual indent
817:105: E502 the backslash is redundant between brackets
822: D203 Expected 1 blank line *before* class docstring, found 0
829: D102 Docstring missing
833:5: E303 too many blank lines (2)
833: D401 First line should be imperative: 'Redirect', not 'Redirects'
833: D202 No blank lines allowed *after* method docstring, found 1
833: D400 First line should end with '.', not 'n'
833: D200 One-line docstring should not occupy 3 lines
840: D202 No blank lines allowed *after* method docstring, found 1
840: D200 One-line docstring should not occupy 3 lines
848:39: E203 whitespace before ':'
866:30: E251 unexpected spaces around keyword / parameter equals
866:32: E251 unexpected spaces around keyword / parameter equals
867:37: E251 unexpected spaces around keyword / parameter equals
867:39: E251 unexpected spaces around keyword / parameter equals
868:29: E251 unexpected spaces around keyword / parameter equals
868:31: E251 unexpected spaces around keyword / parameter equals
869:36: E251 unexpected spaces around keyword / parameter equals
869:38: E251 unexpected spaces around keyword / parameter equals
870:33: E251 unexpected spaces around keyword / parameter equals
870:35: E251 unexpected spaces around keyword / parameter equals
871:28: E251 unexpected spaces around keyword / parameter equals
871:30: E251 unexpected spaces around keyword / parameter equals
872:33: E251 unexpected spaces around keyword / parameter equals
872:35: E251 unexpected spaces around keyword / parameter equals
873:28: E251 unexpected spaces around keyword / parameter equals
873:30: E251 unexpected spaces around keyword / parameter equals
890:33: E128 continuation line under-indented for visual indent
892:21: E127 continuation line over-indented for visual indent
893:33: E128 continuation line under-indented for visual indent
899:9: E303 too many blank lines (2)
899:59: E502 the backslash is redundant between brackets
900:21: E126 continuation line over-indented for hanging indent
901:21: E126 continuation line over-indented for hanging indent
907:51: E502 the backslash is redundant between brackets
908:105: E502 the backslash is redundant between brackets
910:53: E502 the backslash is redundant between brackets
922:71: E225 missing whitespace around operator
931:44: E251 unexpected spaces around keyword / parameter equals
931:46: E251 unexpected spaces around keyword / parameter equals
935:31: E127 continuation line over-indented for visual indent
936:31: E127 continuation line over-indented for visual indent
937:31: E127 continuation line over-indented for visual indent
938:31: E127 continuation line over-indented for visual indent
944:5: E303 too many blank lines (2)
944: D200 One-line docstring should not occupy 3 lines
950:9: F841 local variable '_' is assigned to but never used
955:49: E251 unexpected spaces around keyword / parameter equals
955:51: E251 unexpected spaces around keyword / parameter equals
960:21: E131 continuation line unaligned for hanging indent
961:17: E122 continuation line missing indentation or outdented
961:26: E203 whitespace before ':'
966:17: E122 continuation line missing indentation or outdented
966:21: E203 whitespace before ':'
971:86: E203 whitespace before ':'
973:22: E127 continuation line over-indented for visual indent
973:68: E203 whitespace before ':'
975:45: E124 closing bracket does not match visual indentation
978:52: E502 the backslash is redundant between brackets
979:17: E128 continuation line under-indented for visual indent
979:21: E251 unexpected spaces around keyword / parameter equals
979:23: E251 unexpected spaces around keyword / parameter equals
997:51: E502 the backslash is redundant between brackets
998:105: E502 the backslash is redundant between brackets
1000:53: E502 the backslash is redundant between brackets
1012:71: E225 missing whitespace around operator
1021:44: E251 unexpected spaces around keyword / parameter equals
1021:46: E251 unexpected spaces around keyword / parameter equals
1025:31: E127 continuation line over-indented for visual indent
1026:31: E127 continuation line over-indented for visual indent
1027:31: E127 continuation line over-indented for visual indent
1028:31: E127 continuation line over-indented for visual indent
1030: D400 First line should end with '.', not ','
1030: D205 Blank line missing between one-line summary and description
1043:9: F841 local variable '_' is assigned to but never used
1048:49: E251 unexpected spaces around keyword / parameter equals
1048:51: E251 unexpected spaces around keyword / parameter equals
1053:21: E131 continuation line unaligned for hanging indent
1054:17: E122 continuation line missing indentation or outdented
1054:26: E203 whitespace before ':'
1059:17: E122 continuation line missing indentation or outdented
1059:21: E203 whitespace before ':'
1064:86: E203 whitespace before ':'
1066:22: E127 continuation line over-indented for visual indent
1066:95: E502 the backslash is redundant between brackets
1066:68: E203 whitespace before ':'
1066:92: E203 whitespace before ':'
1067:17: E128 continuation line under-indented for visual indent
1070:52: E502 the backslash is redundant between brackets
1071:17: E128 continuation line under-indented for visual indent
1071:21: E251 unexpected spaces around keyword / parameter equals
1071:23: E251 unexpected spaces around keyword / parameter equals
1098:51: E502 the backslash is redundant between brackets
1099:105: E502 the backslash is redundant between brackets
1101:53: E502 the backslash is redundant between brackets
1113:71: E225 missing whitespace around operator
1125:31: E127 continuation line over-indented for visual indent
1126:31: E127 continuation line over-indented for visual indent
1127:31: E127 continuation line over-indented for visual indent
1128:31: E127 continuation line over-indented for visual indent
1129:31: E128 continuation line under-indented for visual indent
1132:5: E303 too many blank lines (2)
1132: D202 No blank lines allowed *after* method docstring, found 1
1132: D200 One-line docstring should not occupy 3 lines
1139:9: F841 local variable '_' is assigned to but never used
1147:49: E251 unexpected spaces around keyword / parameter equals
1147:51: E251 unexpected spaces around keyword / parameter equals
1152:21: E131 continuation line unaligned for hanging indent
1153:17: E122 continuation line missing indentation or outdented
1153:26: E203 whitespace before ':'
1158:17: E122 continuation line missing indentation or outdented
1158:21: E203 whitespace before ':'
1161:9: E303 too many blank lines (2)
1164:86: E203 whitespace before ':'
1166:22: E127 continuation line over-indented for visual indent
1166:95: E502 the backslash is redundant between brackets
1166:68: E203 whitespace before ':'
1166:92: E203 whitespace before ':'
1167:17: E128 continuation line under-indented for visual indent
1170:52: E502 the backslash is redundant between brackets
1171:17: E128 continuation line under-indented for visual indent
1171:21: E251 unexpected spaces around keyword / parameter equals
1171:23: E251 unexpected spaces around keyword / parameter equals
1175:9: E303 too many blank lines (3)
1176:53: E127 continuation line over-indented for visual indent
1177:53: E127 continuation line over-indented for visual indent
1183:51: E502 the backslash is redundant between brackets
1184:105: E502 the backslash is redundant between brackets
1186:53: E502 the backslash is redundant between brackets
1198:71: E225 missing whitespace around operator
1207:44: E251 unexpected spaces around keyword / parameter equals
1207:46: E251 unexpected spaces around keyword / parameter equals
1211:31: E127 continuation line over-indented for visual indent
1212:31: E127 continuation line over-indented for visual indent
1213:31: E127 continuation line over-indented for visual indent
1214:31: E127 continuation line over-indented for visual indent
1216: D202 No blank lines allowed *after* method docstring, found 1
1216: D200 One-line docstring should not occupy 3 lines
1229:9: F841 local variable '_' is assigned to but never used
1234:71: E251 unexpected spaces around keyword / parameter equals
1234:73: E251 unexpected spaces around keyword / parameter equals
1234:73: E222 multiple spaces after operator
1235:69: E251 unexpected spaces around keyword / parameter equals
1235:71: E251 unexpected spaces around keyword / parameter equals
1235:71: E222 multiple spaces after operator
1236:67: E251 unexpected spaces around keyword / parameter equals
1236:69: E251 unexpected spaces around keyword / parameter equals
1236:69: E222 multiple spaces after operator
1237:58: E251 unexpected spaces around keyword / parameter equals
1237:60: E251 unexpected spaces around keyword / parameter equals
1238:60: E251 unexpected spaces around keyword / parameter equals
1238:62: E251 unexpected spaces around keyword / parameter equals
1244:49: E251 unexpected spaces around keyword / parameter equals
1244:51: E251 unexpected spaces around keyword / parameter equals
1249:21: E131 continuation line unaligned for hanging indent
1250:17: E122 continuation line missing indentation or outdented
1250:26: E203 whitespace before ':'
1255:17: E122 continuation line missing indentation or outdented
1255:21: E203 whitespace before ':'
1258:9: E303 too many blank lines (2)
1261:86: E203 whitespace before ':'
1263:22: E127 continuation line over-indented for visual indent
1263:95: E502 the backslash is redundant between brackets
1263:68: E203 whitespace before ':'
1263:92: E203 whitespace before ':'
1264:17: E128 continuation line under-indented for visual indent
1267:52: E502 the backslash is redundant between brackets
1268:17: E128 continuation line under-indented for visual indent
1268:21: E251 unexpected spaces around keyword / parameter equals
1268:23: E251 unexpected spaces around keyword / parameter equals
1272:9: E303 too many blank lines (3)
1273:53: E127 continuation line over-indented for visual indent
1274:53: E127 continuation line over-indented for visual indent
1280:51: E502 the backslash is redundant between brackets
1281:105: E502 the backslash is redundant between brackets
1283:53: E502 the backslash is redundant between brackets
1295:71: E225 missing whitespace around operator
1307:31: E127 continuation line over-indented for visual indent
1308:31: E127 continuation line over-indented for visual indent
1309:31: E127 continuation line over-indented for visual indent
1310:31: E127 continuation line over-indented for visual indent


1: D100 Docstring missing
4: L102 copyright year is outdated, expected 2015 but got 2014
28:1: E402 module level import not at top of file
29:1: I100 Imports statements are in the wrong order. import re should be before import sys
29:1: E402 module level import not at top of file
30:1: I100 Imports statements are in the wrong order. import os should be before import re
30:1: E402 module level import not at top of file
31:1: E402 module level import not at top of file
32:1: I100 Imports statements are in the wrong order. import fnmatch should be before import time
32:1: E402 module level import not at top of file
33:1: E402 module level import not at top of file
34:1: I101 Imported names are in the wrong order. Should be DEBUG, debug, getLogger
34:1: E402 module level import not at top of file
35:1: I101 Imported names are in the wrong order. Should be OptionGroup, OptionParser, OptionValueError
35:1: E402 module level import not at top of file
36:1: I201 Missing newline before sections or imports.
36:1: E402 module level import not at top of file
38:1: I100 Imports statements are in the wrong order. from invenio.base.factory should be before from six
38:1: E402 module level import not at top of file
40:1: E402 module level import not at top of file
41:1: I101 Imported names are in the wrong order. Should be CFG_BIBDOCFILE_FILEDIR, CFG_SITE_RECORD, CFG_SITE_URL, CFG_TMPSHAREDDIR
41:1: I100 Imports statements are in the wrong order. from invenio.config should be before from invenio.ext.logging
41:1: E402 module level import not at top of file
43:1: I101 Imported names are in the wrong order. Should be BibDoc, BibRecDocs, CFG_BIBDOCFILE_AVAILABLE_FLAGS, InvenioBibDocFileError, KEEP_OLD_VALUE, bibdocfile_url_to_bibdoc, check_valid_url, clean_url, decompose_bibdocfile_fullpath, decompose_bibdocfile_url, get_docname_from_url, guess_format_from_url, nice_size
43:1: E402 module level import not at top of file
49:1: I100 Imports statements are in the wrong order. from intbitset should be before from invenio.legacy.bibdocfile.api
49:1: E402 module level import not at top of file
50:1: I201 Missing newline before sections or imports.
50:1: E402 module level import not at top of file
51:1: I101 Imported names are in the wrong order. Should be wait_for_user, wrap_text_in_a_box
51:1: E402 module level import not at top of file
52:1: I100 Imports statements are in the wrong order. from invenio.legacy.dbquery should be before from invenio.utils.text
52:1: E402 module level import not at top of file
53:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibsched.bibtask should be before from invenio.legacy.dbquery
53:1: E402 module level import not at top of file
54:1: E402 module level import not at top of file
55:1: I100 Imports statements are in the wrong order. from invenio.legacy.websubmit.file_converter should be before from invenio.utils.text
55:1: E402 module level import not at top of file
56:1: E402 module level import not at top of file
58:1: E302 expected 2 blank lines, found 1
61:1: E302 expected 2 blank lines, found 1
67:1: E302 expected 2 blank lines, found 1
67: D209 Put multi-line docstring closing quotes on separate line
67: D400 First line should end with '.', not ','
67: D205 Blank line missing between one-line summary and description
87:1: E302 expected 2 blank lines, found 1
87: D400 First line should end with '.', not 'y'
87: D205 Blank line missing between one-line summary and description
107:1: E302 expected 2 blank lines, found 0
107: D401 First line should be imperative: 'Return', not 'Returns'
107: D209 Put multi-line docstring closing quotes on separate line
107: D205 Blank line missing between one-line summary and description
107: D208 Docstring is over-indented
114:19: E231 missing whitespace after ':'
114:32: E231 missing whitespace after ':'
114:42: E231 missing whitespace after ':'
114:50: E231 missing whitespace after ':'
127:1: E302 expected 2 blank lines, found 1
127: D401 First line should be imperative: 'Return', not 'Returns'
127: D400 First line should end with '.', not 'e'
130:19: E225 missing whitespace around operator
133:19: E225 missing whitespace around operator
139:1: E302 expected 2 blank lines, found 1
163:5: E303 too many blank lines (3)
202:1: E302 expected 2 blank lines, found 1
260:1: E302 expected 2 blank lines, found 1
260: D209 Put multi-line docstring closing quotes on separate line
260: D400 First line should end with '.', not 'd'
260: D205 Blank line missing between one-line summary and description
291:1: E302 expected 2 blank lines, found 1
291: D209 Put multi-line docstring closing quotes on separate line
291: D202 No blank lines allowed *after* function docstring, found 1
291: D400 First line should end with '.', not 'd'
291: D205 Blank line missing between one-line summary and description
321:1: E302 expected 2 blank lines, found 1
327:28: W602 deprecated form of raising exception
329:28: W602 deprecated form of raising exception
331:1: E302 expected 2 blank lines, found 1
337:28: W602 deprecated form of raising exception
339:28: W602 deprecated form of raising exception
341:1: E302 expected 2 blank lines, found 1
341: D200 One-line docstring should not occupy 3 lines
354:1: E302 expected 2 blank lines, found 1
361:1: E302 expected 2 blank lines, found 1
368:1: E302 expected 2 blank lines, found 1
375:1: E302 expected 2 blank lines, found 1
382:1: E302 expected 2 blank lines, found 1
382: D209 Put multi-line docstring closing quotes on separate line
382: D400 First line should end with '.', not 'd'
382: D205 Blank line missing between one-line summary and description
393:1: E302 expected 2 blank lines, found 1
399:9: E266 too many leading '#' for block comment
405:1: E302 expected 2 blank lines, found 1
405: D209 Put multi-line docstring closing quotes on separate line
405: D205 Blank line missing between one-line summary and description
417:1: E302 expected 2 blank lines, found 1
428:1: E302 expected 2 blank lines, found 1
428: D400 First line should end with '.', not 's'
443:248: E261 at least two spaces before inline comment
444:244: E261 at least two spaces before inline comment
445:206: E261 at least two spaces before inline comment
447:1: E302 expected 2 blank lines, found 1
447: D101 Docstring missing
448: D102 Docstring missing
455:1: E302 expected 2 blank lines, found 1
455: D202 No blank lines allowed *after* function docstring, found 1
458: D400 First line should end with '.', not 'm'
458: D205 Blank line missing between one-line summary and description
470: D301 Use r""" if any backslashes in a docstring
470: D209 Put multi-line docstring closing quotes on separate line
470: D400 First line should end with '.', not 'm'
470: D205 Blank line missing between one-line summary and description
482:5: E128 continuation line under-indented for visual indent
483:9: E128 continuation line under-indented for visual indent
584:1: E302 expected 2 blank lines, found 1
588:1: E302 expected 2 blank lines, found 1
622:1: E302 expected 2 blank lines, found 1
628:24: E225 missing whitespace around operator
631:50: E261 at least two spaces before inline comment
638:1: E302 expected 2 blank lines, found 1
648:31: W602 deprecated form of raising exception
658:18: E203 whitespace before ':'
659:18: E203 whitespace before ':'
660:22: E203 whitespace before ':'
661:22: E203 whitespace before ':'
662:18: E203 whitespace before ':'
663:17: E203 whitespace before ':'
664:14: E203 whitespace before ':'
669:1: E302 expected 2 blank lines, found 1
681:31: W602 deprecated form of raising exception
687:18: E203 whitespace before ':'
688:18: E203 whitespace before ':'
689:22: E203 whitespace before ':'
690:18: E203 whitespace before ':'
691:22: E203 whitespace before ':'
692:22: E203 whitespace before ':'
693:18: E203 whitespace before ':'
694:17: E203 whitespace before ':'
695:14: E203 whitespace before ':'
696:18: E203 whitespace before ':'
700:1: E302 expected 2 blank lines, found 1
739:1: E302 expected 2 blank lines, found 1
766:1: E302 expected 2 blank lines, found 1
775:31: E261 at least two spaces before inline comment
776:18: E203 whitespace before ':'
776:32: E203 whitespace before ':'
776:57: E203 whitespace before ':'
779:1: E302 expected 2 blank lines, found 1
779: D400 First line should end with '.', not 'm'
805:1: E302 expected 2 blank lines, found 1
811:42: E203 whitespace before ':'
811:63: E203 whitespace before ':'
814:1: E302 expected 2 blank lines, found 1
819:38: E203 whitespace before ':'
822:38: E203 whitespace before ':'
825:1: E302 expected 2 blank lines, found 1
854:1: E302 expected 2 blank lines, found 1
871:1: E302 expected 2 blank lines, found 1
894:1: E302 expected 2 blank lines, found 1
911:1: E302 expected 2 blank lines, found 1
923:27: E203 whitespace before ':'
924:27: E203 whitespace before ':'
928:1: E302 expected 2 blank lines, found 1
940:5: B901 blind except: statement
941:31: W602 deprecated form of raising exception
942:18: E203 whitespace before ':'
942:32: E203 whitespace before ':'
942:53: E203 whitespace before ':'
942:73: E203 whitespace before ':'
942:96: E203 whitespace before ':'
945:1: E302 expected 2 blank lines, found 1
956:5: B901 blind except: statement
957:31: W602 deprecated form of raising exception
958:18: E203 whitespace before ':'
958:32: E203 whitespace before ':'
958:53: E203 whitespace before ':'
958:74: E203 whitespace before ':'
961:1: E302 expected 2 blank lines, found 1
961: D400 First line should end with '.', not 'e'
994:1: E302 expected 2 blank lines, found 1
1008:1: E302 expected 2 blank lines, found 1
1023:26: E203 whitespace before ':'
1024:26: E203 whitespace before ':'
1028:1: E302 expected 2 blank lines, found 1
1045:26: E203 whitespace before ':'
1046:26: E203 whitespace before ':'
1050:1: E302 expected 2 blank lines, found 1
1059:1: E302 expected 2 blank lines, found 1
1075:24: E201 whitespace after '('
1078:13: E128 continuation line under-indented for visual indent
1082:13: E128 continuation line under-indented for visual indent
1085:1: E302 expected 2 blank lines, found 1
1098:63: E203 whitespace before ','
1102:1: E302 expected 2 blank lines, found 1
1125:9: B901 blind except: statement
1126:35: W602 deprecated form of raising exception
1151:1: E302 expected 2 blank lines, found 1
1159:9: B901 blind except: statement
1160:35: W602 deprecated form of raising exception
1187: D103 Docstring missing


1: D100 Docstring missing
2: L102 copyright year is outdated, expected 2015 but got 2014
21:1: I100 Imports statements are in the wrong order. import shutil should be before import time
25:1: I101 Imported names are in the wrong order. Should be CFG_ACCESS_CONTROL_LEVEL_SITE, CFG_INSPIRE_SITE, CFG_SITE_LANG, CFG_SITE_RECORD, CFG_SITE_SECURE_URL, CFG_SITE_URL, CFG_TMPSHAREDDIR, CFG_WEBSUBMIT_STORAGEDIR
25:1: I100 Imports statements are in the wrong order. from invenio.config should be before from six
26:6: E126 continuation line over-indented for hanging indent
35:6: E126 continuation line over-indented for hanging indent
39:1: I100 Imports statements are in the wrong order. from invenio.modules.access.local_config should be before from invenio.utils
41:1: I100 Imports statements are in the wrong order. from invenio.modules.access.engine should be before from invenio.modules.access.mailcookie
42:1: I100 Imports statements are in the wrong order. from invenio.modules.access.control should be before from invenio.modules.access.engine
44:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrecord should be before from invenio.modules.records.api
45:1: I101 Imported names are in the wrong order. Should be page, pagefooteronly, pageheaderonly, warning_page, write_warning
47:1: I101 Imported names are in the wrong order. Should be collect_user_info, getUid, isGuestUser, isUserSuperAdmin, page_not_authorized
48:29: E126 continuation line over-indented for hanging indent
49:1: I100 Imports statements are in the wrong order. from invenio.legacy.webjournal should be before from invenio.legacy.webuser
50: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.ext.legacy.handler should be before from invenio.legacy.webjournal
52:1: I100 Imports statements are in the wrong order. from invenio.base.i18n should be before from invenio.utils.url
53:1: I101 Imported names are in the wrong order. Should be check_user_can_view_record, create_navtrail_links, guess_primary_collection_of_a_record, record_exists
54:6: E126 continuation line over-indented for hanging indent
57: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
57:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibdocfile.api should be before from invenio.modules.records.access
60:1: I100 Imports statements are in the wrong order. from invenio.ext.logging should be before from invenio.legacy.bibdocfile.api
63:1: I100 Imports statements are in the wrong order. import invenio.legacy.template should be before from invenio.modules.collections.models
69: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
69:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibdocfile.managedocfiles should be before import invenio.legacy.template
69:1: E402 module level import not at top of file
70:6: E126 continuation line over-indented for hanging indent
76: D101 Docstring missing
78: D102 Docstring missing
118:94: E203 whitespace before ':'
120:30: E127 continuation line over-indented for visual indent
120:95: E502 the backslash is redundant between brackets
120:76: E203 whitespace before ':'
120:92: E203 whitespace before ':'
128:60: E502 the backslash is redundant between brackets
129:52: E251 unexpected spaces around keyword / parameter equals
129:54: E251 unexpected spaces around keyword / parameter equals
158:17: E266 too many leading '#' for block comment
159:17: E266 too many leading '#' for block comment
177:13: E266 too many leading '#' for block comment
201:37: E266 too many leading '#' for block comment
202:37: E266 too many leading '#' for block comment
205:45: E128 continuation line under-indented for visual indent
212:107: E203 whitespace before ':'
214:37: E122 continuation line missing indentation or outdented
214:102: E502 the backslash is redundant between brackets
214:83: E203 whitespace before ':'
214:99: E203 whitespace before ':'
215:41: E128 continuation line under-indented for visual indent
276:25: E128 continuation line under-indented for visual indent
276:79: E502 the backslash is redundant between brackets
277:41: E127 continuation line over-indented for visual indent
278:54: E502 the backslash is redundant between brackets
279:25: E128 continuation line under-indented for visual indent
281:25: E126 continuation line over-indented for hanging indent
288:25: E127 continuation line over-indented for visual indent
289:25: E127 continuation line over-indented for visual indent
290:25: E127 continuation line over-indented for visual indent
291:25: E127 continuation line over-indented for visual indent
294: D400 First line should end with '.', not 't'
294: D205 Blank line missing between one-line summary and description
294: D208 Docstring is over-indented
306:1: E302 expected 2 blank lines, found 1
306: D290 White spaces around docstring should be trimmed.
306: D202 No blank lines allowed *after* function docstring, found 1
306: D400 First line should end with '.', not 's'
315:13: E203 whitespace before ':'
322:13: E266 too many leading '#' for block comment
334:17: E266 too many leading '#' for block comment
349: D101 Docstring missing
353: D400 First line should end with '.', not 'd'
353: D200 One-line docstring should not occupy 3 lines
374:22: E126 continuation line over-indented for hanging indent
374:50: E203 whitespace before ':'
375:55: E203 whitespace before ':'
385:9: E122 continuation line missing indentation or outdented
438:96: E128 continuation line under-indented for visual indent
449:50: E502 the backslash is redundant between brackets
469:5: E128 continuation line under-indented for visual indent
479:26: E251 unexpected spaces around keyword / parameter equals
479:28: E251 unexpected spaces around keyword / parameter equals
482:111: E502 the backslash is redundant between brackets
482:34: E251 unexpected spaces around keyword / parameter equals
482:36: E251 unexpected spaces around keyword / parameter equals
483:37: E127 continuation line over-indented for visual indent
484:25: E251 unexpected spaces around keyword / parameter equals
484:27: E251 unexpected spaces around keyword / parameter equals
485:24: E251 unexpected spaces around keyword / parameter equals
485:26: E251 unexpected spaces around keyword / parameter equals
490: D202 No blank lines allowed *after* method docstring, found 1
490: D400 First line should end with '.', not 'e'
490: D300 Expected """-quotes, got '-quotes
505:16: E127 continuation line over-indented for visual indent
509:35: E128 continuation line under-indented for visual indent
510:35: E128 continuation line under-indented for visual indent
520:13: B901 blind except: statement
526:13: B901 blind except: statement
531:17: E128 continuation line under-indented for visual indent
532:17: E128 continuation line under-indented for visual indent
533:17: E128 continuation line under-indented for visual indent


2: L102 copyright year is outdated, expected 2015 but got 2013
29:1: E402 module level import not at top of file
30:1: E402 module level import not at top of file
31:1: E402 module level import not at top of file
32:1: E402 module level import not at top of file
33:1: E402 module level import not at top of file
34:1: E402 module level import not at top of file
35:1: E402 module level import not at top of file
36:1: I100 Imports statements are in the wrong order. import tempfile should be before import zlib
36:1: E402 module level import not at top of file
37:1: I100 Imports statements are in the wrong order. import sys should be before import tempfile
37:1: E402 module level import not at top of file
38:1: F401 'traceback' imported but unused
38:1: E402 module level import not at top of file
39:1: E402 module level import not at top of file
40:1: I201 Missing newline before sections or imports.
40:1: E402 module level import not at top of file
47:1: I101 Imported names are in the wrong order. Should be cache_exists, delete_cache, delete_hp_change, get_cache, get_cache_post_date, get_record_last_modification_date, get_record_revision_author, uids_with_active_caches, update_cache, update_cache_post_date
47:1: E402 module level import not at top of file
48:5: E128 continuation line under-indented for visual indent
49:5: E128 continuation line under-indented for visual indent
50:5: E128 continuation line under-indented for visual indent
51:1: I101 Imported names are in the wrong order. Should be create_record, create_records, field_add_subfield, field_get_subfield_codes, field_get_subfield_values, print_rec, record_add_field, record_add_fields, record_delete_fields, record_get_field_instances, record_get_field_value, record_get_field_values, record_has_field, record_make_all_subfields_volatile, record_modify_controlfield, record_modify_subfield, record_order_subfields, record_strip_empty_fields, record_strip_empty_volatile_subfields, record_xml_output
51:1: E402 module level import not at top of file
59:1: E402 module level import not at top of file
60:1: I101 Imported names are in the wrong order. Should be CFG_BIBEDIT_EXTEND_RECORD_WITH_COLLECTION_TEMPLATE, CFG_BIBEDIT_LOCKLEVEL, CFG_BIBEDIT_QUEUE_CHECK_METHOD, CFG_BIBEDIT_TIMEOUT, CFG_BIBUPLOAD_EXTERNAL_OAIID_TAG, CFG_BIBUPLOAD_EXTERNAL_SYSNO_TAG, CFG_PYLIBDIR
60:1: I100 Imports statements are in the wrong order. from invenio.config should be before from invenio.legacy.bibsched.bibtask
60:1: F401 'CFG_PYLIBDIR' imported but unused
60:1: E402 module level import not at top of file
66:1: E402 module level import not at top of file
67:1: E402 module level import not at top of file
68:1: I101 Imported names are in the wrong order. Should be get_bibupload_task_opts, get_info_of_record_revision, get_marcxml_of_record_revision, get_record_revisions
68:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibedit.db_layer should be before from invenio.utils.text
68:1: E402 module level import not at top of file
71:1: I101 Imported names are in the wrong order. Should be get_all_collections_of_a_record, get_record, guess_primary_collection_of_a_record, record_exists
71:1: E402 module level import not at top of file
72:6: E126 continuation line over-indented for hanging indent
74:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrecord should be before from invenio.legacy.search_engine
74:1: E402 module level import not at top of file
75:1: I101 Imported names are in the wrong order. Should be collect_user_info, get_email, get_user_info, get_user_preferences, list_registered_users
75:1: E402 module level import not at top of file
76:6: E126 continuation line over-indented for hanging indent
77:1: I100 Imports statements are in the wrong order. from invenio.legacy.dbquery should be before from invenio.legacy.webuser
77:1: E402 module level import not at top of file
78:1: E402 module level import not at top of file
79:1: E402 module level import not at top of file
80:1: I100 Imports statements are in the wrong order. from invenio.legacy.refextract.api should be before from invenio.modules.access.engine
80:1: E402 module level import not at top of file
81:36: E126 continuation line over-indented for hanging indent
83:1: I101 Imported names are in the wrong order. Should be ParseError, transform_file
83:1: I100 Imports statements are in the wrong order. from invenio.legacy.bibrecord.textmarc2xmlmarc should be before from invenio.legacy.refextract.api
83:1: E402 module level import not at top of file
84:1: E402 module level import not at top of file
85:1: I100 Imports statements are in the wrong order. from invenio.modules.editor.registry should be before from invenio.modules.knowledge.api
85:1: E402 module level import not at top of file
88:1: I100 Imports statements are in the wrong order. from invenio.base.globals should be before from invenio.modules.editor.registry
88:1: E402 module level import not at top of file
89:1: E402 module level import not at top of file
90:1: E402 module level import not at top of file
95:5: F401 'loads' imported but unused
96:1: E402 module level import not at top of file
116: D101 Docstring missing
119:1: E302 expected 2 blank lines, found 1
119: D203 Expected 1 blank line *before* class docstring, found 0
119: D204 Expected 1 blank line *after* class docstring, found 0
119: D400 First line should end with '.', not 's'
125:1: E302 expected 2 blank lines, found 1
125: D290 White spaces around docstring should be trimmed.
125: D400 First line should end with '.', not 'n'
125: D205 Blank line missing between one-line summary and description
129: D290 White spaces around docstring should be trimmed.
129: D400 First line should end with '.', not 'e'
172:1: E302 expected 2 blank lines, found 1
172: D103 Docstring missing
178:1: E302 expected 2 blank lines, found 1
178: D401 First line should be imperative: 'Thi', not 'This'
178: D400 First line should end with '.', not 'l'
178: D205 Blank line missing between one-line summary and description
229:1: E302 expected 2 blank lines, found 1
229: D400 First line should end with '.', not 'e'
229: D205 Blank line missing between one-line summary and description
244:1: E302 expected 2 blank lines, found 1
244: D401 First line should be imperative: 'Ha', not 'Has'
244: D400 First line should end with '.', not 'y'
244: D205 Blank line missing between one-line summary and description
252:1: E302 expected 2 blank lines, found 1
252: D400 First line should end with '.', not 'l'
252: D205 Blank line missing between one-line summary and description
278:1: E302 expected 2 blank lines, found 1
278: D400 First line should end with '.', not 'e'
278: D205 Blank line missing between one-line summary and description
285:1: E302 expected 2 blank lines, found 1
294:1: E302 expected 2 blank lines, found 1
305:1: E302 expected 2 blank lines, found 1
305: D400 First line should end with '.', not 'n'
305: D205 Blank line missing between one-line summary and description
316:1: E302 expected 2 blank lines, found 1
320:1: E302 expected 2 blank lines, found 1
320: D205 Blank line missing between one-line summary and description
331:1: E302 expected 2 blank lines, found 1
331: D103 Docstring missing
335:1: E302 expected 2 blank lines, found 1
335: D400 First line should end with '.', not 'm'
335: D205 Blank line missing between one-line summary and description
403: D400 First line should end with '.', not 'd'
403: D205 Blank line missing between one-line summary and description
416: D290 White spaces around docstring should be trimmed.
416: D400 First line should end with '.', not 'd'
416: D200 One-line docstring should not occupy 2 lines
428: D290 White spaces around docstring should be trimmed.
428: D400 First line should end with '.', not 'e'
428: D205 Blank line missing between one-line summary and description
451: D400 First line should end with '.', not 'e'
451: D205 Blank line missing between one-line summary and description
481:24: E713 test for membership should be 'not in'
490:1: E302 expected 2 blank lines, found 1
490: D401 First line should be imperative: 'Convert', not 'Converts'
490: D400 First line should end with '.', not 'p'
490: D200 One-line docstring should not occupy 3 lines
497:1: E302 expected 2 blank lines, found 1
497: D401 First line should be imperative: 'Convert', not 'Converts'
497: D400 First line should end with '.', not 'e'
497: D200 One-line docstring should not occupy 3 lines
509:1: E302 expected 2 blank lines, found 1
509: D400 First line should end with '.', not 'd'
517:1: E302 expected 2 blank lines, found 1
517: D209 Put multi-line docstring closing quotes on separate line
517: D400 First line should end with '.', not 's'
517: D205 Blank line missing between one-line summary and description
517: D208 Docstring is over-indented
530:1: E302 expected 2 blank lines, found 1
530: D205 Blank line missing between one-line summary and description
540:1: E302 expected 2 blank lines, found 1
540: D205 Blank line missing between one-line summary and description
551:1: E302 expected 2 blank lines, found 1
551: D205 Blank line missing between one-line summary and description
558:1: E302 expected 2 blank lines, found 1
558: D205 Blank line missing between one-line summary and description
578:1: E302 expected 2 blank lines, found 1
584:1: E302 expected 2 blank lines, found 1
584: D103 Docstring missing
591:1: E302 expected 2 blank lines, found 1
591: D205 Blank line missing between one-line summary and description
607: D290 White spaces around docstring should be trimmed.
607: D205 Blank line missing between one-line summary and description
628:9: E128 continuation line under-indented for visual indent
631:1: E302 expected 2 blank lines, found 1
631: D209 Put multi-line docstring closing quotes on separate line
631: D400 First line should end with '.', not ']'
631: D205 Blank line missing between one-line summary and description
631: D208 Docstring is over-indented
670:1: E302 expected 2 blank lines, found 1
670: D401 First line should be imperative: 'Return', not 'Returns'
670: D400 First line should end with '.', not ']'
675:1: E302 expected 2 blank lines, found 1
693: D205 Blank line missing between one-line summary and description
701:1: E302 expected 2 blank lines, found 1
714:1: E302 expected 2 blank lines, found 1
754:1: E302 expected 2 blank lines, found 1
772: D400 First line should end with '.', not 's'
772: D205 Blank line missing between one-line summary and description
793: D401 First line should be imperative: 'Return', not 'Returns'
793: D290 White spaces around docstring should be trimmed.
793: D400 First line should end with '.', not '0'
793: D205 Blank line missing between one-line summary and description
804:61: E128 continuation line under-indented for visual indent
805:61: E128 continuation line under-indented for visual indent
806:61: E128 continuation line under-indented for visual indent
807:61: E128 continuation line under-indented for visual indent
810: D290 White spaces around docstring should be trimmed.
810: D400 First line should end with '.', not 't'
810: D205 Blank line missing between one-line summary and description
825: D290 White spaces around docstring should be trimmed.
825: D400 First line should end with '.', not 't'
848:48: E128 continuation line under-indented for visual indent
852:1: E266 too many leading '#' for block comment
854:1: E302 expected 2 blank lines, found 1
854: D400 First line should end with '.', not 'd'
896:1: E266 too many leading '#' for block comment
898:1: E302 expected 2 blank lines, found 1
898: D400 First line should end with '.', not 't'
898: D205 Blank line missing between one-line summary and description
916: D400 First line should end with '.', not 'e'
916: D205 Blank line missing between one-line summary and description
934:5: E122 continuation line missing indentation or outdented
950:36: E127 continuation line over-indented for visual indent
951:36: E127 continuation line over-indented for visual indent
952:36: E127 continuation line over-indented for visual indent
953:36: E127 continuation line over-indented for visual indent
957: D400 First line should end with '.', not 'n'
1013:1: E266 too many leading '#' for block comment
1015: D401 First line should be imperative: 'Create', not 'Creates'
1015: D400 First line should end with '.', not 'e'
1015: D205 Blank line missing between one-line summary and description
1030: D400 First line should end with '.', not 'n'
1030: D205 Blank line missing between one-line summary and description
1050: D401 First line should be imperative: 'Change', not 'Changes'
1050: D400 First line should end with '.', not ','
1050: D205 Blank line missing between one-line summary and description
1068:9: E128 continuation line under-indented for visual indent
1078:13: E128 continuation line under-indented for visual indent
1081: D401 First line should be imperative: 'Return', not 'Returns'
1081: D290 White spaces around docstring should be trimmed.
1081: D400 First line should end with '.', not 'e'
1106:1: E266 too many leading '#' for block comment
1109: D103 Docstring missing
1123:25: E128 continuation line under-indented for visual indent
1162: D401 First line should be imperative: 'Load', not 'Loads'
1162: D205 Blank line missing between one-line summary and description
1178:52: E201 whitespace after '{'
1178:62: E203 whitespace before ':'
1178:89: E203 whitespace before ':'
1178:105: E202 whitespace before '}'
1191: D401 First line should be imperative: 'Split', not 'Splits'
1191: D400 First line should end with '.', not ':'
1191: D205 Blank line missing between one-line summary and description
1191: D300 Expected """-quotes, got '''-quotes
1271: D401 First line should be imperative: 'Create', not 'Creates'
1271: D400 First line should end with '.', not 'e'
1271: D205 Blank line missing between one-line summary and description
1271: D300 Expected """-quotes, got '''-quotes
1306: D205 Blank line missing between one-line summary and description
1306: D300 Expected """-quotes, got '''-quotes