Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[apex] Add a rule to prevent use of non-existent annotations #836
This rule seeks to warn against using non-existent annotations in apex source code. A 'non existent' annotation is one not defined in the apex language documentation annotations section.
This is done to prevent apex source code from being broken by newer Apex annotations in the Salesforce language that possess the same signature as a non existent one.
@anand13s thanks for the PR! The rule looks like a nice addition, and the way to get valid annotations by reflection from Jorje is neat (are we certain it includes all accepted annotations?).
Please, rebase against master and check the issues I here raise. Let me know if you need any assistance.
@jsotuyod I'm the product manager for Apex at Salesforce (Anand is on the dev team), and wanted to answer
This will be the case for the foreseeable future. I can't make an official guarantee as this isn't a formally supported API, but we have no current plans to make changes that would stop this from being true.