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

Exemption for custom rules #50

Closed
ajbosco opened this issue Nov 12, 2021 · 5 comments
Closed

Exemption for custom rules #50

ajbosco opened this issue Nov 12, 2021 · 5 comments

Comments

@ajbosco
Copy link

ajbosco commented Nov 12, 2021

Is it possible to set granular exemptions for custom rules? I tried something like this, but it didn't seem to work:

    # LAMS
    # rule_exemptions: {
    #  my_custom_rule: "2018-11-12 - I can't use datagroups for this super special reason and Bob said it's ok"
    # }
@fabio-looker
Copy link
Contributor

It should be... I'll double check this week

@fabio-looker
Copy link
Contributor

fabio-looker commented Nov 23, 2021

Hi @ajbosco - I tested this late last week, and you were right, there was not yet any support for exemption (granular or global) of custom rules.

I have added the ability to support granular exemptions (and inherited but not global) in the exempt-custom-rules branch.

You can see a test for the functionality here: https://github.com/looker-open-source/look-at-me-sideways/tree/exempt-custom-rules/__tests__/dummy-projects/09-exempt-custom-rules

Would you like to review this before I publish the update to NPM?

@ajbosco
Copy link
Author

ajbosco commented Nov 24, 2021

@fabio-looker Awesome. Looks good to me!

fabio-looker added a commit that referenced this issue Nov 24, 2021
Also factor out use of synchronous and flaky dot.process method in loading markdown templates which was causing sporadic test failures
@fabio-looker
Copy link
Contributor

Thanks! The new feature is in version 1.6+ on npm

@fabio-looker
Copy link
Contributor

Hi @ajbosco - Since I see you are using custom rules, I thought you might appreciate the new Rule Sandbox that helps with writing/testing custom rules:

https://looker-open-source.github.io/look-at-me-sideways/tools/rule-sandbox/

Hopefully it's helpful to you!

image

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