Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copilot Instructions

## Project Guidelines
- Repository preference: format FluentStepScannerExtensions extension methods with multiline parameters and expression-bodied single-line where clauses; add [Pure] attribute to IFluentStepBuilder<TScenario> members.
14 changes: 0 additions & 14 deletions src/TestStack.BDDfy/Properties/Annotations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,20 +354,6 @@ public PublicAPIAttribute([NotNull] string comment)
[ExcludeFromCodeCoverage]
public sealed class InstantHandleAttribute : Attribute { }

/// <summary>
/// Indicates that a method does not make any observable state changes.
/// The same as <c>System.Diagnostics.Contracts.PureAttribute</c>
/// </summary>
/// <example><code>
/// [Pure] private int Multiply(int x, int y) { return x * y; }
/// public void Foo() {
/// const int a = 2, b = 2;
/// Multiply(a, b); // Waring: Return value of pure method is not used
/// }
/// </code></example>
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
public sealed class PureAttribute : Attribute { }

/// <summary>
/// Indicates that a parameter is a path to a file or a folder
/// within a web project. Path can be relative or absolute,
Expand Down
Loading
Loading