Ignore custom pattern

Hello,
I'm using R# 7.0 EAP, but the question concerns other versions as well, I think.
I wrote a warning pattern which warns my fellow programmes that they should not update a certain property in a class directly, but use an appropriate method.

This works fine. However, in the method mentioned above, I do actually update this property. The warning now also shows up in this method, and there seems to be no way to say "ignore this warning by inserting #pragma xxx", as it is with other warnings. This means the warning stays there forever, and people looking at my method always think that the code there is "unclean".

Is there any way to solve this problem?

2 comments
Comment actions Permalink

Hello Urs
     I'm afraid at the moment there's no way to ignore an occurrence of a pattern. You're welcome to put a feature request through http://youtrack.jetbrains.net/issues/RSRP. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.