Skip to content

Commit f1ebd62

Browse files
committed
Update for KSP 1.5
1 parent 2371261 commit f1ebd62

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

.editorconfig

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ root = true
55

66
# Don't use tabs for indentation.
77
[*]
8-
insert_final_newline = true
8+
insert_final_newline = false
99
end_of_line = crlf
1010
indent_style = space
1111

1212
# Code files
1313
[*.{cs,csx,vb,vbx}]
1414
indent_size = 4
15-
insert_final_newline = true
1615
charset = utf-8-bom
1716

1817
# XML files
@@ -33,7 +32,7 @@ indent_size = 2
3332
indent_size = 2
3433

3534
# Appveyor yml files
36-
[{*.yml}]
35+
[*.{yml}]
3736
indent_style = space
3837
indent_size = 2
3938

@@ -44,14 +43,27 @@ indent_size = 2
4443

4544
# Naming conventions
4645

47-
dotnet_naming_rule.everything_pascal_case.symbols = everything
48-
dotnet_naming_symbols.everything.applicable_kinds = *
49-
dotnet_naming_symbols.everything.applicable_accessibilities = *
46+
# Public methods, properties, fields etc must be PascalCase
5047

51-
dotnet_naming_rule.everything_pascal_case.style = pascal_style
52-
dotnet_naming_style.pascal_style.capitalization = pascal_case
48+
dotnet_naming_rule.public_members_must_be_capitalized.symbols = public_symbols
49+
dotnet_naming_symbols.public_symbols.applicable_kinds = property,method,field,event,delegate,class,struct,interface,enum
50+
dotnet_naming_symbols.public_symbols.applicable_accessibilities = public
5351

54-
dotnet_naming_rule.everything_pascal_case.severity = error
52+
dotnet_naming_rule.public_members_must_be_capitalized.style = first_word_upper_case_style
53+
dotnet_naming_style.first_word_upper_case_style.capitalization = pascal_case
54+
55+
dotnet_naming_rule.public_members_must_be_capitalized.severity = error
56+
57+
# Local variables (declared inside a method) must be camelCase
58+
59+
dotnet_naming_rule.private_local_fields_must_be_lower.symbols = local_symbols
60+
dotnet_naming_symbols.local_symbols.applicable_kinds = method,field
61+
dotnet_naming_symbols.local_symbols.applicable_accessibilities = local
62+
63+
dotnet_naming_rule.private_local_fields_must_be_lower.style = first_letter_lower_case_style
64+
dotnet_naming_style.first_letter_lower_case_style.capitalization = camel_case
65+
66+
dotnet_naming_rule.private_local_fields_must_be_lower.severity = error
5567

5668
####################################################################################################################
5769

ClientUpdater/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ public static void Main(string[] args)
1111
{
1212
Console.WriteLine("This program will download the latest UNSTABLE version and replace your current LMPClient");
1313

14-
if (!File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "KSP.exe")) &&
15-
!File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "KSP_x64.exe")))
14+
if (!File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "KSP_x64.exe")))
1615
Console.WriteLine("Please drop \"Client LMP Updater\" in the main KSP folder next to KSP.exe/KSP_x64.exe!");
1716
else
1817
{

appveyor.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,25 @@
66
# general configuration #
77
#---------------------------------#
88

9-
version: 1.0.0.{build}
9+
version: $(smallversion).{build}
10+
11+
# Do not build on tags (GitHub and BitBucket)
12+
skip_tags: true
13+
#Do not build if we change any of this files
14+
skip_commits:
15+
files:
16+
- '**/*.md'
17+
- '**/*.editorconfig'
1018
image: Visual Studio 2017
1119

1220
#---------------------------------#
1321
# environment configuration #
1422
#---------------------------------#
1523

1624
environment:
17-
smallversion: 1.0.0
25+
smallversion: 1.1
26+
cache:
27+
- packages -> **\packages.config
1828
assembly_info:
1929
patch: true
2030
file: '**\AssemblyInfo.*'
@@ -30,6 +40,8 @@ configuration:
3040
- Debug
3141
- Release
3242
platform: Any CPU
43+
before_build:
44+
- nuget restore
3345
build:
3446
parallel: true
3547
verbosity: minimal
@@ -64,4 +76,4 @@ deploy:
6476
draft: true
6577
force_update: true
6678
on:
67-
branch: master
79+
branch: master

0 commit comments

Comments
 (0)