Add option to add lint configurations #88
Labels
A-api
Area: Stable API
A-marker-adapter
Area: Adapter
C-enhancement
Category: New feature or request
Some lint crates might want to provide the user with configurations to enable/disable certain behavior. Clippy, has a few lints that use configurations specifically for this.
Marker should provide a common and simple way to add configuration values to a lint and loaded them from file. This unifies lint crate behavior and makes it more conformable to the user. Additionally, it allows marker to include the configuration in the lint documentation.
Configurations could be implemented using a
marker.toml
file in the workspace root directory, like Clippy does with itsclippy.toml
. Each crate could then have its own section, similar to this:Some multilingual projects don't use cargo, but interact with the driver directly. The configuration should therefore be loaded by the driver. The best option is probably to move this into
marker_adapter
.The text was updated successfully, but these errors were encountered: