This Question is Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
2 Replies Last post: May 30, 2012 2:01 PM by Urs Meili  
Urs Meili Newbie 57 posts since
Nov 27, 2006
Currently Being Moderated

May 30, 2012 12:41 PM

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?

Andrey Serebryansky JetBrains 2,900 posts since
Jan 12, 2005
Currently Being Moderated
May 30, 2012 1:53 PM in response to: Urs Meili
Re: Ignore custom pattern

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!"

More Like This

  • Retrieving data ...