mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 03:49:36 +00:00
Make additional improvements to display relevant context when validating files. This handles cases where a macro/rule overwrites a prior rule. - Instead of saving the index into the array of lines for each rule, save the rule yaml itself, as a property 'context' for each object. - When appending rules, the context of the base macro/rule and the context of the appended rule/macro are concatenated. - New functions get_orig_yaml_obj, build_error, and build_error_with_context handle building the error string. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>