title: Visual Studio Code Metrics and the Maintainability index of switch case
body: <p>As a person who loves to follow the best practices,</p>
  
  <p>If i run code metrics (right click on project name in solution explorer and select "Calculate Code Metrics" - Visual Studio 2010) on:</p>
  
  <pre><code>    public static string GetFormFactor(int number)
      {
          string formFactor = string.Empty;
          switch (number)
          {
              case 1:
                  formFactor = "Other";
                  break;
  
              case 2:
                  formFactor = "SIP";
                  break;
  
              case 3:
                  formFactor = "DIP";
                  break;
  
              case 4:
                  formFactor = "ZIP";
                  break;
  
              case 5:
                  formFactor = "SOJ";
                  break;
          }
  
          return formFactor;
      }
  </code></pre>
  
  <p>It Gives me a Maintainability index of <strong>61</strong> </p>
  
  <p>(of course this is insignificant if you have only this, but if you use an utility like class whos philosophy is doing stuff like that, your utility class will have the maintainability index much worst..)</p>
  
  <p>Whats the solution for this?</p>