title: Resharper not detecting global variables inside angular services
body: <p>I want to detect places in my code, where globals are used, so I can do something about it.
  I have a service like this:</p>
  
  <pre><code>myApp.service("myService", function () {
  
      function f1() {
          var a = global.someVar;
      }
  
      function f2() {
          global.f();
      }
  
      function f3() {
          global = "a";
      }
  
  });
  </code></pre>
  
  <p>Problem is, variable "global" in f1() isn't detected as global variable, in f2() it also isn't detected, but in f3() case I get "Assignment to implicitly declared global variable", while it should be detected in all 3 cases.</p>
  
  <p>In Resharper JS Inspection sererity options, I have all turned on.</p>
  
  <p>I tried to wrap my code in self invoking function, but still no success. Am I doing something wrong? Is there a way to make Resharper detect globals in theese situations?</p>