Skip to content

Commit a1aacbf

Browse files
committed
Update bandit baseline:
1 parent 80dafca commit a1aacbf

File tree

1 file changed

+24
-36
lines changed

1 file changed

+24
-36
lines changed

.bandit_baseline.json

+24-36
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"errors": [],
3-
"generated_at": "2020-11-26T11:00:36Z",
3+
"generated_at": "2021-11-20T17:06:28Z",
44
"metrics": {
55
"./bot.py": {
66
"CONFIDENCE.HIGH": 1.0,
@@ -11,7 +11,7 @@
1111
"SEVERITY.LOW": 1.0,
1212
"SEVERITY.MEDIUM": 0.0,
1313
"SEVERITY.UNDEFINED": 0.0,
14-
"loc": 1321,
14+
"loc": 1406,
1515
"nosec": 0
1616
},
1717
"./cogs/modmail.py": {
@@ -23,7 +23,7 @@
2323
"SEVERITY.LOW": 0.0,
2424
"SEVERITY.MEDIUM": 0.0,
2525
"SEVERITY.UNDEFINED": 0.0,
26-
"loc": 1273,
26+
"loc": 1678,
2727
"nosec": 0
2828
},
2929
"./cogs/plugins.py": {
@@ -35,7 +35,7 @@
3535
"SEVERITY.LOW": 1.0,
3636
"SEVERITY.MEDIUM": 0.0,
3737
"SEVERITY.UNDEFINED": 0.0,
38-
"loc": 578,
38+
"loc": 597,
3939
"nosec": 0
4040
},
4141
"./cogs/utility.py": {
@@ -47,7 +47,7 @@
4747
"SEVERITY.LOW": 1.0,
4848
"SEVERITY.MEDIUM": 1.0,
4949
"SEVERITY.UNDEFINED": 0.0,
50-
"loc": 1755,
50+
"loc": 1768,
5151
"nosec": 0
5252
},
5353
"./core/_color_data.py": {
@@ -71,7 +71,7 @@
7171
"SEVERITY.LOW": 1.0,
7272
"SEVERITY.MEDIUM": 0.0,
7373
"SEVERITY.UNDEFINED": 0.0,
74-
"loc": 155,
74+
"loc": 159,
7575
"nosec": 0
7676
},
7777
"./core/checks.py": {
@@ -83,7 +83,7 @@
8383
"SEVERITY.LOW": 0.0,
8484
"SEVERITY.MEDIUM": 0.0,
8585
"SEVERITY.UNDEFINED": 0.0,
86-
"loc": 90,
86+
"loc": 105,
8787
"nosec": 0
8888
},
8989
"./core/clients.py": {
@@ -95,7 +95,7 @@
9595
"SEVERITY.LOW": 1.0,
9696
"SEVERITY.MEDIUM": 0.0,
9797
"SEVERITY.UNDEFINED": 0.0,
98-
"loc": 587,
98+
"loc": 598,
9999
"nosec": 0
100100
},
101101
"./core/config.py": {
@@ -107,7 +107,7 @@
107107
"SEVERITY.LOW": 0.0,
108108
"SEVERITY.MEDIUM": 0.0,
109109
"SEVERITY.UNDEFINED": 0.0,
110-
"loc": 352,
110+
"loc": 375,
111111
"nosec": 0
112112
},
113113
"./core/decorators.py": {
@@ -131,7 +131,7 @@
131131
"SEVERITY.LOW": 0.0,
132132
"SEVERITY.MEDIUM": 0.0,
133133
"SEVERITY.UNDEFINED": 0.0,
134-
"loc": 202,
134+
"loc": 204,
135135
"nosec": 0
136136
},
137137
"./core/paginator.py": {
@@ -155,7 +155,7 @@
155155
"SEVERITY.LOW": 0.0,
156156
"SEVERITY.MEDIUM": 0.0,
157157
"SEVERITY.UNDEFINED": 0.0,
158-
"loc": 996,
158+
"loc": 1097,
159159
"nosec": 0
160160
},
161161
"./core/time.py": {
@@ -167,7 +167,7 @@
167167
"SEVERITY.LOW": 0.0,
168168
"SEVERITY.MEDIUM": 0.0,
169169
"SEVERITY.UNDEFINED": 0.0,
170-
"loc": 158,
170+
"loc": 156,
171171
"nosec": 0
172172
},
173173
"./core/utils.py": {
@@ -179,19 +179,7 @@
179179
"SEVERITY.LOW": 0.0,
180180
"SEVERITY.MEDIUM": 0.0,
181181
"SEVERITY.UNDEFINED": 0.0,
182-
"loc": 282,
183-
"nosec": 0
184-
},
185-
"./plugins/kyb3r/modmail-plugins/profanity-filter-master/profanity-filter.py": {
186-
"CONFIDENCE.HIGH": 0.0,
187-
"CONFIDENCE.LOW": 0.0,
188-
"CONFIDENCE.MEDIUM": 0.0,
189-
"CONFIDENCE.UNDEFINED": 0.0,
190-
"SEVERITY.HIGH": 0.0,
191-
"SEVERITY.LOW": 0.0,
192-
"SEVERITY.MEDIUM": 0.0,
193-
"SEVERITY.UNDEFINED": 0.0,
194-
"loc": 81,
182+
"loc": 351,
195183
"nosec": 0
196184
},
197185
"_totals": {
@@ -203,20 +191,20 @@
203191
"SEVERITY.LOW": 5.0,
204192
"SEVERITY.MEDIUM": 1.0,
205193
"SEVERITY.UNDEFINED": 0.0,
206-
"loc": 9214,
194+
"loc": 9878,
207195
"nosec": 0
208196
}
209197
},
210198
"results": [
211199
{
212-
"code": "11 from datetime import datetime\n12 from subprocess import PIPE\n13 from types import SimpleNamespace\n",
200+
"code": "13 from datetime import datetime\n14 from subprocess import PIPE\n15 from types import SimpleNamespace\n",
213201
"filename": "./bot.py",
214202
"issue_confidence": "HIGH",
215203
"issue_severity": "LOW",
216204
"issue_text": "Consider possible security implications associated with PIPE module.",
217-
"line_number": 12,
205+
"line_number": 14,
218206
"line_range": [
219-
12
207+
14
220208
],
221209
"more_info": "https://bandit.readthedocs.io/en/latest/blacklists/blacklist_imports.html#b404-import-subprocess",
222210
"test_id": "B404",
@@ -238,28 +226,28 @@
238226
"test_name": "blacklist"
239227
},
240228
{
241-
"code": "13 from json import JSONDecodeError, loads\n14 from subprocess import PIPE\n15 from textwrap import indent\n",
229+
"code": "12 from json import JSONDecodeError, loads\n13 from subprocess import PIPE\n14 from textwrap import indent\n",
242230
"filename": "./cogs/utility.py",
243231
"issue_confidence": "HIGH",
244232
"issue_severity": "LOW",
245233
"issue_text": "Consider possible security implications associated with PIPE module.",
246-
"line_number": 14,
234+
"line_number": 13,
247235
"line_range": [
248-
14
236+
13
249237
],
250238
"more_info": "https://bandit.readthedocs.io/en/latest/blacklists/blacklist_imports.html#b404-import-subprocess",
251239
"test_id": "B404",
252240
"test_name": "blacklist"
253241
},
254242
{
255-
"code": "2039 try:\n2040 exec(to_compile, env) # pylint: disable=exec-used\n2041 except Exception as exc:\n",
243+
"code": "2061 try:\n2062 exec(to_compile, env) # pylint: disable=exec-used\n2063 except Exception as exc:\n",
256244
"filename": "./cogs/utility.py",
257245
"issue_confidence": "HIGH",
258246
"issue_severity": "MEDIUM",
259247
"issue_text": "Use of exec detected.",
260-
"line_number": 2040,
248+
"line_number": 2062,
261249
"line_range": [
262-
2040
250+
2062
263251
],
264252
"more_info": "https://bandit.readthedocs.io/en/latest/plugins/b102_exec_used.html",
265253
"test_id": "B102",
@@ -280,7 +268,7 @@
280268
"test_name": "blacklist"
281269
},
282270
{
283-
"code": "67 \n68 def __init__(self, bot, access_token: str = \"\", username: str = \"\", **kwargs):\n69 self.bot = bot\n70 self.session = bot.session\n71 self.headers: dict = None\n72 self.access_token = access_token\n73 self.username = username\n74 self.avatar_url: str = kwargs.pop(\"avatar_url\", \"\")\n75 self.url: str = kwargs.pop(\"url\", \"\")\n76 if self.access_token:\n77 self.headers = {\"Authorization\": \"token \" + str(access_token)}\n78 \n79 @property\n80 def BRANCH(self):\n",
271+
"code": "67 \n68 def __init__(self, bot, access_token: str = \"\", username: str = \"\", **kwargs):\n69 self.bot = bot\n70 self.session = bot.session\n71 self.headers: Optional[dict] = None\n72 self.access_token = access_token\n73 self.username = username\n74 self.avatar_url: str = kwargs.pop(\"avatar_url\", \"\")\n75 self.url: str = kwargs.pop(\"url\", \"\")\n76 if self.access_token:\n77 self.headers = {\"Authorization\": \"token \" + str(access_token)}\n78 \n79 @property\n80 def BRANCH(self):\n",
284272
"filename": "./core/clients.py",
285273
"issue_confidence": "MEDIUM",
286274
"issue_severity": "LOW",

0 commit comments

Comments
 (0)