Skip to content

Add new applicable_kinds to distinguish between parameter of regular functions and parameters of anonymous functions #70037

Open
@patelmitul

Description

Brief description:

We have few applicable_kinds available to define naming conversions for different kind of object. Right now all parameters are grouped in one kind "parameter". Can we add new kind to distinguish between parameter of regular functions and parameters of anonymous functions?

Languages applicable:

Both

Code example that the analyzer should report:

// Regular function parameter: Require lower case 'p' as prefix and capitalization as pascal_case
// Anonymous function parameter: Does not require prefix and capitalization as camel_case
public int GetCount(IList<int> pMyItems) {
    return pMyItems.Where((x) => x > 0).Count();
}

Documentation requirements:

When this analyzer is implemented, it must be documented by following the steps at Documentation for IDE CodeStyle analyzers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions