forked from mconlon17/vivo-pump
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlint.txt
204 lines (176 loc) · 10.2 KB
/
lint.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
************* Module pump
C: 57, 0: Wrong hanging indentation in dict value.
'''
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX swrl: <http://www.w3.org/2003/11/swrl#>
PREFIX swrlb: <http://www.w3.org/2003/11/swrlb#>
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
PREFIX wgs84: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX c4o: <http://purl.org/spar/c4o/>
PREFIX cito: <http://purl.org/spar/cito/>
PREFIX event: <http://purl.org/NET/c4dm/event.owl#>
PREFIX fabio: <http://purl.org/spar/fabio/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://aims.fao.org/aos/geopolitical.owl#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX ocrer: <http://purl.org/net/OCRe/research.owl#>
PREFIX ocresd: <http://purl.org/net/OCRe/study_design.owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX uf: <http://vivo.school.edu/ontology/uf-extension#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX vitro-public: <http://vitro.mannlib.cornell.edu/ns/vitro/public#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
PREFIX scires: <http://vivoweb.org/ontology/scientific-research#>
'''
^ | | (bad-continuation)
C:610, 0: Wrong continued indentation.
datatype=step_def['object'].get('datatype', None),
^ | (bad-continuation)
C:611, 0: Wrong continued indentation.
lang=step_def['object'].get('lang', None))))
^ | (bad-continuation)
C:676, 0: Wrong continued indentation.
make_rdf_term_from_source(step_def['object']['value'], step_def)))
^| (bad-continuation)
C:680, 0: Wrong continued indentation.
make_rdf_term_from_source(step_def['object']['value'], step_def)))
^| (bad-continuation)
R: 43, 0: Too many instance attributes (13/10) (too-many-instance-attributes)
W: 50, 4: Dangerous default value {} as argument (dangerous-default-value)
W:172, 8: No exception type(s) specified (bare-except)
W:220,24: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:222,24: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:228,24: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:253,29: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:262,33: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
E:297,20: Instance of 'URIRef' has no 'get' member (no-member)
W:319,33: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:328,20: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:330,20: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:342,20: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
E:342,20: Too many arguments for format string (too-many-format-args)
W:368,21: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
R:371, 4: Too many local variables (36/30) (too-many-locals)
W:387,21: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:388,21: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:412,43: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
E:415,28: Too many arguments for logging format string (logging-too-many-args)
W:423,45: Use of eval (eval-used)
W:425,49: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:441,51: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:463,25: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:380, 8: Unused variable 'improve_dollar_amount' (unused-variable)
W:380, 8: Unused variable 'improve_sponsor_award_id' (unused-variable)
W:380, 8: Unused variable 'improve_org_name' (unused-variable)
W:380, 8: Unused variable 'improve_deptid' (unused-variable)
W:380, 8: Unused variable 'improve_phone_number' (unused-variable)
W:380, 8: Unused variable 'improve_title' (unused-variable)
W:380, 8: Unused variable 'improve_email' (unused-variable)
W:380, 8: Unused variable 'improve_display_name' (unused-variable)
W:380, 8: Unused variable 'improve_date' (unused-variable)
W:511,31: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:489,30: Unused variable 'p' (unused-variable)
W:489,27: Unused variable 's' (unused-variable)
E:577,25: Too many arguments for format string (too-many-format-args)
W:548,30: Unused variable 'p' (unused-variable)
W:548,27: Unused variable 's' (unused-variable)
W:674,33: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:678,33: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:685,29: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:688,33: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:693,29: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:706,37: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:708,37: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
W:715,25: Use % formatting in logging functions but pass the % parameters as arguments (logging-format-interpolation)
Report
======
333 statements analysed.
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |1 |1 |= |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |1 |1 |= |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |14 |14 |= |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|function |0 |0 |= |0 |0 |
+---------+-------+-----------+-----------+------------+---------+
External dependencies
---------------------
::
SPARQLWrapper
\-SPARQLExceptions (pump)
rdflib (pump)
vivopump (pump)
Raw metrics
-----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |376 |56.37 |377 |-1.00 |
+----------+-------+------+---------+-----------+
|docstring |177 |26.54 |177 |= |
+----------+-------+------+---------+-----------+
|comment |54 |8.10 |54 |= |
+----------+-------+------+---------+-----------+
|empty |60 |9.00 |60 |= |
+----------+-------+------+---------+-----------+
Duplication
-----------
+-------------------------+------+---------+-----------+
| |now |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines |0 |0 |= |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |0.000 |= |
+-------------------------+------+---------+-----------+
Messages by category
--------------------
+-----------+-------+---------+-----------+
|type |number |previous |difference |
+===========+=======+=========+===========+
|convention |5 |5 |= |
+-----------+-------+---------+-----------+
|refactor |2 |2 |= |
+-----------+-------+---------+-----------+
|warning |41 |44 |-3.00 |
+-----------+-------+---------+-----------+
|error |4 |5 |-1.00 |
+-----------+-------+---------+-----------+
Messages
--------
+-----------------------------+------------+
|message id |occurrences |
+=============================+============+
|logging-format-interpolation |25 |
+-----------------------------+------------+
|unused-variable |13 |
+-----------------------------+------------+
|bad-continuation |5 |
+-----------------------------+------------+
|too-many-format-args |2 |
+-----------------------------+------------+
|too-many-locals |1 |
+-----------------------------+------------+
|too-many-instance-attributes |1 |
+-----------------------------+------------+
|no-member |1 |
+-----------------------------+------------+
|logging-too-many-args |1 |
+-----------------------------+------------+
|eval-used |1 |
+-----------------------------+------------+
|dangerous-default-value |1 |
+-----------------------------+------------+
|bare-except |1 |
+-----------------------------+------------+
Global evaluation
-----------------
Your code has been rated at 7.96/10 (previous run: 7.72/10, +0.23)