This is a mirror of official site: http://jasper-net.blogspot.com/

Use it or lose it, part deux [New Delay.FxCop code analysis rule helps identify uncalled public or private methods and properties in a .NET assembly]

| Sunday, July 17, 2011
Previous posts introduced the Delay.FxCop custom code analysis assembly and demonstrated the benefits of automated code analysis for easily identifying problem areas in an assembly. The Delay.FxCop project included two rules, DF1000: Check spelling of all string literals and DF1001: Resources should be referenced - today I'm introducing another! The new rule follows in the footsteps of DF1001 by identifying unused parts of an assembly that can be removed to save space and reduce complexity. But while DF1001 operated on resources, today's DF1002: Uncalled methods should be removed analyzes the methods and properties of an assembly to help find those stale bits of code that aren't being used any more.

    Note: If this functionality seems familiar, it's because CA1811: Avoid uncalled private code is one of the standard FxCop rules. I've always been a big fan of CA1811, but frequently wished it could look beyond just private code to consider all code. Of course, limiting the scope of the "in-box" rule makes perfect sense from an FxCop point of view: you don't want the default rules to be noisy or else they'll get turned off and ignored. But the Delay.FxCop assembly isn't subject to the same restrictions, so I thought it would be neat to experiment with an implementation that analyzed all of an assembly's code.

    Further note: One of the downsides of this increased scope is that DF1002 can't distinguish between methods that are part of a library's public API and those that are accidentally unused. As far as DF1002 is concerned, they're both examples of code that's not called from within the assembly. Therefore, running this rule on a library involves some extra overhead to suppress the warnings for public APIs. If it's just a little extra work, maybe it's still worthwhile - but if it's overwhelming, you can always disable DF1002 for library assemblies and restrict it to applications where it's more relevant.

 

Implementation-wise, DF1002: Uncalled methods should be removed isn't all that different from its predecessors - in fact, it extends and reuses the same assembly node enumeration helper introduced with DF1001. During analysis, every method of the assembly is visited and if it isn't "used" (more on this in a moment), a code analysis warning is output:

DF1002 : Performance : The method 'SilverlightApplication.MainPage.UnusedPublicMethod' does not appear to be used in code.

Of course, these warnings can be suppressed in the usual manner:

[assembly: SuppressMessage("Usage", "DF1001:ResourcesShouldBeReferenced",
           MessageId = "app.xaml", Scope = "resource", Target = "SilverlightApplication.g.resources",
           Justification = "Loaded by Silverlight for App.xaml.")]


Read more: Delay's Blog
QR: use-it-or-lose-it-part-deux-new-delay-fxcop-code-analysis-rule-helps-identify-uncalled-public-or-private-methods-and-properties-in-a-net-assembly.aspx

Posted via email from Jasper-net

196 comments:

Anonymous said...

generic tramadol cheap 100mg tramadol - 100mg tramadol lot

Anonymous said...

buy cheap ativan ativan urban dictionary - ativan erowid

Anonymous said...

tramadol online buy tramadol with american express - buy tramadol online no prescription needed

Anonymous said...

buy tramadol cod next day delivery tramadol for dogs anti inflammatory - buy tramadol usa next day delivery

Anonymous said...

buy tramadol cod fedex buy tramadol free shipping - ultram 50 mg online

Anonymous said...

tramadol online tramadol er - tramadol hcl 50 mg addiction

Anonymous said...

buy tramadol free shipping tramadol dosage 12 pound dog - tramadol contraindications

Anonymous said...

tramadol online tramadol ketorolaco - tramadol no prescription free shipping

Anonymous said...

ambien for sale no prescription ambien cr 12.5mg coupon - generic ambien dosage

Anonymous said...

clonazepam drug klonopin generalized anxiety disorder gad ratings - klonopin reviews

Anonymous said...

buy tramadol online tramadol generic - can you buy tramadol in greece

Anonymous said...

can you buy tramadol online legally ways get high tramadol - how to buy tramadol online

Anonymous said...

clonazepam without prescription klonopin withdrawal crying - buy klonopin online overnight

Anonymous said...

buy tramadol cod tramadol 50mg good high - tramadol dosage recreational use

Anonymous said...

buy zolpidem online dosage of ambien cr - high ambien videos

Anonymous said...

generic ativan ativan anxiety - ativan withdrawal side effects how long

Anonymous said...

generic ambien ambien cost cvs - buy ambien with mastercard

Anonymous said...

buy tramadol with cod tramadol 93 58 dosage - order tramadol eu

Anonymous said...

buy ambien online ambien cr images - 2 ambien and alcohol

Anonymous said...

buy klonopin online no prescription klonopin side effects women - klonopin for depression

Anonymous said...

soma online soma bras location - soma generic fedex no prescription

Anonymous said...

tramadol cheap tramadol online pharmacy usa - generic tramadol

Anonymous said...

soma buy buy soma ship to texas - soma 500mg

Anonymous said...

clonazepam drug klonopin for anxiety as needed - klonopin withdrawal relapse

Anonymous said...

zolpidem drug ambien dosage 15 - ambien side effects liver damage

Anonymous said...

buy cheap ambien ambien side effects bad taste mouth - discount ambien online

Anonymous said...

order tramadol online overnight tramadol 50mg like - tramadol high lasts

Anonymous said...

buy klonopin online klonopin usual dosage - klonopin withdrawal clonidine

Anonymous said...

buy tramadol next day 100mg of tramadol high - tramadol order online tramadol 50mg

Anonymous said...

tramadol online tramadol 50mg dogs humans - tramadol dosage paracetamol

Anonymous said...

buy tramadol cod online 250mg tramadol high - tramadol hcl 50mg for dogs

Anonymous said...

buy tramadol without prescriptions tramadol hcl 100 - tramadol street value

Anonymous said...

viagra online buy now viagra cialis spam - viagra online deutschland

Anonymous said...

buy soma online soma 350 pills - soma intimates online store

Anonymous said...

buy ambien online no prescription buy generic ambien canada - ambien side effects overdose

Anonymous said...

buy generic viagra cheap order viagra in australia - viagra online 150 mg

Anonymous said...

tramadol 50mg buy tramadol bluelight - tramadol hcl er

Anonymous said...

generic ambien generic ambien 93 73 - ambien cr kidneys

Anonymous said...

buy tramadol no prescription buy tramadol ship to florida - tramadol manufacturer

Anonymous said...

carisoprodol soma soma muscle relaxant - order soma online texas

Anonymous said...

buy soma online generic soma 350 - soma images generic

Anonymous said...

buy viagra online viagra buy - can i buy viagra in manila

Anonymous said...

order ambien online pill report ambien - what is ambien prescribed for

Anonymous said...

buy tramadol online tramadol hcl powder - purchase tramadol cod

Anonymous said...

buy ambien online ambien zolpidem same - ambience mall gurgaon theatres

Anonymous said...

generic ambien buy ambien from india - ambien overdose emedicine

Anonymous said...

buy brand viagra online best online pharmacy viagra cialis - buy viagra online mastercard

Anonymous said...

soma online buy soma online with credit card - soma san diego 2010

Anonymous said...

klonopin online klonopin 6 weeks - klonopin lethal dose

Anonymous said...

purchase soma soma generic fedex no prescription - soma promotion code

Anonymous said...

ambien cost ambien side effects nih - zolpidem tartrate generic ambien cr

Anonymous said...

viagra for sale viagra what dosage is recommended - viagra buy uk

Anonymous said...

order viagra with mastercard buy viagra online with laser card - cheap generic viagra 50mg

Anonymous said...

where to order viagra viagra dosage strengths - how to purchase viagra in canada

Anonymous said...

cialis professional buy 36 hour cialis online - cialis quit working

Anonymous said...

buy viagra pills how to order viagra online in canada - buy viagra with paypal uk

Anonymous said...

buy cheap viagra viagra online quality - buy 200 mg viagra

Anonymous said...

buy viagra online reviews buy viagra canada mastercard - viagra new zealand buy online

Anonymous said...

buy discount tramadol tramadol zydus 50 mg - tramadol hcl 50mg dosage

Anonymous said...

soma pills soma 107 - cheap hotels sf soma

Anonymous said...

buy viagra with dapoxetine generic viagra wikipedia - viagra buy uk online

Anonymous said...

buy tramadol online cod overnight safest place buy tramadol online - tramadol for dogs side effects

Anonymous said...

buy viagra next day delivery cheap generic viagra pills online - cheap viagra pills

Anonymous said...

buy viagra online buy viagra no prescription australia - 4 generic viagra net

Anonymous said...

buy viagra cialis online can buy viagra online - buy viagra for women online

Anonymous said...

buy tramadol without a script buy tramadol online no prescription mastercard - buy tramadol online fedex delivery

Anonymous said...

buy viagra viagra kaufen - viagra online new zealand

Anonymous said...

buy tramadol cod next day delivery tramadol online no prescription overnight cod - tramadol medication 100mg

Anonymous said...

buy tramadol overnight delivery buy tramadol online no prescription - tramadol online

Anonymous said...

buy viagra for women can you buy viagra at walmart - best site buy generic viagra

Anonymous said...

tramadol online can you buy tramadol online no prescription - order tramadol online with cod

Anonymous said...

buy generic propecia generic propecia vs. brand name - propecia side effects constipation

Anonymous said...

buy tramadol 180 tramadol 50 mg kapsler - tramadol hcl versus tramadol

Anonymous said...

buy finasteride online propecia merck - propecia 1 month results

Anonymous said...

sildenafil citrate tablets viagra pill dosage - viagra dosage info

Anonymous said...

discount propecia propecia 90 count - propecia side effects cancer

Anonymous said...

buy retin-a online retin-a wrinkles over the counter - retin a cream dangers

Anonymous said...

buy propecia online propecia clinical results - propecia otc

Anonymous said...

buy viagra online usa buy viagra online dubai - cheap viagra in usa

Anonymous said...

buy retin-a online retin a co za - retin a acne testimonials

Anonymous said...

buy tramadol online 8 50 mg tramadol - tramadol dosage per kg

Anonymous said...

cheap tramadol get tramadol online no prescription - tramadol 50 mg how long does it stay in your system

Anonymous said...

retin-a online pharmacy retin-a gel and moisturizer - retin a acne worsens

Anonymous said...

propecia drug propecia side effects men's health - where can you buy non generic propecia

Anonymous said...

retin-a no prescription retin-a cream retin-a gel - retin-a directions

Anonymous said...

tramadol online overnight can you buy tramadol over the counter - tramadol veterinary dose

Anonymous said...

buy tramadol tramadol online visa - order tramadol pay cod

Anonymous said...

buy tramadol online no prescription cheap tramadol online no prescription usa - tramadol 50 mg is used to treat

Anonymous said...

tramadol 100mg tramadol high alcohol - tramadol 50 mg opiate

Anonymous said...

propecia for sale finasteride medication - cheap propecia london

Anonymous said...

buy tramadol online pharmacy reviews ultram - can you buy tramadol in canada

Anonymous said...

buy tramadol online mastercard overnight tramadol for dogs human use - buy tramadol in usa

Anonymous said...

buy finasteride online propecia patient results - where to buy propecia in uae

Anonymous said...

buy retin-a online retin a micro pump ndc - buy retin a gel 0.01

Anonymous said...

tramadol online buy cheap tramadol online cod - tramadol interactions

Anonymous said...

buy generic tramadol online tramadol hcl sleep - generic brand for tramadol

Anonymous said...

buy tramadol buy tramadol ultram - buy tramadol with mastercard

Anonymous said...

buy propecia online order propecia online - buy propecia finasteride australia

Anonymous said...

tramadol 50mg tramadol 083 - tramadol generic for ultram

Anonymous said...

buy tramadol tramadol online no prescription - buy tramadol dogs uk

Anonymous said...

buy tramadol with mastercard tramadol online canadian pharmacy - tramadol opiate addiction

Anonymous said...

buy retin-a online retin-a cream 0.1 no prescription - retin-a micro by ortho

Anonymous said...

order tramadol online ultram 50 mg tablets - tramadol hydrochloride 100mg/2ml

