Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning on reserved method names #284

Merged

Conversation

kjonescertinia
Copy link
Contributor

This adds a warning when using a legal but reserved identifier for a method names. I tidied up the tests a bit so we have a single test class for CST Id validations.

@kjonescertinia kjonescertinia linked an issue Aug 24, 2024 that may be closed by this pull request
],
[
"Cumulus/force-app/infrastructure/apex-mocks/test/classes/mocks/fflib_Mocks.cls",
"Warning: line 54 at 14-17: 'set' is currently a legal method name but is a reserved identifier in Apex so should be avoided",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fflib woops

@kjonescertinia kjonescertinia merged commit 41a7a3d into main Sep 4, 2024
1 check passed
@kjonescertinia kjonescertinia deleted the 277-warn-when-used-a-reserved-identifier-as-a-method-name branch September 4, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn when used a reserved identifier as a method name
2 participants