Skip to content

Refactor the arguments enumeration - #168

Open
mgrosperrin wants to merge 1 commit into
mainfrom
features/0.11.0/refactor-arguments-enumerator
Open

Refactor the arguments enumeration#168
mgrosperrin wants to merge 1 commit into
mainfrom
features/0.11.0/refactor-arguments-enumerator

Refactor the arguments enumeration

8dbeeeb
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Aug 5, 2026 in 11s

Annotations

Check failure on line 27 in src/MGR.CommandLineParser/Parser.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename parameter 'args' to 'arguments' to match the interface declaration.

See more on https://sonarcloud.io/project/issues?id=mgrosperrin_commandlineparser&issues=AZ_Ttcx77s3WKsGdMDTk&open=AZ_Ttcx77s3WKsGdMDTk&pullRequest=168

Check warning on line 24 in src/MGR.CommandLineParser/ParserEngine.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

All 'Parse' method overloads should be adjacent.

See more on https://sonarcloud.io/project/issues?id=mgrosperrin_commandlineparser&issues=AZ_Ttc0G7s3WKsGdMDTm&open=AZ_Ttc0G7s3WKsGdMDTm&pullRequest=168

Check failure on line 123 in src/MGR.CommandLineParser/ParserEngine.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=mgrosperrin_commandlineparser&issues=AZ_Ttc0G7s3WKsGdMDTn&open=AZ_Ttc0G7s3WKsGdMDTn&pullRequest=168

Check warning on line 172 in src/MGR.CommandLineParser/ParserEngine.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=mgrosperrin_commandlineparser&issues=AZ_Ttc0G7s3WKsGdMDTo&open=AZ_Ttc0G7s3WKsGdMDTo&pullRequest=168

Check warning on line 59 in src/MGR.CommandLineParser/Arguments.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a constructor overloads that allows a more meaningful exception message to be provided.

See more on https://sonarcloud.io/project/issues?id=mgrosperrin_commandlineparser&issues=AZ_Ttc0O7s3WKsGdMDTp&open=AZ_Ttc0O7s3WKsGdMDTp&pullRequest=168

Check failure on line 33 in src/MGR.CommandLineParser/Parser.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename parameter 'args' to 'arguments' to match the interface declaration.

See more on https://sonarcloud.io/project/issues?id=mgrosperrin_commandlineparser&issues=AZ_Ttcx77s3WKsGdMDTl&open=AZ_Ttcx77s3WKsGdMDTl&pullRequest=168

Check failure on line 30 in src/MGR.CommandLineParser/Parser.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename parameter 'args' to 'arguments' to match the interface declaration.

See more on https://sonarcloud.io/project/issues?id=mgrosperrin_commandlineparser&issues=AZ_Ttcx77s3WKsGdMDTj&open=AZ_Ttcx77s3WKsGdMDTj&pullRequest=168