Skip to content

Instantly share code, notes, and snippets.

@pabloest
Created December 18, 2019 00:53
Show Gist options
  • Save pabloest/fc748b8c2ad2ba3bc0735a2b2136078c to your computer and use it in GitHub Desktop.
Save pabloest/fc748b8c2ad2ba3bc0735a2b2136078c to your computer and use it in GitHub Desktop.
[INFO] 178.29203605651855 root:cli - Python version is (3.7)
[DEBUG] 300.0829219818115 urllib3.connectionpool:connectionpool - Starting new HTTPS connection (1): bento.r2c.dev:443
[DEBUG] 538.240909576416 urllib3.connectionpool:connectionpool - https://bento.r2c.dev:443 "GET /bento/api/v1/version HTTP/1.1" 200 54
[INFO] 542.7210330963135 root:cli - Current bento version is 0.7.0, latest is 0.7.0
[INFO] 543.848991394043 root:decorators - Executing check
[INFO] 563.8480186462402 root:base_context - Loading bento configuration from /Users/pabloestrada/sites/flask/.bento.yml
[DEBUG] 698.4138488769531 root:context - Known tool IDs are r2c.bandit, r2c.boto3, r2c.click, r2c.eslint, r2c.flask, r2c.flake8, r2c.grep, r2c.hadolint, r2c.pyre, r2c.requests, r2c.sgrep, r2c.shellcheck
[DEBUG] 702.6488780975342 root:tool_runner - r2c.bandit start
[DEBUG] 702.7280330657959 root:tool_runner - r2c.flake8 start
[DEBUG] 702.9860019683838 root:tool_runner - r2c.flask start
[DEBUG] 703.0930519104004 root:tool_runner - r2c.requests start
[DEBUG] 703.4299373626709 root:python_tool - r2c.bandit: Running '. '/Users/pabloestrada/sites/flask/.bento/bandit/bin/activate'; python -m pip list --format json'
[DEBUG] 703.7768363952637 root:python_tool - r2c.flake8: Running '. '/Users/pabloestrada/sites/flask/.bento/flake8/bin/activate'; python -m pip list --format json'
[DEBUG] 704.0069103240967 root:python_tool - r2c.flask: Running '. '/Users/pabloestrada/sites/flask/.bento/flask/bin/activate'; python -m pip list --format json'
[DEBUG] 706.1986923217773 root:python_tool - r2c.requests: Running '. '/Users/pabloestrada/sites/flask/.bento/requests/bin/activate'; python -m pip list --format json'
[DEBUG] 1241.8928146362305 root:python_tool - r2c.bandit: Command completed in 0.537668 s
[DEBUG] 1242.1588897705078 root:python_tool - r2c.bandit: stderr[:4000]:
[DEBUG] 1242.3338890075684 root:python_tool - r2c.bandit: stdout[:4000]:
[{"name": "bandit", "version": "1.6.2"}, {"name": "gitdb2", "version": "2.0.6"}, {"name": "GitPython", "version": "3.0.5"}, {"name": "pbr", "version": "5.4.4"}, {"name": "pip", "version": "19.3.1"}, {"name": "PyYAML", "version": "5.2"}, {"name": "setuptools", "version": "42.0.2"}, {"name": "six", "version": "1.13.0"}, {"name": "smmap2", "version": "2.0.5"}, {"name": "stevedore", "version": "1.31.0"}, {"name": "wheel", "version": "0.33.6"}]
[DEBUG] 1242.940902709961 root:python_tool - r2c.flake8: Command completed in 0.538576 s
[DEBUG] 1243.0191040039062 root:python_tool - r2c.flake8: stderr[:4000]:
[DEBUG] 1243.0737018585205 root:python_tool - r2c.flake8: stdout[:4000]:
[{"name": "attrs", "version": "19.3.0"}, {"name": "entrypoints", "version": "0.3"}, {"name": "flake8", "version": "3.7.9"}, {"name": "flake8-bugbear", "version": "19.8.0"}, {"name": "flake8-debugger", "version": "3.2.1"}, {"name": "flake8-executable", "version": "2.0.3"}, {"name": "flake8-json", "version": "19.8.0"}, {"name": "mccabe", "version": "0.6.1"}, {"name": "pip", "version": "19.3.1"}, {"name": "pycodestyle", "version": "2.5.0"}, {"name": "pyflakes", "version": "2.1.1"}, {"name": "setuptools", "version": "42.0.2"}, {"name": "wheel", "version": "0.33.6"}]
[DEBUG] 1243.4308528900146 root:python_tool - r2c.flask: Command completed in 0.533949 s
[DEBUG] 1243.4897422790527 root:python_tool - r2c.flask: stderr[:4000]:
[DEBUG] 1243.5388565063477 root:python_tool - r2c.flask: stdout[:4000]:
[{"name": "entrypoints", "version": "0.3"}, {"name": "flake8", "version": "3.7.9"}, {"name": "flake8-flask", "version": "0.7.1"}, {"name": "flake8-json", "version": "19.8.0"}, {"name": "mccabe", "version": "0.6.1"}, {"name": "pip", "version": "19.3.1"}, {"name": "pycodestyle", "version": "2.5.0"}, {"name": "pyflakes", "version": "2.1.1"}, {"name": "setuptools", "version": "42.0.2"}, {"name": "wheel", "version": "0.33.6"}]
[DEBUG] 1244.2128658294678 root:python_tool - r2c.requests: Command completed in 0.533198 s
[DEBUG] 1244.3537712097168 root:python_tool - r2c.requests: stderr[:4000]:
[DEBUG] 1244.4708347320557 root:python_tool - r2c.requests: stdout[:4000]:
[{"name": "attrs", "version": "19.3.0"}, {"name": "entrypoints", "version": "0.3"}, {"name": "flake8", "version": "3.7.9"}, {"name": "flake8-json", "version": "19.8.0"}, {"name": "flake8-requests", "version": "0.2.0"}, {"name": "importlib-metadata", "version": "1.3.0"}, {"name": "mccabe", "version": "0.6.1"}, {"name": "more-itertools", "version": "8.0.2"}, {"name": "packaging", "version": "19.2"}, {"name": "pip", "version": "19.3.1"}, {"name": "pluggy", "version": "0.13.1"}, {"name": "py", "version": "1.8.0"}, {"name": "pycodestyle", "version": "2.5.0"}, {"name": "pyflakes", "version": "2.1.1"}, {"name": "pyparsing", "version": "2.4.5"}, {"name": "pytest", "version": "5.3.1"}, {"name": "setuptools", "version": "42.0.2"}, {"name": "six", "version": "1.13.0"}, {"name": "wcwidth", "version": "0.1.7"}, {"name": "wheel", "version": "0.33.6"}, {"name": "zipp", "version": "0.6.0"}]
[DEBUG] 1426.429033279419 root:tool - Checking for local cache for r2c.requests
[INFO] 1426.7818927764893 root:fignore - Loading bento file ignores from /Users/pabloestrada/sites/flask/.bentoignore
[DEBUG] 1427.3109436035156 root:tool - Checking for local cache for r2c.flake8
[DEBUG] 1427.6769161224365 root:tool - Checking for local cache for r2c.bandit
[DEBUG] 1427.884817123413 root:tool - Checking for local cache for r2c.flask
[INFO] 1429.2716979980469 root:fignore - Ignored patterns are:
.flaskenv
.pytest_cache/
build/
*,cover
dist/
.bento/
.DS_Store
env/
env*
.git/
*.egg-info/
*.pyo
.env
*.pyc
.coverage
.cache/
docs/_build/
.gitignore
.idea/
.coverage.*
_mailinglist
htmlcov/
.tox/
*.egg
[DEBUG] 1434.936761856079 root:fignore - Scanned /Users/pabloestrada/sites/flask/artwork in 0.0005249977111816406 s
[DEBUG] 1439.9478435516357 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/frontend/templates/frontend in 0.00044608116149902344 s
[DEBUG] 1440.0389194488525 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/frontend/templates in 0.001065969467163086 s
[DEBUG] 1440.0877952575684 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/frontend in 0.0018129348754882812 s
[DEBUG] 1442.0287609100342 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/admin/static/css in 0.00039386749267578125 s
[DEBUG] 1442.4309730529785 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/admin/static in 0.0012562274932861328 s
[DEBUG] 1443.8049793243408 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/admin/templates/admin in 0.0003809928894042969 s
[DEBUG] 1443.8657760620117 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/admin/templates in 0.0009248256683349609 s
[DEBUG] 1443.9067840576172 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps/admin in 0.0034570693969726562 s
[DEBUG] 1444.2098140716553 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp/apps in 0.0062770843505859375 s
[DEBUG] 1444.2918300628662 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/blueprintapp in 0.006836891174316406 s
[DEBUG] 1444.9279308319092 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/helloworld in 0.00039577484130859375 s
[DEBUG] 1446.1309909820557 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/subdomaintestmodule/static in 0.0002579689025878906 s
[DEBUG] 1446.1767673492432 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/subdomaintestmodule in 0.0008020401000976562 s
[DEBUG] 1447.9098320007324 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/cliapp/inner1/inner2 in 0.0007259845733642578 s
[DEBUG] 1448.044776916504 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/cliapp/inner1 in 0.0013709068298339844 s
[DEBUG] 1449.7449398040771 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps/cliapp in 0.003323793411254883 s
[DEBUG] 1449.821949005127 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/test_apps in 0.01270914077758789 s
[DEBUG] 1450.9248733520508 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/static in 0.0003457069396972656 s
[DEBUG] 1453.4096717834473 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/templates/nested in 0.00025916099548339844 s
[DEBUG] 1453.4878730773926 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests/templates in 0.0019431114196777344 s
[DEBUG] 1454.4520378112793 root:fignore - Scanned /Users/pabloestrada/sites/flask/tests in 0.01872110366821289 s
[DEBUG] 1457.90696144104 root:fignore - Scanned /Users/pabloestrada/sites/flask/docs/tutorial in 0.002276897430419922 s
[DEBUG] 1463.4299278259277 root:fignore - Scanned /Users/pabloestrada/sites/flask/docs/patterns in 0.004913806915283203 s
[DEBUG] 1466.5837287902832 root:fignore - Scanned /Users/pabloestrada/sites/flask/docs/_static in 0.001178741455078125 s
[DEBUG] 1468.8057899475098 root:fignore - Scanned /Users/pabloestrada/sites/flask/docs/deploying in 0.0009150505065917969 s
[DEBUG] 1469.648838043213 root:fignore - Scanned /Users/pabloestrada/sites/flask/docs in 0.014834880828857422 s
[DEBUG] 1471.9469547271729 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/tutorial/tests in 0.0012280941009521484 s
[DEBUG] 1473.639965057373 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/tutorial/flaskr/static in 0.0002338886260986328 s
[DEBUG] 1475.0049114227295 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/tutorial/flaskr/templates/auth in 0.0005381107330322266 s
[DEBUG] 1476.2558937072754 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/tutorial/flaskr/templates/blog in 0.0008139610290527344 s
[DEBUG] 1476.3147830963135 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/tutorial/flaskr/templates in 0.002382993698120117 s
[DEBUG] 1476.5398502349854 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/tutorial/flaskr in 0.0041351318359375 s
[DEBUG] 1477.1647453308105 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/tutorial in 0.006844997406005859 s
[DEBUG] 1479.3548583984375 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/javascript/js_example/templates in 0.0009562969207763672 s
[DEBUG] 1479.6059131622314 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/javascript/js_example in 0.0016961097717285156 s
[DEBUG] 1480.402946472168 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/javascript/tests in 0.0004258155822753906 s
[DEBUG] 1481.3268184661865 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples/javascript in 0.003943920135498047 s
[DEBUG] 1481.3859462738037 root:fignore - Scanned /Users/pabloestrada/sites/flask/examples in 0.011266946792602539 s
[DEBUG] 1481.8897247314453 root:fignore - Scanned /Users/pabloestrada/sites/flask/.github in 0.00032019615173339844 s
[DEBUG] 1484.5497608184814 root:fignore - Scanned /Users/pabloestrada/sites/flask/src/flask/json in 0.0003459453582763672 s
[DEBUG] 1486.001968383789 root:fignore - Scanned /Users/pabloestrada/sites/flask/src/flask in 0.0030760765075683594 s
[DEBUG] 1486.0570430755615 root:fignore - Scanned /Users/pabloestrada/sites/flask/src in 0.0033288002014160156 s
[INFO] 1486.097812652588 root:fignore - Loaded file ignore cache in 0.05675101280212402 s.
[WARNING] 1505.9237480163574 root:run_cache - Invalidating cache for r2c.flake8
[WARNING] 1507.617712020874 root:run_cache - Invalidating cache for r2c.flask
[WARNING] 1514.2767429351807 root:run_cache - Invalidating cache for r2c.bandit
[WARNING] 1514.9719715118408 root:run_cache - Invalidating cache for r2c.requests
[DEBUG] 1515.4588222503662 root:tool - Cache entry invalid for r2c.flake8. Running Tool.
[DEBUG] 1515.7577991485596 root:tool - Cache entry invalid for r2c.bandit. Running Tool.
[DEBUG] 1515.9838199615479 root:python_tool - r2c.flake8: Running '. '/Users/pabloestrada/sites/flask/.bento/flake8/bin/activate'; python "$(which flake8)" --format=json --exclude=/Users/pabloestrada/sites/flask/tests/test_apps/.flaskenv,/Users/pabloestrada/sites/flask/tests/test_apps/.env,/Users/pabloestrada/sites/flask/.bento,/Users/pabloestrada/sites/flask/.gitignore,/Users/pabloestrada/sites/flask/examples/tutorial/.gitignore,/Users/pabloestrada/sites/flask/examples/javascript/.gitignore,/Users/pabloestrada/sites/flask/.git "$SANITIZED_0"'
[DEBUG] 1516.1139965057373 root:tool - Cache entry invalid for r2c.flask. Running Tool.
[DEBUG] 1516.239881515503 root:tool - Cache entry invalid for r2c.requests. Running Tool.
[DEBUG] 1516.3819789886475 root:python_tool - r2c.bandit: Running '. '/Users/pabloestrada/sites/flask/.bento/bandit/bin/activate'; python "$(which bandit)" --f json -x /Users/pabloestrada/sites/flask/tests/test_apps/.flaskenv,/Users/pabloestrada/sites/flask/tests/test_apps/.env,/Users/pabloestrada/sites/flask/.bento,/Users/pabloestrada/sites/flask/.gitignore,/Users/pabloestrada/sites/flask/examples/tutorial/.gitignore,/Users/pabloestrada/sites/flask/examples/javascript/.gitignore,/Users/pabloestrada/sites/flask/.git -r "$SANITIZED_0"'
[DEBUG] 1516.906976699829 root:python_tool - r2c.flask: Running '. '/Users/pabloestrada/sites/flask/.bento/flask/bin/activate'; python "$(which flake8)" --select=r2c --format=json --exclude=/Users/pabloestrada/sites/flask/tests/test_apps/.flaskenv,/Users/pabloestrada/sites/flask/tests/test_apps/.env,/Users/pabloestrada/sites/flask/.bento,/Users/pabloestrada/sites/flask/.gitignore,/Users/pabloestrada/sites/flask/examples/tutorial/.gitignore,/Users/pabloestrada/sites/flask/examples/javascript/.gitignore,/Users/pabloestrada/sites/flask/.git "$SANITIZED_0"'
[DEBUG] 1518.8827514648438 root:python_tool - r2c.requests: Running '. '/Users/pabloestrada/sites/flask/.bento/requests/bin/activate'; python "$(which flake8)" --select=r2c --format=json --exclude=/Users/pabloestrada/sites/flask/tests/test_apps/.flaskenv,/Users/pabloestrada/sites/flask/tests/test_apps/.env,/Users/pabloestrada/sites/flask/.bento,/Users/pabloestrada/sites/flask/.gitignore,/Users/pabloestrada/sites/flask/examples/tutorial/.gitignore,/Users/pabloestrada/sites/flask/examples/javascript/.gitignore,/Users/pabloestrada/sites/flask/.git "$SANITIZED_0"'
[DEBUG] 1734.1828346252441 root:python_tool - r2c.flask: Command completed in 0.214315 s
[DEBUG] 1734.454870223999 root:python_tool - r2c.flask: stderr[:4000]:
[DEBUG] 1734.557867050171 root:python_tool - r2c.flask: stdout[:4000]:
{"examples/javascript/js_example/views.py": [{"code": "r2c-flask-use-jsonify", "filename": "examples/javascript/js_example/views.py", "line_number": 19, "column_number": 5, "text": "Use `flask.jsonify()` instead of `json.dumps()` when returning JSON from Flask routes. `flask.jsonify()` is a helper method which handles the correct settings for returning JSON.", "physical_line": " return json.dumps(result = a + b)\n"}]}
[DEBUG] 1735.0049018859863 root:python_tool - r2c.requests: Command completed in 0.213160 s
[DEBUG] 1735.151767730713 root:python_tool - r2c.requests: stderr[:4000]:
[DEBUG] 1735.31174659729 root:python_tool - r2c.requests: stdout[:4000]:
{"examples/javascript/js_example/views.py": []}
[DEBUG] 1744.0578937530518 root:python_tool - r2c.flake8: Command completed in 0.227574 s
[DEBUG] 1744.1790103912354 root:python_tool - r2c.flake8: stderr[:4000]:
[DEBUG] 1744.5578575134277 root:python_tool - r2c.flake8: stdout[:4000]:
{"examples/javascript/js_example/views.py": [{"code": "F401", "filename": "examples/javascript/js_example/views.py", "line_number": 1, "column_number": 1, "text": "'flask.jsonify' imported but unused", "physical_line": "from flask import jsonify\n"}, {"code": "E251", "filename": "examples/javascript/js_example/views.py", "line_number": 19, "column_number": 29, "text": "unexpected spaces around keyword / parameter equals", "physical_line": " return json.dumps(result = a + b)\n"}, {"code": "E251", "filename": "examples/javascript/js_example/views.py", "line_number": 19, "column_number": 31, "text": "unexpected spaces around keyword / parameter equals", "physical_line": " return json.dumps(result = a + b)\n"}]}
[DEBUG] 1791.0428047180176 root:python_tool - r2c.bandit: Command completed in 0.271838 s
[DEBUG] 1791.132926940918 root:python_tool - r2c.bandit: stderr[:4000]:
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[DEBUG] 1791.1739349365234 root:python_tool - r2c.bandit: stdout[:4000]:
{
"errors": [],
"generated_at": "2019-12-17T21:45:25Z",
"metrics": {
"_totals": {
"CONFIDENCE.HIGH": 0.0,
"CONFIDENCE.LOW": 0.0,
"CONFIDENCE.MEDIUM": 0.0,
"CONFIDENCE.UNDEFINED": 0.0,
"SEVERITY.HIGH": 0.0,
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 14,
"nosec": 0
},
"examples/javascript/js_example/views.py": {
"CONFIDENCE.HIGH": 0.0,
"CONFIDENCE.LOW": 0.0,
"CONFIDENCE.MEDIUM": 0.0,
"CONFIDENCE.UNDEFINED": 0.0,
"SEVERITY.HIGH": 0.0,
"SEVERITY.LOW": 0.0,
"SEVERITY.MEDIUM": 0.0,
"SEVERITY.UNDEFINED": 0.0,
"loc": 14,
"nosec": 0
}
},
"results": []
}
[DEBUG] 1947.1139907836914 root:tool_runner - r2c.bandit completed in 1.244451 s (setup in 0.723399 s)
[DEBUG] 1947.981834411621 root:tool_runner - r2c.flask completed in 1.244981 s (setup in 0.724170 s)
[DEBUG] 1950.0596523284912 root:tool_runner - r2c.requests completed in 1.246922 s (setup in 0.722647 s)
[DEBUG] 1950.5150318145752 root:tool_runner - r2c.flake8 completed in 1.247777 s (setup in 0.722632 s)
[DEBUG] 2112.5078201293945 git.cmd:cmd - Popen(['git', 'version'], cwd=/Users/pabloestrada/sites/flask, universal_newlines=False, shell=None, istream=None)
[DEBUG] 2138.9808654785156 git.cmd:cmd - Popen(['git', 'version'], cwd=/Users/pabloestrada/sites/flask, universal_newlines=False, shell=None, istream=None)
[DEBUG] 2168.04575920105 git.cmd:cmd - Popen(['git', 'cat-file', '--batch-check'], cwd=/Users/pabloestrada/sites/flask, universal_newlines=False, shell=None, istream=<valid stream>)
[DEBUG] 2194.1919326782227 root:check - r2c.flask: 1 findings passed filter
[WARNING] 2196.5677738189697 root:util - 1 finding(s) in 1.35 s
[INFO] 2196.960687637329 root:decorators - check completed in 1.653122901916504 with exit code 2
[DEBUG] 2199.526786804199 urllib3.connectionpool:connectionpool - Starting new HTTPS connection (1): bento.r2c.dev:443
[DEBUG] 2205.610990524292 git.cmd:cmd - Popen(['git', 'cat-file', '--batch-check'], cwd=/Users/pabloestrada/sites/flask, universal_newlines=False, shell=None, istream=<valid stream>)
[DEBUG] 2241.436004638672 urllib3.connectionpool:connectionpool - Starting new HTTPS connection (1): bento.r2c.dev:443
[DEBUG] 2414.519786834717 urllib3.connectionpool:connectionpool - https://bento.r2c.dev:443 "POST /bento/api/v4/metrics/finding/ HTTP/1.1" 200 10
[DEBUG] 2443.708896636963 urllib3.connectionpool:connectionpool - https://bento.r2c.dev:443 "POST /bento/api/v4/metrics/ HTTP/1.1" 200 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment