Open
Description
Prerequisites
- This rule has not already been suggested.
- This should be a new rule, not an improvement to an existing rule.
- This rule would be generally useful, not specific to my code or setup.
Suggested rule title
Method parameters should comply with a naming convention
Rule description
This rule will check if a method parameter is in PascalCase and (optionally) has a certain prefix. The prefix will default to nothing.
Rationale
It's a common Delphi convention to prefix arguments with A
, like in the example below:
procedure Example(AMyInt: string);
var
MyStr: string;
begin
// ...
end;
This would enforce this convention in the same way similar conventions are supported for other language constructs (type names, constant names, etc.).