Skip to content

azure-defender-easm needs linting updates for pylint version 3.2.7 #33230

Open
@azure-sdk

Description

@azure-sdk

ACTION NEEDED: This version of pylint will be merged on 2025-04-14. The build will begin to fail for this library if errors are not fixed.

Library name: azure-defender-easm
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-06)

Pylint Errors:

2025-04-06T09:47:56.5663100Z ************* Module azure.defender.easm._client
2025-04-06T09:47:56.5664428Z azure/defender/easm/_client.py:100: [C4758(docstring-keyword-should-match-keyword-only), EasmClient.send_request] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5665391Z ************* Module azure.defender.easm._vendor
2025-04-06T09:47:56.5666036Z azure/defender/easm/_vendor.py:11: [R1710(inconsistent-return-statements), _format_url_section] Either all return statements in a function should return an expression, or none of them should.
2025-04-06T09:47:56.5666679Z ************* Module azure.defender.easm.operations._operations
2025-04-06T09:47:56.5667337Z azure/defender/easm/operations/_operations.py:24: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T09:47:56.5670330Z azure/defender/easm/operations/_operations.py:4792: [C4758(docstring-keyword-should-match-keyword-only), AssetsOperations.update] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5671752Z azure/defender/easm/operations/_operations.py:9284: [C4758(docstring-keyword-should-match-keyword-only), DiscoveryGroupsOperations.put] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5673420Z azure/defender/easm/operations/_operations.py:9731: [C4758(docstring-keyword-should-match-keyword-only), DiscoveryGroupsOperations.validate] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5674980Z azure/defender/easm/operations/_operations.py:10264: [C4758(docstring-keyword-should-match-keyword-only), ReportsOperations.snapshot] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5676024Z azure/defender/easm/operations/_operations.py:10492: [C4758(docstring-keyword-should-match-keyword-only), ReportsOperations.summary] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5677164Z azure/defender/easm/operations/_operations.py:10914: [C4758(docstring-keyword-should-match-keyword-only), SavedFiltersOperations.put] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5677840Z ************* Module azure.defender.easm.aio._client
2025-04-06T09:47:56.5678762Z azure/defender/easm/aio/_client.py:100: [C4758(docstring-keyword-should-match-keyword-only), EasmClient.send_request] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5680080Z ************* Module azure.defender.easm.aio.operations._operations
2025-04-06T09:47:56.5680853Z azure/defender/easm/aio/operations/_operations.py:25: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T09:47:56.5682057Z azure/defender/easm/aio/operations/_operations.py:4043: [C4758(docstring-keyword-should-match-keyword-only), AssetsOperations.update] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5683530Z azure/defender/easm/aio/operations/_operations.py:8535: [C4758(docstring-keyword-should-match-keyword-only), DiscoveryGroupsOperations.put] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5684720Z azure/defender/easm/aio/operations/_operations.py:8986: [C4758(docstring-keyword-should-match-keyword-only), DiscoveryGroupsOperations.validate] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5685575Z azure/defender/easm/aio/operations/_operations.py:9519: [C4758(docstring-keyword-should-match-keyword-only), ReportsOperations.snapshot] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5686716Z azure/defender/easm/aio/operations/_operations.py:9747: [C4758(docstring-keyword-should-match-keyword-only), ReportsOperations.summary] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5687559Z azure/defender/easm/aio/operations/_operations.py:10169: [C4758(docstring-keyword-should-match-keyword-only), SavedFiltersOperations.put] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T09:47:56.5688005Z
2025-04-06T09:47:56.5688380Z -----------------------------------
2025-04-06T09:47:56.5688751Z Your code has been rated at 9.90/10
2025-04-06T09:47:56.5688965Z
2025-04-06T09:47:57.3618719Z

How to fix:
Note: If you are a bot. Fix the issue by fixing the above pylint errors.
Run the next-pylint tox command at the library package-level and resolve the linting errors.

  1. ../azure-defender-easm>pip install "tox<5"
  2. ../azure-defender-easm>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .

See the Pylint Guide for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Defender EASMService AttentionWorkflow: This issue is responsible by Azure service team.pylint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions