OSDN Git Service

`{`, `}` の前後にスペースを入れる (SA1012, SA1013)
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 13 Feb 2022 11:20:42 +0000 (20:20 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 27 Feb 2022 23:43:38 +0000 (08:43 +0900)
OpenTween.Tests/Api/TwitterApiStatusTest.cs
OpenTween.Tests/MyCommonTest.cs
OpenTween/Growl.cs

index 0c87126..e9511b9 100644 (file)
@@ -130,19 +130,19 @@ namespace OpenTween.Api
         public static readonly TheoryData<Dictionary<string, string>, TwitterApiAccessLevel?> ParseAccessLevel_TestCase = new TheoryData<Dictionary<string, string>, TwitterApiAccessLevel?>
         {
             {
-                new Dictionary<string, string> { {"X-Access-Level", "read"} },
+                new Dictionary<string, string> { { "X-Access-Level", "read" } },
                 TwitterApiAccessLevel.Read
             },
             {
-                new Dictionary<string, string> { {"X-Access-Level", "read-write"} },
+                new Dictionary<string, string> { { "X-Access-Level", "read-write" } },
                 TwitterApiAccessLevel.ReadWrite
             },
             {
-                new Dictionary<string, string> { {"X-Access-Level", "read-write-directmessages"} },
+                new Dictionary<string, string> { { "X-Access-Level", "read-write-directmessages" } },
                 TwitterApiAccessLevel.ReadWriteAndDirectMessage
             },
             {
-                new Dictionary<string, string> { {"X-Access-Level", ""} }, // 何故かたまに出てくるやつ
+                new Dictionary<string, string> { { "X-Access-Level", "" } }, // 何故かたまに出てくるやつ
                 null
             },
             {
index 6c04b36..6845ad6 100644 (file)
@@ -189,7 +189,7 @@ namespace OpenTween
                 "https://twitter.com/Favstar_LM/status/249493863826350080"
             },
             {
-                new PostClass { StatusId = 216033842434289664L, ScreenName = "haru067", RetweetedId = 200245741443235840L, RetweetedBy = "re4k"},
+                new PostClass { StatusId = 216033842434289664L, ScreenName = "haru067", RetweetedId = 200245741443235840L, RetweetedBy = "re4k" },
                 "https://twitter.com/haru067/status/200245741443235840"
             },
         };
index c519852..0b05b08 100644 (file)
@@ -291,15 +291,18 @@ namespace OpenTween
                         BindingFlags.CreateInstance,
                         null,
                         _connector,
-                        new object[] {AppName,
-                                      notificationName,
-                                      id,
-                                      title,
-                                      text,
-                                      res,
-                                      false,
-                                      priority,
-                                      "aaa"},
+                        new object[]
+                        {
+                            AppName,
+                            notificationName,
+                            id,
+                            title,
+                            text,
+                            res,
+                            false,
+                            priority,
+                            "aaa",
+                        },
                         CultureInfo.InvariantCulture);
             }
             else
@@ -309,11 +312,14 @@ namespace OpenTween
                         BindingFlags.CreateInstance,
                         null,
                         _connector,
-                        new object[] {AppName,
-                                      notificationName,
-                                      id,
-                                      title,
-                                      text},
+                        new object[]
+                        {
+                            AppName,
+                            notificationName,
+                            id,
+                            title,
+                            text,
+                        },
                         CultureInfo.InvariantCulture);
             }
             var cc = _connector.GetType("Growl.Connector.CallbackContext").InvokeMember(