Skip to content

Linter: Make it possible to configure linter rules in the config file on per folder basis #354

Description

@gikari

Our project has a unit testing directory, where tests are calling private functions (they start with _). For tests code the linter reports errors, that the private functions are called, but for our project we want to ignore them.

There only way to configure the linter I found from the docs is with comments and cli args, which is not scalable for the team or the whole bunch of unit tests files with hundreds of calls.

Activity

  1. changed the title [-]Make it possible to configure linter rules in the config file on per folder basis[/-] [+]Linter: Make it possible to configure linter rules in the config file on per folder basis[/+] on Sep 14, 2026
  2. NathanLovato commented on Sep 14, 2026

    @NathanLovato
    Contributor

    Would editor config support, similar to how the formatter itself is configured, be a good solution for your team? There's a stub for configuring the linter from editorconfig files, although it's minimal: it's limited to the max line length at the moment. It can be extended to add custom fields for toggling rules.

  3. gikari commented on Sep 14, 2026

    @gikari
    Author

    Yes, this is acceptable 👍

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions