Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 23, 2025

There are still quite a few false positives after this but they are fall into basically 2 classes:

  • Subclasses of TestCase, which are explicitly used
  • Subclasses of Library, which are no explicitly user
  • Settings, which are only ever read in the JS compiler.

I think we should probably wait until the deadcode tool at least supports returning error codes before we try to integrate into CI. See albertas/deadcode#36

There are still quite a few false positives after this but they are fall
into basically 2 classes:

- Subclasses of TestCase, which are explicitly used
- Subclasses of Library, which are no explicitly user
- Settings, which are only ever read in the JS compiler.

I think we should probably wait until the `deadcode` tool at least
supports returning error codes before we try to integrate into CI.
@sbc100 sbc100 requested a review from kripken September 23, 2025 18:57
"YTT",
]

lint.external = [ "D" ]
Copy link
Member

Choose a reason for hiding this comment

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

What is this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the prefix used for noqa decorators. They are mnemonics I guess so any error code starting in D relates to dead code.

@sbc100 sbc100 merged commit 24fcd26 into emscripten-core:main Sep 24, 2025
32 checks passed
@sbc100 sbc100 deleted the deadcode branch September 24, 2025 22:29
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