update(rule_loader): deprecate all non-SemVer compatible values

Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
This commit is contained in:
Andrea Terzolo
2024-01-04 17:06:52 +01:00
committed by poiana
parent 2367d36867
commit 5ac005bd4d
3 changed files with 58 additions and 0 deletions

View File

@@ -368,6 +368,7 @@ static void read_item(
// Build proper semver representation
v.version = rule_loader::reader::get_implicit_engine_version(ver);
cfg.res->add_warning(falco::load_result::LOAD_DEPRECATED_ITEM, WARNING_ENGINE_VERSION_NOT_SEMVER, ctx);
}
catch(std::exception& e)
{