Comments (3)
Hi @Priyankavl - Your attempt is pretty close. Liyad uses Javascript's type system as its foundation. Since LookML descriptions are strings, instead of comparing to true
, I would use expr_rule: ( !== ::match:description undefined ) ;;
I'll mark the ticket as resolved, but if the suggestion doesn't work for you, please let me know!
(Also, PS, I have a custom rule sandbox coming soon that will make it much easier to write and test custom rules)
from look-at-me-sideways.
I tried the below syntax, but I guess am missing something.
I did get errors for each explore, but on correcting them, the no. of errors did not reduce.
# rule: explore_description {
# description: "Explores must use description"
# match: "$.model.*.explore.*"
# expr_rule: ( === ::match:description true ) ;;
# }
from look-at-me-sideways.
Hi @Priyankavl - the new Rule Sandbox is live!
https://looker-open-source.github.io/look-at-me-sideways/tools/rule-sandbox/
Hopefully it is helpful for writing/testing custom rules
from look-at-me-sideways.
Related Issues (20)
- New explore rule? Maximum label lengths HOT 1
- Opt-in rules specified in manifest.lkml not being recognized (v3) HOT 3
- Discuss: Incremental linting beta HOT 2
- Run LAMS on just one file or a few files using source arg HOT 6
- New LAMS error: Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:readline/promises HOT 3
- Rule K7: Bad error message when no dimensions HOT 1
- New rule: Fields named `*_raw` should be hidden
- New rule: Assist with using correct "NOT NULL" filter value based on dimension type
- More concise exemption syntax
- Fix license info HOT 1
- Unable to use Ignore Command line argument for exempting multiple Folders from LAMS rules HOT 2
- Request to fix License name in package.json HOT 1
- New rule(s): warning against excessive numbers of certain objects (models?) that can cause perf issues HOT 5
- Missing expr_rule HOT 1
- Rule Sandbox's "About" page should still show v2 instructions HOT 1
- Unexpected behavior with lams-exemptions.ndjson HOT 4
- Backport fix for issue #123 to v2 HOT 1
- Unable to use Ignore Command line argument for exempting multiple Folders from LAMS rules
- Add option to built-in rules to enable v2's file-by-file behavior
- More convenient command-line arguments for manifest overrides/defaults HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from look-at-me-sideways.