Collection of Roslyn analyzers used in various projects, generalized for re-use in generic projects.
Rule ID | Description | Category | Severity | Status | Notes |
---|---|---|---|---|---|
JPX0001 | Using new Guid() is ambiguous. |
Design | ✅ | ||
JPX0002 | Using default literal to create a Guid is ambiguous. |
Design | ℹ Information | ✅ | |
JPX0003 | Use EventArgs.Empty instead of new EventArgs() . |
Usage | 🚀 | ||
JPX0004 | Use null-objectpattern instead of creating a new empty object. | Usage | ℹ️ Information | 🚀 | |
JPX0101 | Inherited classes must use a suffix. | Naming | 🚀 |
Rule ID | Description | Category | Severity | Status | Notes |
---|---|---|---|---|---|
JPX0005 | Use EventHandler delegate for events. |
Design | 💡 | ||
JPX0006 | Use EventArgs.Empty instead of null . |
Design | 💡 | ||
JPX0007 | Use correct sender in event invocation (this for instance, null for static). |
Usage | 💡 | ||
JPX0008 | Shouldn't call Type.GetType() , probably meant GetType() on object instance. |
Usage | 💡 | ||
JPX0009 | Shouldn't return null from async method. | Usage | 💡 | ||
JPX0021 | Use String.Equals instead of == operator. | Usage | 💡 | ||
JPX0022 | Use String.Equals instead of String.Compare(...) == 0. | Usage | 💡 | ||
JPX0023 | Specify case comparison explicitly when comparing strings. | Usage | 💡 | ||
JPX0024 | Specify comparer when creating collection of strings. | Usage | 💡 | ||
JPX0025 | String literal contains zero-width character. | Usage | 💡 |
- 💡: idea / wishlisted
- 🧪: design
- 🚀: implementation
- 💚: implementation + unit test
- ✅: implementation + unit test + documentation