Skip to content

SCAN4NET-42 Multi-Language Support: Ignore XML files #2177

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 2 commits into from
Sep 11, 2024

Conversation

gregory-paidis-sonarsource
Copy link
Contributor

@gregory-paidis-sonarsource gregory-paidis-sonarsource commented Sep 6, 2024

@terraform-techuser terraform-techuser changed the title Multi-Language Support: Ignore XML files SCAN4NET-42 Multi-Language Support: Ignore XML files Sep 6, 2024
Copy link
Member

Choose a reason for hiding this comment

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

I think we should add an integration test to document the behavior and make sure that it doesn't get added back by mistake.

Copy link
Member

Choose a reason for hiding this comment

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

Needs an integration test.


<dependency>
<groupId>semigroup</groupId>
<artifactId>haskell.curry.monoid</artifactId>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hehe

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a beautiful set equipped with an associative binary operation and an identity element. 🪄

@gregory-paidis-sonarsource gregory-paidis-sonarsource force-pushed the greg/disable-xml branch 13 times, most recently from e6c0023 to c9712ca Compare September 11, 2024 12:47
assertThat(TestUtils.getMeasureAsInteger(localProjectKey, "files", ORCHESTRATOR)).isEqualTo(212);
assertThat(TestUtils.getMeasureAsInteger(localProjectKey, "lines", ORCHESTRATOR)).isEqualTo(18681);
assertThat(TestUtils.getMeasureAsInteger(localProjectKey, "ncloc", ORCHESTRATOR)).isEqualTo(14028);
assertThat(TestUtils.getMeasureAsInteger(localProjectKey, "files", ORCHESTRATOR)).isEqualTo(213);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nuget.config is considered xml

Copy link

Comment on lines +326 to +327
// ConsoleVBNet/App.config 6
// ConsoleCSharp/App.config 6

Choose a reason for hiding this comment

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

My understanding is that we analyze these files because they are automatically included during the compilation (SDK type project)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to confirm, I did one more debug locally.
Indeed, FilesToAnalyze contains the file, so it's part of the compilation:

image

Copy link
Member

Choose a reason for hiding this comment

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

LGTM!

@gregory-paidis-sonarsource gregory-paidis-sonarsource merged commit 262aa42 into master Sep 11, 2024
18 checks passed
@gregory-paidis-sonarsource gregory-paidis-sonarsource deleted the greg/disable-xml branch September 11, 2024 14:36
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.

3 participants