Skip to content

Solhint: separate config for /test/ /script/ etc #488

@filmakarov

Description

@filmakarov

Solhint allows having several configs for different folders of the same project (not speaking of monorepos here).

The most common use case for this is having relaxed rules for the test folder.

However, Solidity extension doesn't pickup the subdir configs. It leads to the issue that CLI linter is fine, while IDE visual linter produces multiple warnings and errors for the test files.

Potential solutions, in order of preference:

  1. allow extension to handle subdir configs
  2. introduce solidity.solhintIgnore setting, so I can ignore test folder for visual linting
  3. allow rules configured in the solidity.solhintRules setting to have priority on the .solhint.json rules. this will allow ignoring some rules at least visually and have less visual noise

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