Dead code

Is there a way to view all dead code for a solution? If not, is anyone working
on a plugin for this?

Thanks,
Drew


9 comments
Comment actions Permalink


Drew Burlingame wrote:

Is there a way to view all dead code for a solution? If not, is anyone
working on a plugin for this?


Hello Drew,

Take a look at Ran W's plugin. He posted the plugin in the openapi
newsgroup. It is called AccessibilityAnalyzer:

"Attached is a plugin that analayzes the accessibility of each property and
method of the current type.
Highlighted in pink, are the properties and methods which are unused within
the current solution.
Highlighted in blue , are the properties and methods which can use a lower
accessibility modifier.
For those highlighted properties and methods, a quick fix is also
avaliable."

Ciao,
Jens

--
http://www.jenswinter.com

0
Comment actions Permalink

Jens Winter schrieb:

Take a look at Ran W's plugin. He posted the plugin in the openapi
newsgroup. It is called AccessibilityAnalyzer:


Where did you see this, I can't find it... Could you please post a link?

TIA,
Alexander

0
Comment actions Permalink

Alexander Reifinger wrote:
>> Take a look at Ran W's plugin. He posted the plugin in the openapi
>> newsgroup. It is called AccessibilityAnalyzer:


Where did you see this, I can't find it... Could you please post a link?


Ran posted the message on May 13 2006 on the ReSharper Open API
newsgroup. It seems that there is no web access to this newsgroup. So I
can't provide a link for the post.

If you can't find it, drop me a line and I send you the plugin.

Ciao,
Jens

--
http://www.jenswinter.com

0
Comment actions Permalink

Jens Winter schrieb:

Alexander Reifinger wrote:

>>> Take a look at Ran W's plugin. He posted the plugin in the openapi
>>> newsgroup. It is called AccessibilityAnalyzer:
>>
>> Where did you see this, I can't find it... Could you please post a link?


Ran posted the message on May 13 2006 on the ReSharper Open API
newsgroup. It seems that there is no web access to this newsgroup. So I
can't provide a link for the post.

If you can't find it, drop me a line and I send you the plugin.


The article does not seem to be available any more.

I regret Jetbrains does not have a website listing available plugins for
R#, the openapi ng is quite deserted, too.

Pity.

Thanks anyway,
Alexander

0
Comment actions Permalink

Alexander,

Using OmeaReader, I was able to view download the plugin.

Here you go,

Drew

I've attached it for you.

Jens Winter schrieb:

>
>> Alexander Reifinger wrote:
>>
>>>> Take a look at Ran W's plugin. He posted the plugin in the openapi
>>>> newsgroup. It is called AccessibilityAnalyzer:
>>>>
>>> Where did you see this, I can't find it... Could you please post a
>>> link?
>>>
>> Ran posted the message on May 13 2006 on the ReSharper Open API
>> newsgroup. It seems that there is no web access to this newsgroup. So
>> I can't provide a link for the post.
>>
>> If you can't find it, drop me a line and I send you the plugin.
>>

The article does not seem to be available any more.

>

I regret Jetbrains does not have a website listing available plugins
for R#, the openapi ng is quite deserted, too.

>

Pity.

>

Thanks anyway,
Alexander


0
Comment actions Permalink

Has anyone been able to make this work? I am using build 260.
It shows up in the plugins dialog but I don't see any context menu.
Jeff

"Drew Burlingame" <drew.burlingame@parlano.com> wrote in message
news:7c6b12212e788c8a48e7bf1ff39@news.intellij.net...
Alexander,

Using OmeaReader, I was able to view download the plugin.

Here you go,

Drew

I've attached it for you.

Jens Winter schrieb:

>
>> Alexander Reifinger wrote:
>>
>>>> Take a look at Ran W's plugin. He posted the plugin in the openapi
>>>> newsgroup. It is called AccessibilityAnalyzer:
>>>>
>>> Where did you see this, I can't find it... Could you please post a
>>> link?
>>>
>> Ran posted the message on May 13 2006 on the ReSharper Open API
>> newsgroup. It seems that there is no web access to this newsgroup. So
>> I can't provide a link for the post.
>>
>> If you can't find it, drop me a line and I send you the plugin.
>>

The article does not seem to be available any more.

>

I regret Jetbrains does not have a website listing available plugins
for R#, the openapi ng is quite deserted, too.

>

Pity.

>

Thanks anyway,
Alexander



0
Comment actions Permalink

Jeff schrieb:

Has anyone been able to make this work? I am using build 260.
It shows up in the plugins dialog but I don't see any context menu.


Same here.

0
Comment actions Permalink

Right click anywhere in a code file and you should see "Analyze
Accessibility" at the bottom of the menu. The code seems to have a few bugs,
however. Positioning the cursor at EOF causes ReSharper to throw a
NullReferenceException and it claims overridden methods are unused even
though the overridden methods are called from the base class.

I didn't investigate this too deeply, but the code appears to search calls
to overridden methods within the source file, the project, and the solution,
but ignores calls from compiled assemblies other than System* assemblies.
See the code in AccessibilityAnalayzer.IsOverridingASystemFunction for the
test. I commented out the line

if(superMember.Member.Module.Name.StartsWith("System")

to resolve this issue, but I'm not certain this is actually the correct
thing to do here.


"Jeff" <jeffwalsh@hotmail.com> wrote in message
news:ee95gd$nla$1@is.intellij.net...

Has anyone been able to make this work? I am using build 260.
It shows up in the plugins dialog but I don't see any context menu.
Jeff

>

"Drew Burlingame" <drew.burlingame@parlano.com> wrote in message
news:7c6b12212e788c8a48e7bf1ff39@news.intellij.net...
Alexander,

>

Using OmeaReader, I was able to view download the plugin.

>

Here you go,

>

Drew

>

I've attached it for you.

>
>> Jens Winter schrieb:
>>
>>> Alexander Reifinger wrote:
>>>
>>>>> Take a look at Ran W's plugin. He posted the plugin in the openapi
>>>>> newsgroup. It is called AccessibilityAnalyzer:
>>>>>
>>>> Where did you see this, I can't find it... Could you please post a
>>>> link?
>>>>
>>> Ran posted the message on May 13 2006 on the ReSharper Open API
>>> newsgroup. It seems that there is no web access to this newsgroup. So
>>> I can't provide a link for the post.
>>>
>>> If you can't find it, drop me a line and I send you the plugin.
>>>
>> The article does not seem to be available any more.
>>
>> I regret Jetbrains does not have a website listing available plugins
>> for R#, the openapi ng is quite deserted, too.
>>
>> Pity.
>>
>> Thanks anyway,
>> Alexander
>



0
Comment actions Permalink

Lothan schrieb:

Right click anywhere in a code file and you should see "Analyze
Accessibility" at the bottom of the menu. The code seems to have a few bugs,


Nope, does not appear. But I tend to not use some anonymous piece of
code without documentation, description, updates or anything. So I
removed the plugin...

Thanks anyway,
Alexander

0

Please sign in to leave a comment.