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

Companial Cop - PR: Locked Captions, AutoCalcFields, Internal Method Parameter #383

Conversation

tinestaric
Copy link
Contributor

This PR adds three rules

0035 - Built-in methods must have parameters specified explicitly

It analyzes the following methods: Insert, Modify, Delete, Update, and DeleteAll.
All of these methods can be invoked without specifying a parameter and false is then used implicitly for RunTrigger parameter. This can cause issues for maintainance, as it reduces the intentionality of the code. Was trigger intentionally skipped, or was it left out by accident.

0036 - Empty Captions should be Locked.

Analyzes enum values only. If the Caption property is empty, than the caption should be locked so they're not added to the translations file.

0037 - Auto Calc Fields should not be invoked on Normal (non-flow or Blob) fields

If you try to execute SetAutoCalcFields on normal fields, it will throw an error at runtime, so it should be caught already at compile time. The source for this rule follows a different pattern as it was copied from the MS rule for checking that CalcFields isn't invoked on the Normal fields and adjusted for SetAutoCalcFields.

Arthurvdv and others added 10 commits November 21, 2023 09:36
New rule LC0033 runtime falling behind
New rule LC0034 Set explicit Extensible property
Improve LC0025 with Accessibility and XML doc
Handle Namespaces on input parameters
Merge branch 'prerelease' into master
Add
Rule0035BuiltInMethodsMustHaveExplicitParameters
analyzer
@Arthurvdv Arthurvdv changed the base branch from master to development December 4, 2023 13:16
@Arthurvdv Arthurvdv merged commit 6c99403 into StefanMaron:development Dec 5, 2023
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.

2 participants