Commit Graph
23 Commits
Author SHA1 Message Date
kevin zhao ceea9075ea docstrings and other cleanup 2025-11-13 22:07:44 -05:00
kevin zhao 3162a77e2a remove fragile test 2025-11-13 22:07:44 -05:00
kevin zhao 842d6adb59 refactor to test positive matches 2025-11-13 22:07:44 -05:00
kevin zhao e51178cb27 consolidate new() and parse() in PolicyParser 2025-11-13 22:07:44 -05:00
kevin zhao ad55ca629c refactor: using deep assertions instead of expect tests; removed Display impls 2025-11-13 22:07:43 -05:00
kevin zhao b751be9156 cleanup and prettify 2025-11-13 22:07:43 -05:00
kevin zhao d3aafb93f3 feat: tokenizing whole strings in match and not_match 2025-11-13 22:07:42 -05:00
kevin zhao 94e8d4e0ae .policy -> .codexpolicy 2025-11-13 22:07:42 -05:00
kevin zhao 1743981ee5 evaluation -> check 2025-11-13 22:07:41 -05:00
kevin zhao b323a9248d updating basic.rs to have a less obvious not match 2025-11-13 22:07:41 -05:00
kevin zhao 7681b325fe basic.rs: using expect tests 2025-11-13 22:07:41 -05:00
kevin zhao 2217cb05ee fix lint 2025-11-13 22:07:41 -05:00
kevin zhao 755331425e refactor: implementing rule traits, rulematch enum 2025-11-13 22:07:41 -05:00
kevin zhao 7737444356 clippy 2025-11-13 22:07:39 -05:00
kevin zhao 687a8c38ff introduce variant typing to policy result 2025-11-13 22:07:38 -05:00
kevin zhao 0bac9939af better default policy + lint 2025-11-13 22:07:38 -05:00
kevin zhao bf716081fc clean up test 2025-11-13 22:07:38 -05:00
kevin zhao 55e49a8016 remove extraneous test 2025-11-13 22:07:37 -05:00
kevin zhao 64e786caad simplify 2025-11-13 22:07:37 -05:00
kevin zhao 7e79c4dc5b refactor rules so no more cartesian product 2025-11-13 22:07:37 -05:00
kevin zhao eea9bff1fb remove tokenize_command use cases 2025-11-13 22:07:37 -05:00
kevin zhao 71ea7edca4 update shape of RuleMatch and Evaluation 2025-11-13 22:07:37 -05:00
kevin zhao 773177ec8b first pass at prefix rules 2025-11-13 22:07:37 -05:00