mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
* Source gen reorganizations + component unpause generator. This commit (and subsequent commits) aims to clean up our Roslyn plugin (source gens + analyzers) stack to more sanely re-use common code I also built a new source-gen that automatically generates unpausing implementations for components, incrementing attributed TimeSpan field when unpaused. * Fix warnings in all Roslyn projects
35 lines
1.7 KiB
C#
35 lines
1.7 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 static SuppressionDescriptor MeansImplicitAssignment =>
|
|
new SuppressionDescriptor("RADC1000", "CS0649", "Marked as implicitly assigned.");
|
|
}
|