Skip to content

Add analyzer for Environment.ProcessPath  #42948

@jkotas

Description

@jkotas

Environment.ProcessPath API introduced by #40862 is a significantly more efficient replacement of Process.GetCurrentProcess().MainModule.FileName. This pattern is quite common. We should add analyzer and fixer for this.

More context: #42768 (comment)

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-System.Runtimecode-analyzerMarks an issue that suggests a Roslyn analyzercode-fixerMarks an issue that suggests a Roslyn code fixerhelp wanted[up-for-grabs] Good issue for external contributors

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions