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

Make configuration optional #40

Merged
merged 5 commits into from
Oct 13, 2021
Merged

Make configuration optional #40

merged 5 commits into from
Oct 13, 2021

Conversation

ericcornelissen
Copy link
Contributor

Closes #10
Relates to #25

Add a test for each of the SVGLint API functions to verify they work if
no config is provided - with the expected behaviour being the same as
that of providing the config `{}` explicitly.
Update the API so that the linting configuration is optional. Currently,
the config falls back to an empty object.
Update the SVGLint CLI to not require a configuration file. The
`getConfigurationFile` function was updated to output a special value
(`false`) if no configuration file is found. When the CLI, using this
function, detects there's no config file it will not try to read
(`require`) that file.
@ericcornelissen ericcornelissen marked this pull request as ready for review October 2, 2021 20:02
Update the CLI such that *if* a configuration file path is specified,
i.e. the `--config` option is used, then the configuration file must
exist. If it does not exist, the CLI will exist with a non-zero exit
code, after logging an error.

If `--config` is not used the CLI behaviour is unchanged.
@ericcornelissen ericcornelissen merged commit 9aee2df into simple-icons:master Oct 13, 2021
@ericcornelissen ericcornelissen deleted the optional-configuration branch October 13, 2021 20:51
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Optional configuration file
1 participant