Skip to content
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

Ignore import statements (Java) and using directives (C#) when calculating duplication #1413

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

noahd1
Copy link
Member

@noahd1 noahd1 commented Jan 9, 2025

Ignores import statements (in Java) and using directives (in C#) when calculating duplication.

Copy link
Contributor

qltysh bot commented Jan 9, 2025

Not applicable. There was no coverage data reported for the files in this diff.

1 similar comment
Copy link
Contributor

qltysh bot commented Jan 9, 2025

Not applicable. There was no coverage data reported for the files in this diff.

@brynary
Copy link
Member

brynary commented Jan 9, 2025

Can we please get a test for this which fails before this patch and passes after?

@noahd1 noahd1 force-pushed the nd-duplication-filters branch from 28ab15e to 4ed51ce Compare January 9, 2025 05:17
@noahd1
Copy link
Member Author

noahd1 commented Jan 9, 2025

@brynary Updated this PR with 1 commit that introduces a failing test and 1 commit that fixes it.

Copy link
Member

@brynary brynary left a comment

Choose a reason for hiding this comment

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

I added a line comment about how to make the test less fragile, and approving

@@ -0,0 +1,4 @@
[0/3] [..]Analyzing all targets... [..]s
[1/3] [..]Checking structure of 4 files... [..]s
[2/3] [..]Looking for duplication across 4 files... [..]s
Copy link
Member

Choose a reason for hiding this comment

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

I would delete this file, because the snapshot testing framework will not match against stderr if there is no file. This will make the test less brittle

@noahd1 noahd1 merged commit 55bc8be into main Jan 10, 2025
7 of 8 checks passed
@noahd1 noahd1 deleted the nd-duplication-filters branch January 10, 2025 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants