RSPR-233912 closed, but i have the problem in current build (2113)

The issue RSRP-233912 was closed because it can' t reproduced by you. I've installed build 2113 this morning and the problem lasts for me. I have mentioned this issue in the following thread

How to surpress warnings from R# code analysis

The problem is, that i did not get the option to supress the warning via an attribute in the Quickfix popup as it was in 5.x. Please reopen the issue.

Regards
Klaus

3 comments

Here is an example screenshot that shows what i mean:

Sample.jpg
I'm missing the option "Surpress warning..." as it was in R# 5.x in the Quickfix popup

Regards
Klaus

0

Hello Klaus,

Do I understand correctly that the problem is twofold:
1. The warning is incorrect
2. The warning cannot be suppressed

Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Here is an example screenshot that shows what i mean:

Image:Sample.jpg I'm missing the option "Surpress warning..." as it
was in R# 5.x in the Quickfix popup

Regards
Klaus
---
Original message URL:
http://devnet.jetbrains.net/message/5298362#5298362



0

Hello Andrey,

the warning is correct in principle, but not in the code context. Here is the complete piece of code:

Dim commodityCount = mCommodity.GetMaxPos() - 1
          If (commodityCount >= 0) Then
               mCommodities.Clear()
               mCommodity.ReadFirst()
               For n As Integer = 0 To commodityCount
                    mCommodities.Add(New Commodity(mCommodity.miComNr, mCommodity.msName.Trim(), False))
                    mCommodity.ReadNext1()
               Next n
          End If

The mCommodity instance is a wrapper around a legacy object written in C++ which implements a data access layer in a database oriented way (tables and records). I have to code a For loop to iterate through the records (can't use foreach because IEnumerable is not implemented) but never use the iteration variable inside the loop.

R# 5.x had a quickfix to surpress the warning only for a special occurence either via a special comment or an attribute (i can't remember and have no 5.x installation to check this). This quickfix i'm missing.

Regards
Klaus

0

Please sign in to leave a comment.