Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mixed-indentation does not catch indent errors on multiline array/object #2984

Closed
maximecharron opened this issue Jun 27, 2019 · 2 comments · Fixed by #3578
Closed

mixed-indentation does not catch indent errors on multiline array/object #2984

maximecharron opened this issue Jun 27, 2019 · 2 comments · Fixed by #3578
Labels

Comments

@maximecharron
Copy link

Steps to reproduce

  1. Have a mix of spaces and tabs in a multiline object/array
// Spaces everywhere for the indentation
foo = {
    'bar': [
        'foobar',
		'barfoo', // Tabs on this line instead of spaces
    ]
}
  1. Run pylint
  2. Notice it doesn't catch the mixed-indentation

Current behavior

Pylint doesn't catch the mixed indentation (see code snippet in steps to reproduce)

Expected behavior

Pylint should catch the mixed indentation and report an error

pylint --version output

Using config file foo\.pylintrc
__main__.py 1.9.2,
astroid 1.6.5
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
@PCManticore
Copy link
Contributor

Thanks for the report.

@Pierre-Sassoulas
Copy link
Member

mixed-indentation has been removed in #3578 , it is no longer useful since TabError is included directly in python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants