mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
* Add ForbidLiteral attribute, analyzer, and test * Removed unused code * Switch order of methods. It's better this way.
12 lines
424 B
C#
12 lines
424 B
C#
using System;
|
|
|
|
namespace Robust.Shared.Analyzers;
|
|
|
|
/// <summary>
|
|
/// Marks that values used for this parameter should not be literal values.
|
|
/// This helps prevent magic numbers/strings/etc, by indicating that values
|
|
/// should either be wrapped (for validation) or defined as constants or readonly statics.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Parameter)]
|
|
public sealed class ForbidLiteralAttribute : Attribute;
|