diff --git a/Terminal.sln.DotSettings b/Terminal.sln.DotSettings index ac3b66baf..e83ed7026 100644 --- a/Terminal.sln.DotSettings +++ b/Terminal.sln.DotSettings @@ -8,7 +8,6 @@ 2000 SUGGESTION ERROR - WARNING HINT SUGGESTION @@ -390,58 +389,21 @@ <Policy><Descriptor Staticness="Any" AccessRightKinds="Private" Description="Constant fields (private)"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></Policy> <Policy><Descriptor Staticness="Instance" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Instance fields (not private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></Policy> <Policy><Descriptor Staticness="Static" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Static fields (not private)"><ElementKinds><Kind Name="FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Types and namespaces"><ElementKinds><Kind Name="NAMESPACE" /><Kind Name="CLASS" /><Kind Name="STRUCT" /><Kind Name="ENUM" /><Kind Name="DELEGATE" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="AaBb_AaBb" /></Policy></Policy> <Policy><Descriptor Staticness="Static" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Static readonly fields (not private)"><ElementKinds><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></Policy> + True + ..\Terminal.sln.ToDo.DotSettings + True + 1 PushToShowHints True True True True True - True - #FFCF9D32 - True - Suggestion - (?<=\W|^)(?<TAG>SUGGESTION:)(\W|$)(.*) - Question - (?<=\W|^)(?<TAG>BUG:|BUGBUG:)(\W|$)(.*) - True - True - #FFCF9D32 - True - Performance - (?<=\W|^)(?<TAG>PERF:)(\W|$)(.*) - Warning - True - True - #FFCF9D32 - True - Note - (?<=\W|^)(?<TAG>NOTE:)(\W|$)(.*) - Normal - True - True - #FFCF9D32 - True - Question - (?<=\W|^)(?<TAG>QUESTION:)(\W|$)(.*) - Question - True - (?<=\W|^)(?<TAG>TODO:)(\W|$)(.*) - True - True - #FFCF9D32 - True - Unclear Intent - (?<=\W|^)(?<TAG>UNCLEAR:|INTENT:)(\W|$)(.*) - Warning - True - #FFCF9D32 - True - Concurrency Issue - (?<=\W|^)(?<TAG>CONCURRENCY:)(\W|$)(.*) - Warning True True True True + True diff --git a/Terminal.sln.ToDo.DotSettings b/Terminal.sln.ToDo.DotSettings new file mode 100644 index 000000000..e72f67f03 --- /dev/null +++ b/Terminal.sln.ToDo.DotSettings @@ -0,0 +1,82 @@ + + Bug + (?<=\W|^)(?<TAG>BUGBUG|BUG|PROBLEM): *(?<Message>[\S].*)$ + Warning + #FFD04040 + True + True + True + True + + Concurrency Issue + (?<=\W|^)(?<TAG>CONCURRENCY|THREADSAFETY|THREADING): *(?<Message>[\S].*)$ + Warning + #FFC05030 + True + True + True + True + + Note + (?<=\W|^)(?<TAG>NOTE): *(?<Message>[\S].*)$ + Normal + #FF800080 + True + True + True + True + + Performance + (?<=\W|^)(?<TAG>PERFORMANCE|PERF): *(?<Message>[\S].*)$ + Warning + #FFFF6200 + True + True + True + True + + Question + (?<=\W|^)(?<TAG>QUESTION|Q): *(?<Message>[\S].*)$ + Question + #FF2040A0 + True + True + True + True + + Security Issue + (?<=\W|^)(?<TAG>SECURITY|SEC): *(?<Message>[\S].*)$ + Warning + #FFA02020 + True + True + True + True + + Suggestion + (?<=\W|^)(?<TAG>SUGGESTION): *(?<Message>[\S].*)$ + Question + #FF3090C0 + True + True + True + True + + ToDo + Question + (?<=\W|^)(?<TAG>TODOTODO|TODO|TASK): *(?<Message>[\S].*)$ + #FF229988 + True + True + True + True + + Unclear Intent + (?<=\W|^)(?<TAG>UNCLEAR|INTENT|CLARITY|SPECIFY): *(?<Message>[\S].*)$ + Warning + #FF999933 + True + True + True + True + \ No newline at end of file diff --git a/UnitTests/Views/ShortcutTests.cs b/UnitTests/Views/ShortcutTests.cs index e545cde67..56e02a823 100644 --- a/UnitTests/Views/ShortcutTests.cs +++ b/UnitTests/Views/ShortcutTests.cs @@ -1,4 +1,4 @@ -using JetBrains.Annotations; +using JetBrains.Annotations; namespace Terminal.Gui.ViewsTests; @@ -362,7 +362,7 @@ public class ShortcutTests // " C 0 A " [InlineData (-1, 0, 0)] [InlineData (0, 1, 1)] - [InlineData (1, 0, 1)] // BUGBUG: This should be 1,1,1. We need to fix the logic in the Shortcut class. + [InlineData (1, 1, 1, Skip = "BUGBUG: This breaks. We need to fix the logic in the Shortcut class.")] [InlineData (2, 1, 1)] [InlineData (3, 1, 1)] [InlineData (4, 1, 1)]