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

Overriding check config from plan #46

Open
pun-ky opened this issue Dec 4, 2019 · 2 comments
Open

Overriding check config from plan #46

pun-ky opened this issue Dec 4, 2019 · 2 comments

Comments

@pun-ky
Copy link
Collaborator

pun-ky commented Dec 4, 2019

is there any way to override particular check config via plan JSON?

e.g I want to use oakpal basic checklist with one exception, with allowing subpackages inside.
how to do that?

I mean... http://adamcin.net/oakpal/oakpal-core/the-basic-checklist.html

@adamcin
Copy link
Owner

adamcin commented Dec 4, 2019

@pun-ky yes, it should be possible to override specific configs. You should define a child of .checks[] with a .name property that matches the [[{moduleName}/]{checklist}/]{checkName} of the check you wish to override, an empty .impl property, and a .config object with key/value pairs to add/override wrt to the overridden check config.

Per your example:

    {
      "name": "basic/subpackages",
      "config": {
        "denyAll": false
      }

You can also use the override to completely skip the check:

    {
      "name": "basic/subpackages",
      "skip": true
    }

@pun-ky
Copy link
Collaborator Author

pun-ky commented Dec 5, 2019

Cool. Thanks for explanation. Is such info available in docs?

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