Skip to content

Conversation

@chinyeungli
Copy link
Contributor

  • Everything under META-INF/ is generally metadata or configuration files that can be ignored.
  • module-info.class is typically a generated file - it's the compiled version of a Java module descriptor that can be ignored as well.

Signed-off-by: Chin Yeung Li [email protected]

- Everything under META-INF/ is generally metadata or configuration files that can be ignored.
- module-info.class is typically a generated file - it's the compiled version of a Java module descriptor that can be ignored as well.

Signed-off-by: Chin Yeung Li <[email protected]>
- Added scan_ignored_to_files()
- Updated tests

Signed-off-by: Chin Yeung Li <[email protected]>
@chinyeungli chinyeungli changed the title Added "META-INF" and "module-info.class" to ignore list #1876 Added "META-INF" and "module-info.class" to ignore list Oct 30, 2025
@chinyeungli chinyeungli requested review from AyanSinhaMahapatra and tdruez and removed request for AyanSinhaMahapatra October 30, 2025 07:46

self.assertEqual(1, expected)

def test_scan_ignored_to_files(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

The test name is not consistent with the existing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tdruez what do you mean by "The test name is not consistent with the existing.". It is used to test the d2d.scan_ignored_to_files()

Copy link
Contributor

Choose a reason for hiding this comment

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

You need to follow the existing naming conventions. See all the tests function start with test_scanpipe_pipes_d2d_
Note that the other test you added in the PR respects the convention: test_scanpipe_pipes_d2d_java_ignore_pattern

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, thank. Updated.

@tdruez tdruez merged commit aff08bf into main Nov 6, 2025
15 checks passed
@tdruez tdruez deleted the 1876_refine_java_d2d_for_metadata_conf branch November 6, 2025 09:54
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