File tree Expand file tree Collapse file tree
tools/azure-sdk-tools/linting_tools/lint_test_bench/test_files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ deps =
117117 PyGitHub>=1.59.0
118118commands =
119119 python -m pip install pylint =={[testenv:next-pylint]pylint_version}
120- python -m pip install azure-pylint-guidelines-checker ==0.5.2 -- index-url = " https://pkgs.dev.azure.com /azure-sdk/public/_packaging /azure-sdk-for-python/pypi/simple/ "
120+ python -m pip install {repository_root}/.. /azure-sdk-tools/tools/pylint-extensions /azure-pylint-guidelines-checker -e .
121121 python {repository_root}/eng/tox/create_package_and_install.py \
122122 -d {envtmpdir}/dist \
123123 -p {tox_root} \
Original file line number Diff line number Diff line change 1+ # --------------------------------------------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # Licensed under the MIT License. See License.txt in the project root for license information.
4+ # --------------------------------------------------------------------------------------------
5+ import logging
6+
7+ # This code violates do-not-log-exceptions-if-not-debug
8+
9+ try :
10+ a = "this is doing something here"
11+ except TypeError as e :
12+ logging .info (
13+ "This is a TypeError: %s" ,
14+ e ,
15+ )
16+
17+
Original file line number Diff line number Diff line change 1+ # --------------------------------------------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # Licensed under the MIT License. See License.txt in the project root for license information.
4+ # --------------------------------------------------------------------------------------------
5+ import logging
6+
7+ # This code violates do-not-log-raised-errors
8+
9+ try :
10+ a = "this is doing something here"
11+ except TypeError as e :
12+ logging .debug (
13+ "This is a TypeError: %s" ,
14+ e ,
15+ )
16+ raise e
17+
You can’t perform that action at this time.
0 commit comments