Skip to content

Add custom endpoints to metrics and resoruce discovery yaml

codefactor.io / CodeFactor failed Jan 29, 2025 in 4s

4 issues found. Autofix available.

Annotations

Check notice on line 102 in src/Promitor.Agents.ResourceDiscovery/Validation/Steps/AzureLandscapeValidationStep.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/Promitor.Agents.ResourceDiscovery/Validation/Steps/AzureLandscapeValidationStep.cs#L29-L102

Complex Method

Check notice on line 84 in src/Promitor.Tests.Unit/Validation/ResourceDiscovery/AzureLandscapeValidationStepTests.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/Promitor.Tests.Unit/Validation/ResourceDiscovery/AzureLandscapeValidationStepTests.cs#L84

Opening braces should not be preceded by blank line. (SA1509)

Check notice on line 178 in src/Promitor.Agents.Scraper/Validation/Steps/MetricsDeclarationValidationStep.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/Promitor.Agents.Scraper/Validation/Steps/MetricsDeclarationValidationStep.cs#L105-L178

Complex Method

Check notice on line 83 in src/Promitor.Agents.ResourceDiscovery/Validation/Steps/AzureLandscapeValidationStep.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/Promitor.Agents.ResourceDiscovery/Validation/Steps/AzureLandscapeValidationStep.cs#L83

Prefer comparing `Count` to 0 rather than using `Any()`, both for clarity and for performance. (CA1860)