You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to run the SARIF formatter on our CI but don't want to configure it by default for everyone running the linter itself on their development machines. I know I can create a config, extend the original config in it and override it with the --config parameter, but that requires all repositories using our shared pipeline to have the same markdownlint-cli2 config file name.
Instead I'd like to be able to configure a formatter as a CLI parameter or being able to override the base config and let markdownlint-cli2 resolve the repo config on its own. Ideally the configuration in the repository should be set up for developers to allow easy onboarding.
Not sure how this could work with the current configuration/CLI setup, so I don't really have a helpful suggestion, just my feature request. Feel free to just close this if it isn't in scope for the project or not helpful.
The text was updated successfully, but these errors were encountered:
If I understand your scenario correctly, you should be able to have your pipeline make the relevant configuration file update to add the SARIF output formatter. While that will create a diff for the repository during the CI run, it will be deleted as soon as it's done anyway. Or you could revert the change in your pipeline after linting.
Another option is to use JavaScript for the configuration file and then determine at runtime whether or not to include the SARIF formatter based on whether code was running in the context of CI or not.
I'd like to run the SARIF formatter on our CI but don't want to configure it by default for everyone running the linter itself on their development machines. I know I can create a config, extend the original config in it and override it with the
--config
parameter, but that requires all repositories using our shared pipeline to have the same markdownlint-cli2 config file name.Instead I'd like to be able to configure a formatter as a CLI parameter or being able to override the base config and let markdownlint-cli2 resolve the repo config on its own. Ideally the configuration in the repository should be set up for developers to allow easy onboarding.
Not sure how this could work with the current configuration/CLI setup, so I don't really have a helpful suggestion, just my feature request. Feel free to just close this if it isn't in scope for the project or not helpful.
The text was updated successfully, but these errors were encountered: