-
-
Notifications
You must be signed in to change notification settings - Fork 18
Support multiple configs for different languages in the same context #63
Comments
I am currently working on the topic as well. Expect a pull request soon =) |
This isn't true. You can:
|
Thanks for the fast reply 👍 Does this approach work with a global Are |
The second approach wouldn't work as we want to have one repository holding style guidelines for all projects and therefor if possible no |
If you use option 1, it doesn't matter where the configuration file is located. You don't need to use wildcards; you're writing a pattern to match against certain file paths, not find them. |
Still created the pull request with how I tackled the issue. If you have the time, have a look for reference, at least. =) |
Multiple Configs
The issue at our company CONTACT Software is that we want to use the vale-vscode extension to help our developers and other less technical staff in writing good documentation. Depending on the project this has to be done in different languages, sometime multiple in the same project.
Our documentation is written in rst files and only the path to the file provides information about the language the file is in. For internal reasons we currently have to use the valeCLI approach at our company.
The current approach allows for only one config to be referenced and therefore only one language to be used.
The solution we are looking for is a way to provide e.g. patterns for selecting different vale config files (vale.ini files).
doc/example_book/en/src/foo.rst
.../vale/vale_en.ini
**/doc/*/en/**/*.rst
doc/example_book2/en/src/foo.rst
.../vale/vale_en.ini
**/doc/*/en/**/*.rst
doc/example_book/de/src/foo.rst
.../vale/vale_de.ini
**/doc/*/de/**/*.rst
doc/example_book2/de/src/foo.rst
.../vale/vale_de.ini
**/doc/*/de/**/*.rst
doc/example_book2/de/src/bar/foo.rst
.../vale/vale_de.ini
**/doc/*/de/**/*.rst
Additionally
Additionally we would like the extension to allow vale checks even on single opened files (not as part of a workspace or folder) as some developers will use vscode only for writing documentation and some other IDE for coding, this will make it easier for less technical staff to jump into writing the documentation as well.
The text was updated successfully, but these errors were encountered: