Raymond Lewallen

Sponsors

The Lounge

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Where are all the custom FxCop rules?
So far, I've only been able to find three places that have custom FxCop rules that are based on the new introspection engine: here, here (both of those by John Robbins), and one by Tim Weaver here. If you go to the FxCop message boards, there are plenty of people talking about their custom rules, but nobody is posting them. GotDotNet even has a User Samples area for these things to go, but you won't find any custom rules for FxCop. So why aren't people sharing these? I've been patiently waiting for many many months on new rules for the introspection engine to come up on the internet, but they aren't to be found. Come on people, whats the deal? I would certainly like to import some rules somebody else has already written and tested. No, I'm not lazy, I'm just dilatory :)

Ok, so that said, no I don't have any custom FxCop rules to share. Mine use the old FxCop reflection engine and you don't want those. Am I going to have to write some new rules so that I can barter for somebody elses?

Update: Thanks to Darrell, who lead me to David, the latest versions of John Robbins' rules can be found here.

David has and updated set of rules here.

Currently listening to: Memory - Sugarcult

Posted 02-18-2005 4:58 AM by Raymond Lewallen

[Advertisement]

Comments

TrackBack wrote Where are all the custom FxCop rules?
on 02-18-2005 5:48 AM
Where are all the custom FxCop rules?
TrackBack wrote Custom FxCop rules
on 02-18-2005 8:06 AM
Darrell wrote re: Where are all the custom FxCop rules?
on 02-18-2005 8:07 AM
Jim Geurts wrote re: Where are all the custom FxCop rules?
on 02-18-2005 1:09 PM
I wrote a "tutorial" of sorts for using the introspection engine... Included is a rule. Otherwise, all of the custom rules that I've written are at work in VSS :) I suppose I could write some more and give them away, though.

Anyway, here is the tutorial post: http://blogs.biasecurities.com/jim/archive/2004/12/29/818.aspx
TrackBack wrote New and updated FxCop Rules
on 02-18-2005 4:57 PM
TrackBack wrote Custom FxCop rules
on 02-19-2005 9:43 AM
TrackBack wrote New Team System Stuff - 2005-02-25
on 02-25-2005 12:04 PM
Aarti wrote re: Where are all the custom FxCop rules?
on 06-02-2006 9:29 AM
Hi -

I am trying to write a custom rule based on the rules you have provided above. What I need to do is make sure the save method of the business object always calls the IsValid method. Any ideas how I could accomplish this? I am not very familiar with the FXCop Introspection SDK. Any help is greatly appreciated.

Basically I would like to rule to say if the Save method does not have IsValid - throw an error.

Thanks,
Aarti.

Code:
public bool Save(DataSet entityModel)
{
IData employee = new Data.Employee();

employeeModel = entityModel as EmployeeModel;

if(IsValid())
{
employee.Save(employeeModel);
return true;
}
else
{
return false;
}
}

public bool IsValid()
{
employeeModel.Error.Rows.Clear();
EmployeeModel.EmployeeRow employeeRow = employeeModel.Employee.Rows[0] as EmployeeModel.EmployeeRow;

if(employeeModel.Error.Rows.Count <= 0)
{
return true;
}
else
{
return false;
}
}
Buy vicodin. wrote Vicodin side effects.
on 05-29-2009 6:45 PM

Vicodin user message board. Vicodin. Buying cod vicodin.

Hydrocodone cough syrup. wrote Hydrocodone.
on 05-30-2009 7:08 PM

Hydrocodone apap. Easy way to buy hydrocodone online. Hydrocodone. Ic hydrocodone apap 5 500. Snorting hydrocodone.

Buy soma online. wrote Soma buy soma cheap soma soma online.
on 06-04-2009 9:03 PM

Buy soma tablets. Buy soma online. Buy soma watson brand 180 tablets. Buy soma watson brand online 150 tablets.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?