Skip to content

# noqa style ignores for linter #49

Description

@thedodd

It would be great if we could customize SPIDE to ignore linter errors on lines, or per module, if it detects comments matching a certain regex.

For example, flake8 will ignore modules having # flake8: noqa in the module, or a line having # noqa on it.

Does anything like this currently exist in SPIDE?

Activity

  1. asfaltboy commented on Feb 26, 2014

    @asfaltboy
    Contributor

    👍

    The way I'd go about implementing this is by adding "optional" flake8 support and adding it in the server/linter.py module similarly to the pyflakes_check and pep8_check functions.

    The condition in do_linting function would check whether to use flake8 or the current pep8 and pyflakes linters.

    Feel free to submit a pull request if you're interested in this.

  2. JulianEberius commented on Mar 9, 2014

    @JulianEberius
    Owner

    At the moment, the only functionality is to disable/enable PEP8 checks on a per-view basis (new commands were just merged to master).

    As asfaltboy said, pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions