Features Screenshots ProjectSetup CodingStandards CodeAnalysis DesignStandards UnitTesting CodeSnippets

Code Analysis

Writing code is about building secure, robust and error free software. Code analysis is one way of helping you meet this goal. We use code analysis to help us track down and identify/fix potential problems before they occur. We use two methods of code analysis on the Firefly XNA game engine, static code analysis and source code analysis. Both help us write bug free quality code for your use as a game designer. Below are the two tools we are currently using in development.


FxCop is a free static code analysis tool from Microsoft that checks .NET managed code assemblies for conformance to Microsoft's .NET Framework Design Guidelines. We use FxCop to analyze or code for the following things:
  • Correctness
  • Library design
  • Localization
  • Naming conventions
  • Performance
  • Security


StyleCop analyzes C# source code to enforce a set of style and consistency rules. This helps us enforce most aspects of our coding and best practice standards.



We may not use all the rules and have even written some of our own custom rules so please keep this in mind when using these tools. The settings for both tools are included in the source, You should not have to setup or change anything. One other thing to note is that any changes made to them will be reviewed by all active developers so everyone is kept up-to-date.

Last edited Apr 17, 2009 at 4:25 PM by TheJeepinator, version 6


No comments yet.