jdneo / vscode-checkstyle

Checkstyle extension for VS Code
https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-checkstyle
GNU Lesser General Public License v3.0
69 stars 16 forks source link

Add ability to have checkstyle configurations specified at the folder level #368

Open ItaloBorrelli opened 8 months ago

ItaloBorrelli commented 8 months ago

Although all the properties are allowed with "scope": "resource" a checkstyle configuration can't be provided at the folder level it seems. I would like to be able to have multiple checkstyles specified for a multi root osgi project with overrides available. I've provided an example repository here: https://github.com/ItaloBorrelli/checkstyle-example. Please comment for any clarification needed.

ItaloBorrelli commented 8 months ago

Having looked around at the repo the pattern I had in mind (and could implement myself for this project) is to

Let me know if you have any thoughts on this, or if you anticipate any issues with this.

jdneo commented 8 months ago

Looks good. One thing might be help. All the workspace root path should be available via JavaLanguageServerPlugin.getPreferencesManager().getPreferences().getRootPaths()