Anonymous said...

buy propecia online can you buy propecia over the counter in canada - propecia juanita

Anonymous said...

buy retin-a retin a cream 0.05 - where to buy retin a online no prescription

Anonymous said...

buy tramadol online cheap generic tramadol - order tramadol online mastercard

Anonymous said...

purchase tramadol buy tramadol online free shipping - tramadol hcl 50mg for dogs

Anonymous said...

buy tramadol online no prescription cod order tramadol with saturday delivery - tramadol 10mg

Anonymous said...

order tramadol can you buy tramadol uk - tramadol getting high

Anonymous said...

order tramadol tramadol zydus - tramadol 250 mg

Anonymous said...

buy retin-a retin a micro or retin a gel - retin-a results

Anonymous said...

tramadol generic tramadol 100mg vs vicodin - legit tramadol online

Anonymous said...

buy tramadol no rx tramadol 50 mg effects - tramadol recreational dose

Anonymous said...

propecia online pharmacy generic propecia thailand - propecia+minoxidil+reviews

Anonymous said...

tramadol 50 mg tramadol hcl user reviews - tramadol uss ship no prescription

Anonymous said...

cheapest viagra cheap viagra online canadian - generic viagra overnight delivery

Anonymous said...

tramadol 50mg order tramadol online saturday delivery - where to order tramadol online

Anonymous said...

buy tramadol buy tramadol online no prescription mastercard - tramadol hcl 50 mg high

Anonymous said...

buy viagra order viagra london - viagra buy thailand

Anonymous said...

cheap viagra viagra without prescriptions us - viagra online australia paypal

Anonymous said...

generic cialis cialis slogan - cialis daily buy

Anonymous said...

viagra online without prescription generic viagra from us - generic viagra dangers

Anonymous said...

tramadol 50 mg tramadol hcl fda - ultram better than tramadol

Anonymous said...

cheap viagra cheap viagra cialis levitra - viagra online nederland

Anonymous said...

tramadol 50mg buy ultram mastercard - buy tramadol online cod

Anonymous said...

cheap viagra is buying viagra online illegal - buy generic viagra forum

Anonymous said...

buy cialis no prescription buy genuine cialis online - buy cialis online new zealand

Anonymous said...

tramadol no prescription cheap tramadol for sale - buy tramadol no rx

Anonymous said...

cheap viagra generic viagra+england - order viagra online in us

Anonymous said...

buy tramadol order tramadol next day - tramadol online bluelight

Anonymous said...

viagra online without prescription gov us buy viagra - buy viagra and cialis

Anonymous said...

buy tadalafil order cialis online no prescription canada - order cialis online in canada

Anonymous said...

cheap viagra legal order viagra online us - buy cheap viagra online next day delivery

Anonymous said...

cheap viagra order viagra legally - can buy viagra online us

Anonymous said...

buy cialis buy cialis online greece - buy cialis online now

Anonymous said...

buy cialis generic what's price cialis - cialis daily tolerance

Anonymous said...

buy sildenafil buy viagra online next day - buy viagra us pharmacy

Anonymous said...

cialis online no prescription cialis upset stomach - online rx for cialis

Anonymous said...

generic cialis cialis quickly does work - cialis 0.25

Anonymous said...

buy cialis cialis online review online pharmacy - cialis price us

Anonymous said...

viagra online viagra online in usa - buy viagra online overnight

Anonymous said...

buy cialis buy cialis in vancouver bc - cialis online from us pharmacy

Anonymous said...

buy somas online soma carisoprodol drugs - buy soma online florida

Anonymous said...

buy soma online soma san diego phone - buy soma now

Anonymous said...

cialis online no prescription order cialis in usa - buy cialis online mastercard

Anonymous said...

buy soma online soma 350 mg ingredients - buy soma cheap

Anonymous said...

viagra online buy viagra online us paypal - viagra dosage wiki

Anonymous said...

buy soma online some pills - soma muscle relaxer street value

Anonymous said...

online soma soma online music - generic soma

Anonymous said...

viagra online cheap viagra online australia - viagra online 25mg

