From 75f23590c8342b9e002afea1b21f8057b7616449 Mon Sep 17 00:00:00 2001
From: Jarl Gullberg <jarl.gullberg@gmail.com>
Date: Fri, 28 Jul 2017 13:40:52 +0200
Subject: [PATCH 1/5] Enable SA1002.

---
 stylecop.ruleset | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stylecop.ruleset b/stylecop.ruleset
index 5cb6a671..dcf1791e 100644
--- a/stylecop.ruleset
+++ b/stylecop.ruleset
@@ -8,7 +8,7 @@
     <!-- Spacing rules -->
     <Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
     <Rule Id="SA1001" Action="Error" /> <!-- Commas must be spaced correctly -->
-    <Rule Id="SA1002" Action="None" /> <!-- Semicolons must be spaced correctly -->
+    <Rule Id="SA1002" Action="Error" /> <!-- Semicolons must be spaced correctly -->
     <Rule Id="SA1003" Action="None" /> <!-- Symbols must be spaced correctly -->
     <Rule Id="SA1004" Action="None" /> <!-- Documentation lines must begin with single space -->
     <Rule Id="SA1005" Action="None" /> <!-- Single line comments must begin with single space -->

From 3654fa4107607d4cb4c9207f8e839434e1fe0b6f Mon Sep 17 00:00:00 2001
From: Jarl Gullberg <jarl.gullberg@gmail.com>
Date: Fri, 28 Jul 2017 13:43:12 +0200
Subject: [PATCH 2/5] Correct semicolon spacing in OpenTK.

---
 src/OpenTK/Audio/OpenAL/AL/EffectsExtensionPresets.cs | 2 +-
 src/OpenTK/Input/GamePadConfiguration.cs              | 2 +-
 src/OpenTK/Platform/Android/GameViewBase.cs           | 4 ++--
 src/OpenTK/Platform/MacOS/HIDInput.cs                 | 4 ++--
 src/OpenTK/Platform/X11/API.cs                        | 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/OpenTK/Audio/OpenAL/AL/EffectsExtensionPresets.cs b/src/OpenTK/Audio/OpenAL/AL/EffectsExtensionPresets.cs
index 1323a106..f8d7a7c3 100644
--- a/src/OpenTK/Audio/OpenAL/AL/EffectsExtensionPresets.cs
+++ b/src/OpenTK/Audio/OpenAL/AL/EffectsExtensionPresets.cs
@@ -122,7 +122,7 @@ namespace OpenTK.Audio.OpenAL
 
             output.Gain = 0.32f; // todo, currently default
             output.GainHF = 0.89f; // todo, currently default
-            output.GainLF = 1f;// todo, currently default
+            output.GainLF = 1f; // todo, currently default
 
             output.LFReference = input.LFReference;
             output.HFReference = input.HFReference;
diff --git a/src/OpenTK/Input/GamePadConfiguration.cs b/src/OpenTK/Input/GamePadConfiguration.cs
index 4d61dbdb..f2eece96 100644
--- a/src/OpenTK/Input/GamePadConfiguration.cs
+++ b/src/OpenTK/Input/GamePadConfiguration.cs
@@ -216,7 +216,7 @@ namespace OpenTK.Input
                 case 1: position = HatPosition.Up; break;
                 case 2: position = HatPosition.Right; break;
                 case 3: position = HatPosition.UpRight; break;
-                case 4: position = HatPosition.Down ; break;
+                case 4: position = HatPosition.Down; break;
                 case 6: position = HatPosition.DownRight; break;
                 case 8: position = HatPosition.Left; break;
                 case 9: position = HatPosition.UpLeft; break;
