lkmltools.linter.rules.otherrules package¶
Submodules¶
lkmltools.linter.rules.otherrules.no_orphans_rule module¶
- Authors:
Carl Anderson (carl.anderson@weightwatchers.com)
-
class
lkmltools.linter.rules.otherrules.no_orphans_rule.
NoOrphansRule
(config)¶ Bases:
lkmltools.linter.rule.Rule
Look for views unreferenced by any explores
-
finish_up
(file_out)¶ find the orphans, if any, and add results to file_out
- Parameters
file_out (list) – list of results for files
- Returns
file_out (list)
-
process_lookml
(lookml)¶ - process the JSON_DATA of a file, delegating down to the grapher
also store metadata we’ll need in a later stage
- Parameters
lookmlk (LookML) – instance of LookML
- Returns
nothing. side effect is to store data in grapher and in this class
-
run
(json_data)¶ run the rule
- Parameters
json_data (JSON) – json_data of the lkml-parsed JSON dictionary for this file
- Returns
tuple containing:
relevant (bool): is this rule relevant for this JSON chunk?
passed (bool): did the rule pass?
- Return type
(tuple)
-