Anonymous said...

buy soma online buy soma online cod - buy soma from usa

Anonymous said...

order soma cymbalta soma drug interactions - where to buy somatropin online

Anonymous said...

soma online generic soma online - kind drug soma

Anonymous said...

buy soma online drug interactions with soma - soma muscle relaxer high

Anonymous said...

soma drug online soma puzzle - buy soma 350 mg online

Anonymous said...

generic soma buy soma online no prescription overnight - order soma online no rx

Anonymous said...

buy soma classification of the drug soma - history of soma san diego

Anonymous said...

carisoprodol soma soma san diego age - buy soma from usa

Anonymous said...

soma sale carisoprodol generic for soma - buy soma online cod

Anonymous said...

buy generic soma soma san diego drinking - best place buy soma online

Anonymous said...

order soma online soma pills high - cost of generic soma

Anonymous said...

buy generic soma soma san diego com shows - watch argento soma online free

Anonymous said...

buy soma where to buy soma overnight - soma concert venue san diego

Anonymous said...

cheap soma best place buy soma online - buy soma online overnight delivery

Anonymous said...

soma pills soma bras review - soma bras portland

Anonymous said...

where to buy retin-a online retin a cream side effects - best retin-a acne

Anonymous said...

buy soma buy soma next day - order soma legally online

Anonymous said...

buy tramadol ultram rx online - buy tramadol with cod

Anonymous said...

buy retin a buy retin a for cheap - buy retin-a for stretch marks

Anonymous said...

buy tramadol free shipping tramadol dosage limits - buy tramadol online australia no prescription

Anonymous said...

buy discount tramadol tramadol no prescription mastercard - buy tramadol online legit

Anonymous said...

tramadol 100 tramadol an 627 - buy tramadol legit

Anonymous said...

buy tramadol ultram legal order tramadol online - tramadol high alcohol

Anonymous said...

buy tramadol for dogs tramadol 50 mg slow release - tramadol yahoo answers

Anonymous said...

buy retin-a online where to buy retin a online - retin a cream vs retin a micro

Anonymous said...

tramadol online tramadol no prescription mastercard - tramadol is generic for what drug

Anonymous said...

order tramadol online cod buy tramadol in uk - tramadol no rx

Anonymous said...

buy tramadol saturday delivery tramadol 50mg like - tramadol online overnight delivery

Anonymous said...

buy tramadol online tramadol 50 mg max dosage - tramadol 50mg for dogs

Anonymous said...

buy tramadol online buy tramadol 50mg usa - ultram tramadol withdrawal symptoms

Anonymous said...

best buy tramadol can you get tramadol online legally - tramadol vicodin high

Anonymous said...

buy tramadol tramadol for dogs used by humans - tramadol for dogs same for humans

Anonymous said...

buy tramadol with cod buy 180 tramadol online - tramadol addiction

Anonymous said...

xanax no prescription tranxene vs xanax side effects - alprazolam 2mg generic xanax

Anonymous said...

generic xanax what does xanax high - long does 1mg xanax last

Anonymous said...

buy cialis online in usa buy cheap cialis link online - buy viagra cialis online

Anonymous said...

buy cialis online buy cialis online cheap - buy cialis vs viagra

Anonymous said...

buy cialis online cialis kidney stones - buy cialis in usa online

Anonymous said...

buy cialis online cialis online without rx - buy cheap cialis online us

Anonymous said...

http://buytramadolonlinecool.com/#96430 tramadol withdrawal wikipedia - tramadol hcl 50 mg espanol

Anonymous said...

buy klonopin online legal buy klonopin online - klonopin withdrawal easy

Anonymous said...

order klonopin how long do klonopin side effects last - 4 mg klonopin effects

Anonymous said...

buy klonopin online 2mg klonopin first time - 2mg klonopin to get high

Anonymous said...

order clonazepam klonopin withdrawal blog - klonopin overdose mg

Anonymous said...

carisoprodol 350 mg side effects of carisoprodol tablets - carisoprodol 350 mg looks like

Anonymous said...

carisoprodol 350 mg soma or carisoprodol - carisoprodol how to abuse