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

Properties reads/writes buildcheck proposal #10009

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

JanKrivanek
Copy link
Member

@JanKrivanek JanKrivanek commented Apr 15, 2024

Contributes to #9883

Context

This is a proposal of multirule integrated internal build check that checks for:

  • Property being used without being initialized
  • Property being used before being initialized
  • Property being initialized but never used

This is not yet ready for review! It is pushed to illustrate couple ideas:

  • Multirule integrated internal buildcheck
  • Buildchecks configurability
  • Sourcing data from build engine

UX

sample output from test for current proposal:

MSBUILD : warning : <path>\myProj.proj (24,10): AB002: Property: [MyPropT2] first declared/initialized at [<path>\myProj.proj (26,1)] used before it was initialized.
MSBUILD : warning : <path>\myProj.proj (13,3): AB003: Property: [MyProp13] was declared/initialized, but it was never used.
MSBUILD : warning : <path>\myProj.proj (13,3): AB001: Property: [MyProp11] was accessed, but it was never initialized.


Base automatically changed from exp/build-analyzers to main April 15, 2024 18:57
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

1 participant