Application_Start does not match rules 'Methods, properties and events' and can be made private

Hello.

ReSharper keeps bugging me about useless warnings like how methods are called in the Global.asax.cs

I know that Application_Start could be made private and could be renamed "ApplicationStart", but I've strong doubts that my web application will keep working if I follow ReSharper's advices.

I also know that I could choose to suppres inspection with comments, but:

  • Useless comments make the code dirty
  • In this case, is a ReSharper's fault, since these names are conventions and must be left as they are (as far as I know): ReSharper must know that and create exceptions, ignoring useless (and sometimes confusing) rules and advices.


Is it possible to do that playing with ReSharper settings or can I expect this feature to be in one of the next updates?

Thanks.

3 comments

On 27.09.2011 11:34, Andrea Sciamanna wrote:

I know that Application_Start could be made private and could be renamed "ApplicationStart", but I've strong doubts that my web application will keep working if I follow ReSharper's advices.


Andrea, what version of ReSharper do you use?


0

On 27.09.2011 11:34, Andrea Sciamanna wrote:

Is it possible to do that playing with ReSharper settings or can I expect this feature to be in one of the next updates?


It will be fixed in upcoming 6.1 release.

0

Hello Slava,

I'm using the 6.0.2202.688 (the latest one, I suppose).
However, since I see you've posted another answer about fixing this issue in the next release, I suppose this is not relevant anymore.

Thanks.

0

Please sign in to leave a comment.