Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rule: Fix pointless issue when using with (#907)
Fixes #904 I find the times to be comparable for the regal bundle + a simple violating file. ```sh regal $ go build && time ./regal lint . --disable-all --enable=pointless-r eassignment Rule: pointless-reassignment Description: Pointless reassignment of variable Category: style Location: thing.rego:10:6 Text: foo := e with foo as 2 Documentation: https://docs.styra.com/regal/rules/style/pointless-reassignment 201 files linted. 1 violation found in 1 file. real 0m1.906s user 0m6.344s sys 0m0.244s [3]regal $ bran Current: main Switched to branch 'pointless' Your branch is ahead of 'main' by 1 commit. (use "git push" to publish your local commits) regal $ go build && time ./regal lint . --disable-all --enable=pointless-reassignment 201 files linted. No violations found. real 0m1.580s user 0m2.930s sys 0m0.109s ``` Signed-off-by: Charlie Egan <charlie@styra.com>
- Loading branch information