Private
Public Access
VisualStudio Code cleanup with custom profile
This commit is contained in:
1 parent
aebd678720
commit
bd9bd1d297
15 files changed
+40
-30
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
[*.cs]
|
||||||
|
|
||||||
|
# CS1591: Missing XML comment for publicly visible type or member
|
||||||
|
dotnet_diagnostic.CS1591.severity = suggestion
|
||||||
+1
@@ -178,6 +178,7 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<None Include=".editorconfig" />
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
|||||||
+6
-1
@@ -5,7 +5,12 @@ VisualStudioVersion = 16.0.30503.244
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Advanced Software Engineering", "Advanced Software Engineering.csproj", "{B9DF94A0-9DFB-4F1E-B126-38DFBBE72C0C}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Advanced Software Engineering", "Advanced Software Engineering.csproj", "{B9DF94A0-9DFB-4F1E-B126-38DFBBE72C0C}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Advanced Software Engineering Tests", "..\Advanced Software Engineering Tests\Advanced Software Engineering Tests.csproj", "{3CD5C4CF-DA9E-41B2-8718-17217DB8BCD5}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Advanced Software Engineering Tests", "..\Advanced Software Engineering Tests\Advanced Software Engineering Tests.csproj", "{3CD5C4CF-DA9E-41B2-8718-17217DB8BCD5}"
|
||||||
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D7948692-84F9-491E-8C8A-5B754BCB74F1}"
|
||||||
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
.editorconfig = .editorconfig
|
||||||
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
namespace Advanced_Software_Engineering {
|
namespace Advanced_Software_Engineering {
|
||||||
|
|
||||||
public class CommandAndParameterParserResult {
|
public class CommandAndParameterParserResult {
|
||||||
private string command;
|
private readonly string command;
|
||||||
private string[] parameters;
|
private readonly string[] parameters;
|
||||||
|
|
||||||
public CommandAndParameterParserResult(string command, string[] parameters) {
|
public CommandAndParameterParserResult(string command, string[] parameters) {
|
||||||
this.command = command;
|
this.command = command;
|
||||||
|
|||||||
+3
-3
@@ -4,9 +4,9 @@ using System;
|
|||||||
namespace Advanced_Software_Engineering.Verbs.Value {
|
namespace Advanced_Software_Engineering.Verbs.Value {
|
||||||
|
|
||||||
public class DeclareVariable : IVerb {
|
public class DeclareVariable : IVerb {
|
||||||
private Drawer drawer;
|
private readonly Drawer drawer;
|
||||||
private IValue value;
|
private readonly IValue value;
|
||||||
private string name;
|
private readonly string name;
|
||||||
|
|
||||||
//Common characters that people might try
|
//Common characters that people might try
|
||||||
private static readonly char[] illegalCharacters = "1234567890!?/+- \"'@#~;:><,.`¬|[]{}\\£$%^&*()".ToCharArray();
|
private static readonly char[] illegalCharacters = "1234567890!?/+- \"'@#~;:><,.`¬|[]{}\\£$%^&*()".ToCharArray();
|
||||||
|
|||||||
+3
-3
@@ -129,19 +129,19 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
if (!text.Contains("."))
|
if (!text.Contains("."))
|
||||||
try {
|
try {
|
||||||
return ValueFactory.CreateValue(text, "int");
|
return ValueFactory.CreateValue(text, "int");
|
||||||
} catch (Exception e) { }
|
} catch (Exception) { }
|
||||||
|
|
||||||
//Check if string is a double
|
//Check if string is a double
|
||||||
else
|
else
|
||||||
try {
|
try {
|
||||||
return ValueFactory.CreateValue(text, "double");
|
return ValueFactory.CreateValue(text, "double");
|
||||||
} catch (Exception e) { }
|
} catch (Exception) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check if color
|
//Check if color
|
||||||
try {
|
try {
|
||||||
return ValueFactory.CreateValue(text, "color");
|
return ValueFactory.CreateValue(text, "color");
|
||||||
} catch (Exception e) { }
|
} catch (Exception) { }
|
||||||
} else {
|
} else {
|
||||||
//Check if string is a bool TODO
|
//Check if string is a bool TODO
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -4,12 +4,12 @@ using System.Drawing;
|
|||||||
namespace Advanced_Software_Engineering.Verbs.Value.ValueObjects {
|
namespace Advanced_Software_Engineering.Verbs.Value.ValueObjects {
|
||||||
|
|
||||||
internal class ColorValue : IValue {
|
internal class ColorValue : IValue {
|
||||||
private IValue r;
|
private readonly IValue r;
|
||||||
private IValue g;
|
private readonly IValue g;
|
||||||
private IValue b;
|
private readonly IValue b;
|
||||||
|
|
||||||
private bool hasAlpha;
|
private readonly bool hasAlpha;
|
||||||
private IValue a;
|
private readonly IValue a;
|
||||||
|
|
||||||
public ColorValue(Color value) {
|
public ColorValue(Color value) {
|
||||||
r = new IntValue(value.R);
|
r = new IntValue(value.R);
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@
|
|||||||
namespace Advanced_Software_Engineering.Verbs.Value.ValueObjects {
|
namespace Advanced_Software_Engineering.Verbs.Value.ValueObjects {
|
||||||
|
|
||||||
public class PointValue {
|
public class PointValue {
|
||||||
private IValue x;
|
private readonly IValue x;
|
||||||
private IValue y;
|
private readonly IValue y;
|
||||||
|
|
||||||
public PointValue(IValue x, IValue y) {
|
public PointValue(IValue x, IValue y) {
|
||||||
this.x = x;
|
this.x = x;
|
||||||
|
|||||||
+2
-2
@@ -4,9 +4,9 @@ using System.Drawing;
|
|||||||
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
||||||
|
|
||||||
internal class BoolValue : IValue {
|
internal class BoolValue : IValue {
|
||||||
private bool initialised = false;
|
private readonly bool initialised = false;
|
||||||
|
|
||||||
private bool value;
|
private readonly bool value;
|
||||||
|
|
||||||
public BoolValue(bool value) {
|
public BoolValue(bool value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
|||||||
+3
-3
@@ -4,9 +4,9 @@ using System.Drawing;
|
|||||||
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
||||||
|
|
||||||
internal class ComparisonValue : IValue {
|
internal class ComparisonValue : IValue {
|
||||||
private string op;
|
private readonly string op;
|
||||||
private IValue value1;
|
private readonly IValue value1;
|
||||||
private IValue value2;
|
private readonly IValue value2;
|
||||||
|
|
||||||
public ComparisonValue(IValue value1, IValue value2, string op) {
|
public ComparisonValue(IValue value1, IValue value2, string op) {
|
||||||
this.value1 = value1;
|
this.value1 = value1;
|
||||||
|
|||||||
+2
-2
@@ -4,12 +4,12 @@ using System.Drawing;
|
|||||||
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
||||||
|
|
||||||
internal class DoubleValue : IValue {
|
internal class DoubleValue : IValue {
|
||||||
private bool initialised = false;
|
private readonly bool initialised = false;
|
||||||
|
|
||||||
private bool colorValueCacheAvailable = false;
|
private bool colorValueCacheAvailable = false;
|
||||||
private Color colorValueCache;
|
private Color colorValueCache;
|
||||||
|
|
||||||
private double value;
|
private readonly double value;
|
||||||
|
|
||||||
public DoubleValue(double value) {
|
public DoubleValue(double value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
|||||||
+3
-3
@@ -9,9 +9,9 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
|||||||
public const int MULTIPLY = 2;
|
public const int MULTIPLY = 2;
|
||||||
public const int DIVIDE = 3;
|
public const int DIVIDE = 3;
|
||||||
|
|
||||||
private IValue variable1;
|
private readonly IValue variable1;
|
||||||
private IValue variable2;
|
private readonly IValue variable2;
|
||||||
private int operation;
|
private readonly int operation;
|
||||||
|
|
||||||
private bool evaluated = false;
|
private bool evaluated = false;
|
||||||
private IValue evaluatedValue;
|
private IValue evaluatedValue;
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
|||||||
internal class IntValue : IValue {
|
internal class IntValue : IValue {
|
||||||
private readonly bool initialised = false;
|
private readonly bool initialised = false;
|
||||||
|
|
||||||
private int value;
|
private readonly int value;
|
||||||
|
|
||||||
private bool doubleValueCacheAvaiable = false;
|
private bool doubleValueCacheAvaiable = false;
|
||||||
private double doubleValueCache;
|
private double doubleValueCache;
|
||||||
|
|||||||
+2
-2
@@ -4,8 +4,8 @@ using System.Drawing;
|
|||||||
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
namespace Advanced_Software_Engineering.Verbs.Value.ValueTypes {
|
||||||
|
|
||||||
public class VariableValue : IValue {
|
public class VariableValue : IValue {
|
||||||
private Drawer drawer;
|
private readonly Drawer drawer;
|
||||||
private string variableName;
|
private readonly string variableName;
|
||||||
|
|
||||||
public VariableValue(Drawer drawer, string variableName) {
|
public VariableValue(Drawer drawer, string variableName) {
|
||||||
this.variableName = variableName;
|
this.variableName = variableName;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Advanced_Software_Engineering {
|
|||||||
|
|
||||||
public partial class Draw_Preview : Form {
|
public partial class Draw_Preview : Form {
|
||||||
private Graphics graphics;
|
private Graphics graphics;
|
||||||
private Commander commander;
|
private readonly Commander commander;
|
||||||
private bool pardonCommands;
|
private bool pardonCommands;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in new issue
Block a user