Closed surge119 closed 2 months ago
Also, is there ever a case where
root
here wouldn't always bepath.parent
? Can we avoid the extra argument tovalidate_config
andvalidate_rules
, and just setroot = path.parent
at the top of the function?
Only because of testing. Since the tests use a temporary directory, using parent for them would cause them to fail. But I suppose the tests can create new rules to reference
Summary
The initial implementation would fail for overrides, since the path provided into
parse_rule
is the override path, instead of the path to the config file, which is expected.Test Plan
Included