Inspector to tell you to add this. or super.

Issue #1186 new
Eric Kintzer created an issue

This is clearly an optional item to add to the Inspector

By convention, our org uses whenever referring to an object instance variable and when referring to a super class variable. Of course, Apex doesn't care but the PR reviewers (sometimes) do care when the developer is inconsistent - sometimes but elsewhere in the same class simply foo.

It would be nice to have a new inspector that would tell you when you forgot to add this. or super. to the variable reference - this would be a warning (ochre highlight)

To generalize this, one might have an object variable convention property. In our org's case, this is this. but in fflib, it is m_

Comments (2)

  1. Log in to comment