Skip to content

Properties reads/writes buildcheck proposal#10009

Closed
JanKrivanek wants to merge 12 commits intomainfrom
exp/props-buildcheck
Closed

Properties reads/writes buildcheck proposal#10009
JanKrivanek wants to merge 12 commits intomainfrom
exp/props-buildcheck

Conversation

@JanKrivanek
Copy link
Copy Markdown
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
@JanKrivanek JanKrivanek force-pushed the exp/props-buildcheck branch from 27c5195 to cf34f6a Compare April 18, 2024 12:10
@JanKrivanek JanKrivanek force-pushed the exp/props-buildcheck branch from e2c2f6b to 55c00ec Compare May 3, 2024 11:32
@JanKrivanek
Copy link
Copy Markdown
Member Author

Superseded by #10457

@JanKrivanek JanKrivanek closed this Sep 2, 2024
@ViktorHofer ViktorHofer deleted the exp/props-buildcheck branch December 1, 2025 16:58
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.

1 participant