mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* New "must call base" analyzer. This enforces that you actually call base when overriding stuff. This is intended for base methods like entity system's, where server/client systems overriding shared ones SHOULD call Initialize() and such. * Add MustCallBase to entity system methods
39 lines
1.9 KiB
C#
39 lines
1.9 KiB
C#
using Microsoft.CodeAnalysis;
|
|
|
|
namespace Robust.Roslyn.Shared;
|
|
|
|
public static class Diagnostics
|
|
{
|
|
public const string IdExplicitInterface = "RA0000";
|
|
public const string IdSerializable = "RA0001";
|
|
public const string IdAccess = "RA0002";
|
|
public const string IdExplicitVirtual = "RA0003";
|
|
public const string IdTaskResult = "RA0004";
|
|
public const string IdUseGenericVariant = "RA0005";
|
|
public const string IdUseGenericVariantInvalidUsage = "RA0006";
|
|
public const string IdUseGenericVariantAttributeValueError = "RA0007";
|
|
public const string IdNotNullableFlagNotSet = "RA0008";
|
|
public const string IdInvalidNotNullableFlagValue = "RA0009";
|
|
public const string IdInvalidNotNullableFlagImplementation = "RA0010";
|
|
public const string IdInvalidNotNullableFlagType = "RA0011";
|
|
public const string IdNotNullableFlagValueType = "RA0012";
|
|
public const string IdByRefEventSubscribedByValue = "RA0013";
|
|
public const string IdByRefEventRaisedByValue = "RA0015";
|
|
public const string IdValueEventRaisedByRef = "RA0016";
|
|
public const string IdDataDefinitionPartial = "RA0017";
|
|
public const string IdNestedDataDefinitionPartial = "RA0018";
|
|
public const string IdDataFieldWritable = "RA0019";
|
|
public const string IdDataFieldPropertyWritable = "RA0020";
|
|
public const string IdComponentPauseNotComponent = "RA0021";
|
|
public const string IdComponentPauseNoFields = "RA0022";
|
|
public const string IdComponentPauseNoParentAttribute = "RA0023";
|
|
public const string IdComponentPauseWrongTypeAttribute = "RA0024";
|
|
public const string IdDependencyFieldAssigned = "RA0025";
|
|
public const string IdUncachedRegex = "RA0026";
|
|
public const string IdDataFieldRedundantTag = "RA0027";
|
|
public const string IdMustCallBase = "RA0028";
|
|
|
|
public static SuppressionDescriptor MeansImplicitAssignment =>
|
|
new SuppressionDescriptor("RADC1000", "CS0649", "Marked as implicitly assigned.");
|
|
}
|