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

C#: CS1591 from NoWarn to suggestion #81934

Merged

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Sep 19, 2023

Migrates CS1591 (Missing XML comment for publicly visible type or member) from GodotSharp.csproj to a custom rule in .editorconfig. Instead of being outright removed as a warning, it's now handled as a suggestion; this retains the benefit of cleaning up the flood editor warnings, but doesn't tuck away it completely (for the editor, it's functionally disabled for build-related tasks). The actual method it will choose to show a suggestion depends on the IDE, but it's never in a way that frustratingly pollutes the editor (or, at least, not anywhere close to the extent seen with warnings)

I prefer this style over outright disabling it because, as the comment on the original implementation mentions, this is meant to be a temporary measure. Keeping it hidden away entirely doesn't give much incentive to eventually populate the documentation, and risks future contributions not realizing it was an expectation in the first place. I believe keeping it as a suggestion will lend itself to the gradual implementation of the remaining documentation

Copy link
Member

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

modules/mono/glue/GodotSharp/.editorconfig Outdated Show resolved Hide resolved
@Repiteo Repiteo force-pushed the c#-CS1591-disabled-to-suggestion branch from 8666ad8 to 657d81e Compare September 19, 2023 18:12
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Sep 19, 2023
@akien-mga akien-mga merged commit 4613bfc into godotengine:master Sep 20, 2023
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the c#-CS1591-disabled-to-suggestion branch September 20, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants