diff --git a/.chronus/changes/pylintUpdates-2024-6-17-12-39-48.md b/.chronus/changes/pylintUpdates-2024-6-17-12-39-48.md new file mode 100644 index 0000000000..4c0d53cc64 --- /dev/null +++ b/.chronus/changes/pylintUpdates-2024-6-17-12-39-48.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@autorest/python" +--- + +Updating pylintrc rules \ No newline at end of file diff --git a/packages/autorest.python/pylintrc b/packages/autorest.python/pylintrc index 558c7fb6cf..9d0386db20 100644 --- a/packages/autorest.python/pylintrc +++ b/packages/autorest.python/pylintrc @@ -7,12 +7,16 @@ reports=no ignore=_generated,samples,examples,test,tests,doc,.tox,generated_samples [MESSAGES CONTROL] + +# Add enable for useless disables +enable=useless-suppression + # For all codes, run 'pylint --list-msgs' or go to 'https://pylint.readthedocs.io/en/latest/reference_guide/features.html' # locally-disabled: Warning locally suppressed using disable-msg # cyclic-import: because of https://github.com/PyCQA/pylint/issues/850 # too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods. # Let's black deal with bad-continuation -disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name +disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin [FORMAT] max-line-length=120