Skip to content

Conversation

@nojaf
Copy link
Contributor

@nojaf nojaf commented Jan 9, 2023

Hello, I would like to warn the user when a public function in an implementation file is not used and is not part of the signature file.

The implementation could improve, but I think the idea holds.
Let me know how I can properly check for this.

@nojaf nojaf requested a review from a team as a code owner January 9, 2023 16:43
@nojaf nojaf changed the title Warn is unused toplevel function is not included is signature file. Warn if unused top-level function is not included is signature file. Jan 9, 2023
@nojaf nojaf force-pushed the unused-function-signature-file branch from ef10779 to 34f45a8 Compare January 11, 2023 11:50
@nojaf nojaf mentioned this pull request Jan 11, 2023
@nojaf nojaf force-pushed the unused-function-signature-file branch from 5ec4a7d to 6e3aa92 Compare January 16, 2023 12:40
@nojaf
Copy link
Contributor Author

nojaf commented Jan 17, 2023

Ready for review

@nojaf nojaf requested a review from T-Gro January 19, 2023 07:42
Copy link
Contributor

@edgarfgp edgarfgp left a comment

Choose a reason for hiding this comment

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

This a needed warning when using signature files :) . Thanks

Copy link
Contributor

@psfinaki psfinaki left a comment

Choose a reason for hiding this comment

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

Good stuff. It's like - "we should have had this 10 years ago". Thanks :)

@vzarytovskii vzarytovskii enabled auto-merge (squash) January 20, 2023 12:20
@vzarytovskii vzarytovskii merged commit a4ec896 into dotnet:main Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants