title: No warning at undefined variables in PyCharm Community 2017.2
body: <p>I have this piece of code in a Python module open in PyCharm Community Edition 2017.2.</p>
  
  <pre><code>class Sample(object):
      def __init__(self):
          self.prop1 = 5
          self.prop2 = 10
  
      def method1(self):
          return foo
  
      def do_work(self):
          not_defined_func()
  
  
  s = Sample()
  s.method1()
  
  bar = call_func
  </code></pre>
  
  <p>The IDE doesn't give any warnings on some fairly serious issues:</p>
  
  <ol>
  <li>The returned variable <code>foo</code> has not been defined.</li>
  <li>I assign not defined variable <code>call_func</code> to the variable <code>bar</code>.</li>
  <li>I call not defined function <code>not_defined_func</code> inside the method <code>do_work</code>. </li>
  </ol>
  
  <p>How do I enable PyCharm to highlight these things? I have a fresh installation of PyCharm and have all the <code>Inspections</code> enabled in <code>File &gt; Settings &gt; Editor &gt; Inspections &gt; Python</code>.</p>