Case study – Cloudy Skies Airlines
In Chapter 13, we built a ToStringAnalyzer
that detects classes that do not override the ToString
method. This results in suggestions in the Visual Studio editor and a message in the error list.
Cloudy Skies Airlines has deployed this internally and found it to be generally helpful, but there are a few things that need improvement:
- Although violations of the
ToString
override rule are flagged by the analyzer, not every developer is addressing this issue. When discussed internally, some developers stated they didn’t want to take the time to address it. Additionally, some of the newer developers didn’t fully understand the rule or what fixing it would look like. - Whenever a new analyzer is created or a bug in an existing analyzer is addressed, a new VSIX file must be created. Developers then need to download and install it to get the updated version. Because of this, it’s hard for the team to know which developers...