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

Silence StyleCop warnings #191

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

symbiogenesis
Copy link
Collaborator

@symbiogenesis symbiogenesis commented Jul 1, 2024

I recently turned on lots of warnings to help ensure readability, code quality, and consistency. I fixed the uncontroversial warnings.

In this PR, the controversial warnings from before I am silencing, which should preserve most of the original stylistic feeling.

These are: SA1101, SA1124, and SA1309

The general concept behind SA1101 and SA1309, as described, is to make it explicit that you are calling a method of a particular instance, and that you are covertly passing "this" to non-static methods. It also allows better IntelliSense.

SA1124 recommends not using regions and provides an explanation for why. Regardless, the other element ordering rules which are being followed will help ensure consistent member ordering and readability, with or without regions.

@symbiogenesis symbiogenesis self-assigned this Jul 1, 2024
@symbiogenesis
Copy link
Collaborator Author

@akgulebubekir your call whether to merge this, or follow another approach.

@symbiogenesis symbiogenesis force-pushed the silence-warnings branch 2 times, most recently from ddc51da to 54a59dc Compare July 3, 2024 02:04
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.

None yet

2 participants