This project is read-only.

Rule SA1126 on MVC applications

Oct 9, 2013 at 10:08 AM
With MVC applications, stylecop issues SA1126 such as

SA1126 : CSharp.Readability : The call to View must begin with the 'this.', 'base.', 'object.' or 'HomeController.' or 'Controller.' prefix to indicate the intended method call.

This was issued for
  return View();
The options that SA1126 give do not look right as Visual Studio 2012 Ultimate (11.0.60610.1) with Resharper 8.0.1 (8.0.1000.2286), indicates that the view is at ~/Views/Home/About.cshtml. How should SA1126 be fixed in the context of an MVC application or should detection of SA1126 be turned off for MVC projects?

Code for this is at The next release of this project will be 100% StyleCop compliant except for these SA1126 warnings.
Feb 9, 2015 at 5:50 PM
Edited Feb 9, 2015 at 5:52 PM
Version 4.7.49 still has this problem. It's telling me to use "this.View()". Otherwise, I like SA1126. There should be an exception made for all ActionResults.