diff --git a/.flake8 b/.flake8 index 6c594be8..b593cd7b 100644 --- a/.flake8 +++ b/.flake8 @@ -7,6 +7,7 @@ ignore = F401, F811, C901, + W503, W504 exclude = diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..869fdfe2 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,41 @@ + + +## Security + +Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). + +If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below. + +## Reporting Security Issues + +**Please do not report security vulnerabilities through public GitHub issues.** + +Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report). + +If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey). + +You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). + +Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: + + * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) + * Full paths of source file(s) related to the manifestation of the issue + * The location of the affected source code (tag/branch/commit or direct URL) + * Any special configuration required to reproduce the issue + * Step-by-step instructions to reproduce the issue + * Proof-of-concept or exploit code (if possible) + * Impact of the issue, including how an attacker might exploit the issue + +This information will help us triage your report more quickly. + +If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs. + +## Preferred Languages + +We prefer all communications to be in English. + +## Policy + +Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd). + + diff --git a/azdev/config/cli.flake8 b/azdev/config/cli.flake8 index 787ed664..6073cde0 100644 --- a/azdev/config/cli.flake8 +++ b/azdev/config/cli.flake8 @@ -12,6 +12,8 @@ ignore = F811, # code flow is too complex, too many violations, to be removed in the future C901, + # line break before binary operator + W503, # line break after binary operator effect on readability is subjective W504 exclude = diff --git a/azdev/config/cli_pylintrc b/azdev/config/cli_pylintrc index 79248057..3146cea0 100644 --- a/azdev/config/cli_pylintrc +++ b/azdev/config/cli_pylintrc @@ -50,13 +50,13 @@ min-similarity-lines=10 # The invalid-name checker must be **enabled** for these hints to be used. include-naming-hint=yes -module-name-hint=lowercase (keep short; underscores are discouraged) -const-name-hint=UPPER_CASE_WITH_UNDERSCORES -class-name-hint=CapitalizedWords -class-attribute-name-hint=lower_case_with_underscores -attr-name-hint=lower_case_with_underscores -method-name-hint=lower_case_with_underscores -function-name-hint=lower_case_with_underscores -argument-name-hint=lower_case_with_underscores -variable-name-hint=lower_case_with_underscores -inlinevar-name-hint=lower_case_with_underscores (short is OK) +module-naming-style=snake_case +const-naming-style=UPPER_CASE +class-naming-style=PascalCase +class-attribute-naming-style=snake_case +attr-naming-style=snake_case +method-naming-style=snake_case +function-naming-style=snake_case +argument-naming-style=snake_case +variable-naming-style=snake_case +inlinevar-naming-style=snake_case diff --git a/azdev/config/ext.flake8 b/azdev/config/ext.flake8 index 6b485739..947c734f 100644 --- a/azdev/config/ext.flake8 +++ b/azdev/config/ext.flake8 @@ -12,6 +12,8 @@ ignore = F811, # code flow is too complex, too many violations, to be removed in the future C901, + # line break before binary operator + W503, # line break after binary operator effect on readability is subjective W504 exclude = diff --git a/azdev/config/ext_pylintrc b/azdev/config/ext_pylintrc index eae46315..8f9832e5 100644 --- a/azdev/config/ext_pylintrc +++ b/azdev/config/ext_pylintrc @@ -45,13 +45,14 @@ min-similarity-lines=10 # The invalid-name checker must be **enabled** for these hints to be used. include-naming-hint=yes -module-name-hint=lowercase (keep short; underscores are discouraged) -const-name-hint=UPPER_CASE_WITH_UNDERSCORES -class-name-hint=CapitalizedWords -class-attribute-name-hint=lower_case_with_underscores -attr-name-hint=lower_case_with_underscores -method-name-hint=lower_case_with_underscores -function-name-hint=lower_case_with_underscores -argument-name-hint=lower_case_with_underscores -variable-name-hint=lower_case_with_underscores -inlinevar-name-hint=lower_case_with_underscores (short is OK) +module-naming-style=snake_case +const-naming-style=UPPER_CASE +class-naming-style=PascalCase +class-attribute-naming-style=snake_case +attr-naming-style=snake_case +method-naming-style=snake_case +function-naming-style=snake_case +argument-naming-style=snake_case +variable-naming-style=snake_case +inlinevar-naming-style=snake_case + diff --git a/setup.py b/setup.py index 8e97798a..240232d7 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ 'gitpython', 'jinja2', 'knack', - 'pylint==2.16.1', + 'pylint==2.17.0', 'pytest-xdist', # depends on pytest-forked 'pytest-forked', 'pytest>=5.0.0',