Module bot Line too long 110 80 Line too long 130 80 Line too long 97

  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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
************* Module bot
C: 6: Line too long (110/80)
C: 7: Line too long (130/80)
C: 8: Line too long (97/80)
C: 9: Line too long (128/80)
C: 10: Line too long (304/80)
C: 11: Line too long (191/80)
C: 12: Line too long (102/80)
C: 13: Line too long (133/80)
C: 15: Line too long (154/80)
C: 18: Line too long (81/80)
C: 19: Line too long (104/80)
C: 23: Line too long (150/80)
C: 27: Line too long (104/80)
C: 29: Line too long (116/80)
C: 33: Line too long (82/80)
C: 54: Line too long (328/80)
C: 56: Line too long (132/80)
C: 1: Missing docstring
C: 5: Operator not preceded by a space
name=raw_input("Введите ваше имя: ")
^
C: 5: Invalid name "name" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 6: Operator not preceded by a space
hi=["ВОТ: Привет :)","ВОТ: Как жизнь?","ВОТ: Привет. Как поживаешь?"]
^
C: 6: Invalid name "hi" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 7: Operator not preceded by a space
happ=["BOT: Смешно? Вот-вот","BOT: :-))","))","BOT: И прада смешно","Хм...","Самому смешно"]
^
C: 7: Invalid name "happ" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 8: Operator not preceded by a space
ok=["BOT: Отлично!!! :)","BOT: Просто класс!!!","BOT: Лучше всех. :)"]
^
C: 8: Invalid name "ok" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 9: Operator not preceded by a space
good=["BOT: Рад за тебя","BOT:Возрадуйся :)","BOT:Поздравляю","Правда? У меня тоже"]
^
C: 9: Invalid name "good" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 10: Operator not preceded by a space
pas=["BOT:Круто","BOT:Угу","Прости я вожможно тебя не до конца понимаю потому-что я не доделанный бот. Но вожможно скоро я буду это понимать","ВОТ:Ммм это интересно","ВОТ: Круто"]
^
C: 10: Invalid name "pas" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 11: Operator not preceded by a space
schet=["BOT: Прости я не умею считать","ВОТ: Хм интересно. Но если бы я знач что там написанно","ВОТ: :( Не понимаю"]
^
C: 11: Invalid name "schet" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 12: Operator not preceded by a space
fd=["ВОТ:Рад за тебя","ВОТ: Правда?","ВОТ: Интересно","ВОТ: ХМ"]
^
C: 12: Invalid name "fd" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 13: Operator not preceded by a space
h=["ВОТ: Очень приятно. А я BOT версии 0.1","ВОТ: Рад знакомству. А меня зовут BOT"]
^
C: 13: Invalid name "h" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 14: Operator not preceded by a space
what=["ВОТ: Ничего","ВОТ: С тобой говорю"]
^
C: 14: Invalid name "what" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 15: Operator not preceded by a space
yes=["ВОТ: Совершенно верно","ВОТ: Не буду спорить","ВОТ: Круто","ВОТ: Прада?","ВОТ: Не врёш?"]
^
C: 15: Invalid name "yes" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 16: Operator not preceded by a space
y=["ВОТ: Да","Верно","ВОТ: Конечно!"]
^
C: 16: Invalid name "y" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 17: Operator not preceded by a space
no=["ВОТ:Наверное нет","ВОТ:Нет"]
^
C: 17: Invalid name "no" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 18: Operator not preceded by a space
n=["ВОТ: Плохо","ВОТ: Нет так нет","ВОТ: Ну ладно"]
^
C: 18: Invalid name "n" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 19: Operator not preceded by a space
go=["ВОТ: Сам иди туда","ВОТ: Нехочу","ВОТ: У меня нет желания"]
^
C: 19: Invalid name "go" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 21: Operator not preceded by a space
a=raw_input(name+": ")
^
C: 21: Invalid name "a" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 23: Operator not preceded by a space
if a=="Привет" or a=="привет" or a=="hi" or a=="Hi" or a=="Прива" or a=="прива" or a=="hello" or a=="Хай" or a=="хай":
^^
C: 24: Comma not followed by a space
print hi[randint(0,len(hi)-1)]
^^
C: 26: Comma not followed by a space
print happ[randint(0,len(happ)-1)]
^^
C: 28: Comma not followed by a space
print ok[randint(0,len(ok)-1)]
^^
C: 30: Comma not followed by a space
print good[randint(0,len(good)-1)]
^^
C: 32: Comma not followed by a space
print pas[randint(0,len(pas)-1)]
^^
C: 34: Comma not followed by a space
print schet[randint(0,len(schet)-1)]
^^
C: 36: Comma not followed by a space
print fd[randint(0,len(fd)-1)]
^^
C: 38: Comma not followed by a space
print h[randint(0,len(h)-1)]
^^
C: 40: Comma not followed by a space
print what[randint(0,len(what)-1)]
^^
C: 42: Comma not followed by a space
print fd[randint(0,len(fd)-1)]
^^
C: 44: Comma not followed by a space
print fd[randint(0,len(fd)-1)]
^^
C: 46: Comma not followed by a space
print y[randint(0,len(y)-1)]
^^
C: 48: Comma not followed by a space
print no[randint(0,len(no)-1)]
^^
C: 50: Comma not followed by a space
print n[randint(0,len(n)-1)]
^^
C: 52: Comma not followed by a space
print go[randint(0,len(go)-1)]
^^
C: 61: Comma not followed by a space
print pas[randint(0,len(pas)-1)]
^^
Report
======
41 statements analysed.
Duplication
-----------
+-------------------------+------+---------+-----------+
| |now |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines |0 |NC |NC |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |NC |NC |
+-------------------------+------+---------+-----------+
Raw metrics
-----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |59 |95.16 |NC |NC |
+----------+-------+------+---------+-----------+
|docstring |0 |0.00 |NC |NC |
+----------+-------+------+---------+-----------+
|comment |2 |3.23 |NC |NC |
+----------+-------+------+---------+-----------+
|empty |1 |1.61 |NC |NC |
+----------+-------+------+---------+-----------+
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |1 |NC |NC |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |0 |NC |NC |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |0 |NC |NC |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|function |0 |NC |NC |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
Messages by category
--------------------
+-----------+-------+---------+-----------+
|type |number |previous |difference |
+===========+=======+=========+===========+
|convention |67 |NC |NC |
+-----------+-------+---------+-----------+
|refactor |0 |NC |NC |
+-----------+-------+---------+-----------+
|warning |0 |NC |NC |
+-----------+-------+---------+-----------+
|error |0 |NC |NC |
+-----------+-------+---------+-----------+
Messages
--------
+-----------+-----------+
|message id |occurences |
+===========+===========+
|C0322 |17 |
+-----------+-----------+
|C0301 |17 |
+-----------+-----------+
|C0324 |16 |
+-----------+-----------+
|C0103 |16 |
+-----------+-----------+
|C0111 |1 |
+-----------+-----------+
Global evaluation
-----------------
Your code has been rated at -6.34/10