diff --git a/src/OpenTK/Platform/Android/GameViewBase.cs b/src/OpenTK/Platform/Android/GameViewBase.cs
index 7fa788ef..4f6a3f9b 100644
--- a/src/OpenTK/Platform/Android/GameViewBase.cs
+++ b/src/OpenTK/Platform/Android/GameViewBase.cs
@@ -829,8 +829,8 @@ namespace OpenTK
         ///   </para>
         /// </remarks>
         event EventHandler<KeyPressEventArgs> INativeWindow.KeyPress {
-            add { throw new NotSupportedException ();}
-            remove { throw new NotSupportedException ();}
+            add { throw new NotSupportedException (); }
+            remove { throw new NotSupportedException (); }
         }
 
         public virtual int Width {
diff --git a/src/OpenTK/Platform/MacOS/HIDInput.cs b/src/OpenTK/Platform/MacOS/HIDInput.cs
index 705f862e..c33a94ff 100644
--- a/src/OpenTK/Platform/MacOS/HIDInput.cs
+++ b/src/OpenTK/Platform/MacOS/HIDInput.cs
@@ -1165,7 +1165,7 @@ namespace OpenTK.Platform.MacOS
             [DllImport(hid)]
             public static extern IOReturn IOHIDManagerOpen(
                 IOHIDManagerRef manager,
-                IOOptionBits options) ;
+                IOOptionBits options);
 
             [DllImport(hid)]
             public static extern IOReturn IOHIDDeviceOpen(
@@ -1234,7 +1234,7 @@ namespace OpenTK.Platform.MacOS
             [DllImport(hid)]
             public static extern double IOHIDValueGetScaledValue(
                 IOHIDValueRef @value,
-                IOHIDValueScaleType type) ;
+                IOHIDValueScaleType type);
 
             [DllImport(hid)]
             public static extern IOHIDElementType IOHIDElementGetType(
diff --git a/src/OpenTK/Platform/X11/API.cs b/src/OpenTK/Platform/X11/API.cs
index 0628fca1..79e925dd 100644
--- a/src/OpenTK/Platform/X11/API.cs
+++ b/src/OpenTK/Platform/X11/API.cs
@@ -379,7 +379,7 @@ namespace OpenTK.Platform.X11
 
             private byte nhsync;     /* Number of horiz sync ranges */
             /*XF86VidModeSyncRange* */
-            private IntPtr hsync;/* Horizontal sync ranges */
+            private IntPtr hsync; /* Horizontal sync ranges */
 
             private byte nvsync;     /* Number of vert sync ranges */
             /*XF86VidModeSyncRange* */
@@ -1467,7 +1467,7 @@ XF86VidModeGetGammaRampSize(
             {
                 //ptr = XRRSizes(dpy, screen, &nsizes);
 
-                byte* data = (byte*)XRRSizes(dpy, screen, &count);//(byte*)ptr;
+                byte* data = (byte*)XRRSizes(dpy, screen, &count); //(byte*)ptr;
                 if (count == 0)
                 {
                     return null;

From fb0c24a56cb3ceaa204040954a9288afac25a9e5 Mon Sep 17 00:00:00 2001
From: Jarl Gullberg <jarl.gullberg@gmail.com>
Date: Fri, 28 Jul 2017 13:43:22 +0200
Subject: [PATCH 3/5] Correct semicolon spacing in Generator.Bind.

---
 src/Generator.Bind/Settings.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Generator.Bind/Settings.cs b/src/Generator.Bind/Settings.cs
index 92da5a9f..4a67c46a 100644
--- a/src/Generator.Bind/Settings.cs
+++ b/src/Generator.Bind/Settings.cs
@@ -110,7 +110,7 @@ namespace Bind
         }
 
         // New enums namespace (don't use a nested class).
-        public string EnumsNamespace = null;// = "Enums";
+        public string EnumsNamespace = null; // = "Enums";
 
         public string DelegatesClass = "Delegates";
         public string ImportsClass = "Core";

From 5dcbea84058d4f280b920800866459865b511677 Mon Sep 17 00:00:00 2001
From: Jarl Gullberg <jarl.gullberg@gmail.com>
Date: Fri, 4 Aug 2017 12:04:46 +0200
Subject: [PATCH 4/5] Correct semicolon spacing in API.cs

---
 src/OpenTK/Platform/X11/API.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/OpenTK/Platform/X11/API.cs b/src/OpenTK/Platform/X11/API.cs
index 79e925dd..6ad1fd29 100644
--- a/src/OpenTK/Platform/X11/API.cs
+++ b/src/OpenTK/Platform/X11/API.cs
@@ -383,7 +383,7 @@ namespace OpenTK.Platform.X11
 
             private byte nvsync;     /* Number of vert sync ranges */
             /*XF86VidModeSyncRange* */
-            private IntPtr vsync;/* Vertical sync ranges */
+            private IntPtr vsync; /* Vertical sync ranges */
         }
 
         [StructLayout(LayoutKind.Sequential)]

From 15551b015f68cfb080e000560d410577463033a7 Mon Sep 17 00:00:00 2001
From: Jarl Gullberg <jarl.gullberg@gmail.com>
Date: Fri, 4 Aug 2017 12:04:59 +0200
Subject: [PATCH 5/5] Correct semicolon spacing in XWindowInfoInitializer.cs

---
 src/OpenTK.GLWidget/X11/XWindowInfoInitializer.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/OpenTK.GLWidget/X11/XWindowInfoInitializer.cs b/src/OpenTK.GLWidget/X11/XWindowInfoInitializer.cs
index 4ca02b0f..74b86d54 100644
--- a/src/OpenTK.GLWidget/X11/XWindowInfoInitializer.cs
+++ b/src/OpenTK.GLWidget/X11/XWindowInfoInitializer.cs
@@ -125,16 +125,16 @@ namespace OpenTK.X11
             //attributeList.Add(Buffers);
 
             attributeList.Add((int)GLXAttribute.ACCUM_RED_SIZE);
-            attributeList.Add(mode.AccumulatorFormat.Red / 4);// TODO support 16-bit
+            attributeList.Add(mode.AccumulatorFormat.Red / 4); // TODO support 16-bit
 
             attributeList.Add((int)GLXAttribute.ACCUM_GREEN_SIZE);
-            attributeList.Add(mode.AccumulatorFormat.Green / 4);// TODO support 16-bit
+            attributeList.Add(mode.AccumulatorFormat.Green / 4); // TODO support 16-bit
 
             attributeList.Add((int)GLXAttribute.ACCUM_BLUE_SIZE);
-            attributeList.Add(mode.AccumulatorFormat.Blue / 4);// TODO support 16-bit
+            attributeList.Add(mode.AccumulatorFormat.Blue / 4); // TODO support 16-bit
 
             attributeList.Add((int)GLXAttribute.ACCUM_ALPHA_SIZE);
-            attributeList.Add(mode.AccumulatorFormat.Alpha / 4);// TODO support 16-bit
+            attributeList.Add(mode.AccumulatorFormat.Alpha / 4); // TODO support 16-bit
 
             attributeList.Add((int)GLXAttribute.NONE);