uber / piranha

A tool for refactoring code related to feature flag APIs
Apache License 2.0
2.27k stars 190 forks source link

Rule not finding the code #696

Closed rajeshchinnam closed 1 week ago

rajeshchinnam commented 1 week ago

Hi

I have very simple rule

test_method_match = Rule( name="test_method_match", query='cs @Test void :[method_name]IfFeatureIsDisabled() { :[body] }', replace_node="*", replace="", is_seed_rule=True )

and expected to match the code

@Test void shouldGetRandomValueIfFeatureIsDisabled() { // Test code here }

but its not finding the same rule and code matching on https://comby.live/ can you please help me what could be the issue