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

Allow specification of matcher for patterns in TOML config file #376

Open
zdenek-crha opened this issue Jan 3, 2024 · 1 comment
Open

Comments

@zdenek-crha
Copy link

Describe the bug

Some match/rewrite pairs only work well when specific matcher (language) is used.

Currently, the TOML config file does not allow setting matcher for pattern and it must be given on command line.

Reproducing

It makes re-using config files harder, as the required matcher parameter must be documented in the file, user must remember to check the file for correct parameters and use them.

Having to give -matcher flag on CLI forces the same matcher for all patterns in single TOML file, forcing user to split it if different matchers are needed for different patterns.

Expected behavior

Support for matcher field in TOML config file patterns

Additional context

There are other flags that may be required for pattern in TOML file to work, like the -omega flag.

@rvantonder
Copy link
Member

Hi, thanks for this, I'd say this is more of a feature request, I'll see what I can do :-)

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

No branches or pull requests

2 participants