Skip to content

Commit

Permalink
Updating stylecop rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jrusbatch committed Sep 8, 2012
1 parent d0ede70 commit 7fb17cd
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
45 changes: 45 additions & 0 deletions Settings.StyleCop
Expand Up @@ -12,6 +12,11 @@
<BooleanProperty Name="Enabled">False</BooleanProperty> <BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings> </RuleSettings>
</Rule> </Rule>
<Rule Name="DoNotUseRegions">
<RuleSettings>
<BooleanProperty Name="Enabled">True</BooleanProperty>
</RuleSettings>
</Rule>
</Rules> </Rules>
<AnalyzerSettings /> <AnalyzerSettings />
</Analyzer> </Analyzer>
Expand Down Expand Up @@ -242,6 +247,46 @@
<BooleanProperty Name="Enabled">False</BooleanProperty> <BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings> </RuleSettings>
</Rule> </Rule>
<Rule Name="ConstantsMustAppearBeforeFields">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="StaticElementsMustAppearBeforeInstanceElements">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="DeclarationKeywordsMustFollowOrder">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="ProtectedMustComeBeforeInternal">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="PropertyAccessorsMustFollowOrder">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="EventAccessorsMustFollowOrder">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="StaticReadonlyElementsMustAppearBeforeStaticNonReadonlyElements">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="InstanceReadonlyElementsMustAppearBeforeInstanceNonReadonlyElements">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules> </Rules>
<AnalyzerSettings /> <AnalyzerSettings />
</Analyzer> </Analyzer>
Expand Down
3 changes: 1 addition & 2 deletions Web/Controllers/HomeController.cs
Expand Up @@ -3,7 +3,6 @@
using System.Text; using System.Text;
using System.Web.Mvc; using System.Web.Mvc;
using System.Web.Routing; using System.Web.Routing;
using Compilify.DataAccess;
using Compilify.LanguageServices; using Compilify.LanguageServices;
using Compilify.Models; using Compilify.Models;
using Compilify.Web.Models; using Compilify.Web.Models;
Expand Down Expand Up @@ -62,7 +61,7 @@ public ActionResult Show(string slug, int? version)
if (version <= 1) if (version <= 1)
{ {
// Redirect the user to /:slug instead of /:slug/1 // Redirect the user to /:slug instead of /:slug/1
return RedirectToActionPermanent("Show", "Home", new { slug = slug, version = (int?)null }); return RedirectToActionPermanent("Show", "Home", new { slug, version = (int?)null });
} }


version = version ?? 1; version = version ?? 1;
Expand Down

0 comments on commit 7fb17cd

Please sign in to comment.