mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
* Add ValidateMemberAttribute, analyzer and test
* Use attribute on DirtyFields methods
* Defer member lookup
* Additional test case
* Add support for collection types
* Poke tests
* Revert "Add support for collection types"
This reverts commit 2b8f5534bd.
* break, not continue
* Cheaper attribute check with AttributeHelper
* Clean up unused helper method
---------
Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
55 lines
2.9 KiB
C#
55 lines
2.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 const string IdDataFieldNoVVReadWrite = "RA0029";
|
|
public const string IdUseNonGenericVariant = "RA0030";
|
|
public const string IdPreferOtherType = "RA0031";
|
|
public const string IdDuplicateDependency = "RA0032";
|
|
public const string IdForbidLiteral = "RA0033";
|
|
public const string IdObsoleteInheritance = "RA0034";
|
|
public const string IdObsoleteInheritanceWithMessage = "RA0035";
|
|
public const string IdDataFieldYamlSerializable = "RA0036";
|
|
public const string IdPrototypeNetSerializable = "RA0037";
|
|
public const string IdPrototypeSerializable = "RA0038";
|
|
public const string IdPrototypeInstantiation = "RA0039";
|
|
public const string IdAutoGenStateAttributeMissing = "RA0040";
|
|
public const string IdAutoGenStateParamMissing = "RA0041";
|
|
public const string IdPrototypeRedundantType = "RA0042";
|
|
public const string IdPrototypeEndsWithPrototype = "RA0043";
|
|
public const string IdValidateMember = "RA0044";
|
|
|
|
public static SuppressionDescriptor MeansImplicitAssignment =>
|
|
new SuppressionDescriptor("RADC1000", "CS0649", "Marked as implicitly assigned.");
|
|
}
|