Fix stylecop in Microsoft.AspNet.Mvc

This commit is contained in:
Ryan Nowak 2014-06-04 20:06:42 -07:00
parent 97e06138ed
commit ecbc179d76
2 changed files with 6 additions and 1 deletions

View File

@ -259,6 +259,11 @@
</Analyzer>
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
<Rules>
<Rule Name="OpeningParenthesisMustBeOnDeclarationLine">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
<Rule Name="ParameterMustNotSpanMultipleLines">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>

View File

@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Builder
return app.UseMvc(routes =>
{
// Action style actions
routes.MapRoute(null, "{controller}/{action}/{id?}", new { controller = "Home" , action = "Index" });
routes.MapRoute(null, "{controller}/{action}/{id?}", new { controller = "Home", action = "Index" });
// Rest style actions
routes.MapRoute(null, "{controller}/{id?}");