Fix stylecop in Microsoft.AspNet.Mvc
This commit is contained in:
parent
97e06138ed
commit
ecbc179d76
|
|
@ -259,6 +259,11 @@
|
||||||
</Analyzer>
|
</Analyzer>
|
||||||
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
|
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
|
||||||
<Rules>
|
<Rules>
|
||||||
|
<Rule Name="OpeningParenthesisMustBeOnDeclarationLine">
|
||||||
|
<RuleSettings>
|
||||||
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
</RuleSettings>
|
||||||
|
</Rule>
|
||||||
<Rule Name="ParameterMustNotSpanMultipleLines">
|
<Rule Name="ParameterMustNotSpanMultipleLines">
|
||||||
<RuleSettings>
|
<RuleSettings>
|
||||||
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Builder
|
||||||
return app.UseMvc(routes =>
|
return app.UseMvc(routes =>
|
||||||
{
|
{
|
||||||
// Action style actions
|
// 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
|
// Rest style actions
|
||||||
routes.MapRoute(null, "{controller}/{id?}");
|
routes.MapRoute(null, "{controller}/{id?}");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue