Is there a way to silence some warnings produced by sway compiler?

Warnings are super useful, but sometimes they become annoying, so there should be a way of muting some of them. Something like adding an annotation to a line of code that causes the warning.
Otherwise, at some point of time, when there are too many warnings, you’re risking of just ignoring them, which is bad.

Right now I have a bunch of warnings related to violation of the CEI pattern. Although I know they’re important, but sometimes you need to violate it and use some kind of reentrancy guard instead. An example for that: flash loans in Uniswap.

1 Like

Hey @mpoplavkov, sorry for the long delay in the response, I was busy with other priorities. I will have @rishabhkeshan look at it and help you out here. I appreciate your patience.

Hey @mpoplavkov are you talking about our allow attribute to silence some specific warnings?

Looks like what I need indeed, but where to find the full list of values I can pass to this attribute? For example, how do I mute the CEI pattern violation warnings?