Skip to content

New rule: Method parameters should comply with a naming convention #59

Open
@fourls

Description

@fourls

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.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestgood first issueGood for newcomersruleImprovements or additions to rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions