Skip to content

SCAN4NET-92 Display a warning when sources and tests properties are set #2210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

costin-zaharia-sonarsource
Copy link
Member

@costin-zaharia-sonarsource costin-zaharia-sonarsource commented Sep 23, 2024

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Display a warning when sources and tests properties are set SCAN4NET-92 Display a warning when sources and tests properties are set Sep 23, 2024

if (AggregateProperties.TryGetProperty(SonarProperties.Sources, out _) || AggregateProperties.TryGetProperty(SonarProperties.Tests, out _))
{
logger.LogWarning(Resources.WARN_SourcesAndTestsDeprecated);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be a UI warning, wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed. I missed that. Thanks!

Copy link

Copy link
Contributor

@CristianAmbrosini CristianAmbrosini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@CristianAmbrosini CristianAmbrosini merged commit b79134e into master Sep 23, 2024
16 checks passed
@CristianAmbrosini CristianAmbrosini deleted the costin/warning-params branch September 23, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants