Prevent specific vars/comments from being edited by composer?

I have a score calculation for determining a match, based on store name, address, distance… and the unit test failed to match within a range, so composer decided to adjust the weights to match the unit test score.

it does a very good job of never really messing with vars in unit tests (for good reason), as its supposed to fix the function not the test… i’ve also tried leaving comments for various things that are important to note, and had cursor wipe them out… which is a bummer…

like a #!important abovethe var or comment?

super_important_weight = 0.8 # hands off composer!

here’s ss of what it did tho

Yes, love touching things you don’t ask to. You’ll have to be more specific about what you do/don’t want to touch.

You may find that that adding some Rules for the AI will help here, as you can tell it not to change comments, and enforce any other behaviour you want it to conform with

1 Like