From 7fb17cda7db88338a61e5b391a0500751e53f2b5 Mon Sep 17 00:00:00 2001 From: Justin Rusbatch Date: Sat, 8 Sep 2012 14:48:01 -0400 Subject: [PATCH] Updating stylecop rules --- Settings.StyleCop | 45 +++++++++++++++++++++++++++++++ Web/Controllers/HomeController.cs | 3 +-- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Settings.StyleCop b/Settings.StyleCop index fc28f42..a71f216 100644 --- a/Settings.StyleCop +++ b/Settings.StyleCop @@ -12,6 +12,11 @@ False + + + True + + @@ -242,6 +247,46 @@ False + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + diff --git a/Web/Controllers/HomeController.cs b/Web/Controllers/HomeController.cs index 200ab9b..4e4e0aa 100644 --- a/Web/Controllers/HomeController.cs +++ b/Web/Controllers/HomeController.cs @@ -3,7 +3,6 @@ using System.Text; using System.Web.Mvc; using System.Web.Routing; -using Compilify.DataAccess; using Compilify.LanguageServices; using Compilify.Models; using Compilify.Web.Models; @@ -62,7 +61,7 @@ public ActionResult Show(string slug, int? version) if (version <= 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;