diff --git a/Documentation/Synergy.Documentation.Annotations/Synergy.Documentation.Annotations.csproj b/Documentation/Synergy.Documentation.Annotations/Synergy.Documentation.Annotations.csproj index 140288e..fd95632 100644 --- a/Documentation/Synergy.Documentation.Annotations/Synergy.Documentation.Annotations.csproj +++ b/Documentation/Synergy.Documentation.Annotations/Synergy.Documentation.Annotations.csproj @@ -1,7 +1,7 @@ - + net6.0 false false diff --git a/Documentation/Synergy.Documentation.Tests/Architecture/Debt/Todos.Technical.Debt.verified.md b/Documentation/Synergy.Documentation.Tests/Architecture/Debt/Todos.Technical.Debt.verified.md index a2ba295..a66f53b 100644 --- a/Documentation/Synergy.Documentation.Tests/Architecture/Debt/Todos.Technical.Debt.verified.md +++ b/Documentation/Synergy.Documentation.Tests/Architecture/Debt/Todos.Technical.Debt.verified.md @@ -2,9 +2,11 @@ Total: 3 +## [Synergy.Documentation.Annotations.csproj](../../../Synergy.Documentation.Annotations/Synergy.Documentation.Annotations.csproj) +- TODO: Add more target frameworks --> + ## [TodoPattern.cs](../../../Synergy.Documentation/Todos/Patterns/TodoPattern.cs) - TODO: Marcin Celej [from: Marcin Celej on: 14-04-2023]: Add way to exclude some files from the scan - by path ## [TodoExplorer.cs](../../../Synergy.Documentation/Todos/TodoExplorer.cs) - TODO: Marcin Celej [from: Marcin Celej on: 26-12-2023]: Introduce md todo pattern: [//]: # (TODO Convert this markdown to docs as code) -- TODO: Marcin Celej [from: Marcin Celej on: 06-01-2024]: Introduce .csproj pattern diff --git a/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md b/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md index ee240c6..a708398 100644 --- a/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md +++ b/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md @@ -195,6 +195,12 @@ - TodoExtractor: Func { get; set; } - ctor() +## Todos.Patterns.CsprojTodoPattern (record) : TodoPattern, IEquatable, IEquatable + - FileExtension: string { get; set; } + - Regex: Regex { get; set; } + - TodoExtractor: Func { get; set; } + - ctor() + ## Todos.Patterns.GherkinTodoPattern (record) : TodoPattern, IEquatable, IEquatable - FileExtension: string { get; set; } - Regex: Regex { get; set; } diff --git a/Documentation/Synergy.Documentation.Tests/Comments/NoteTests.cs b/Documentation/Synergy.Documentation.Tests/Comments/NoteTests.cs new file mode 100644 index 0000000..8087e4a --- /dev/null +++ b/Documentation/Synergy.Documentation.Tests/Comments/NoteTests.cs @@ -0,0 +1,6 @@ +namespace Synergy.Documentation.Tests.Comments; + +public class NoteTests +{ + +} \ No newline at end of file diff --git a/Documentation/Synergy.Documentation/Todos/Patterns/CsprojTodoPattern.cs b/Documentation/Synergy.Documentation/Todos/Patterns/CsprojTodoPattern.cs new file mode 100644 index 0000000..ca4c6d4 --- /dev/null +++ b/Documentation/Synergy.Documentation/Todos/Patterns/CsprojTodoPattern.cs @@ -0,0 +1,10 @@ +using System.Text.RegularExpressions; + +namespace Synergy.Documentation.Todos.Patterns; + +public record CsprojTodoPattern() : TodoPattern( + "csproj", + new Regex("(TODO.*)"), + match => match.Groups[1] + .Value +); \ No newline at end of file diff --git a/Documentation/Synergy.Documentation/Todos/TodoExplorer.cs b/Documentation/Synergy.Documentation/Todos/TodoExplorer.cs index 7a61fb1..878bcce 100644 --- a/Documentation/Synergy.Documentation/Todos/TodoExplorer.cs +++ b/Documentation/Synergy.Documentation/Todos/TodoExplorer.cs @@ -12,9 +12,9 @@ public static class TodoExplorer { new CsharpTodoPattern(), new GherkinTodoPattern(), - new TextTodoPattern() + new TextTodoPattern(), + new CsprojTodoPattern() // TODO: Marcin Celej [from: Marcin Celej on: 26-12-2023]: Introduce md todo pattern: [//]: # (TODO Convert this markdown to docs as code) - // TODO: Marcin Celej [from: Marcin Celej on: 06-01-2024]: Introduce .csproj pattern }; public static string DebtFor(