Skip to content

Commit e990a07

Browse files
Merge pull request #39 from martincostello/Version-2
SqlLocalDb wrapper 2.0.0
2 parents 8dc1ece + 3f3b1d9 commit e990a07

File tree

180 files changed

+7705
-12172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+7705
-12172
lines changed

.editorconfig

+123-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,127 @@ indent_style = space
99
insert_final_newline = true
1010
trim_trailing_whitespace = true
1111

12-
[*.{csproj,json,props}]
12+
[*.{csproj,json,props,ruleset,targets}]
1313
indent_size = 2
14+
15+
# Code files
16+
[*.{cs,csx,vb,vbx}]
17+
indent_size = 4
18+
insert_final_newline = true
19+
charset = utf-8-bom
20+
21+
###############################
22+
# .NET Coding Conventions #
23+
###############################
24+
[*.{cs,vb}]
25+
# Organize usings
26+
dotnet_sort_system_directives_first = true
27+
28+
# this. preferences
29+
dotnet_style_qualification_for_field = false:none
30+
dotnet_style_qualification_for_property = false:none
31+
dotnet_style_qualification_for_method = false:none
32+
dotnet_style_qualification_for_event = false:none
33+
34+
# Language keywords vs BCL types preferences
35+
dotnet_style_predefined_type_for_locals_parameters_members = true:none
36+
dotnet_style_predefined_type_for_member_access = true:none
37+
38+
# Modifier preferences
39+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:none
40+
dotnet_style_readonly_field = true:suggestion
41+
42+
# Expression-level preferences
43+
dotnet_style_object_initializer = true:suggestion
44+
dotnet_style_collection_initializer = true:suggestion
45+
dotnet_style_explicit_tuple_names = true:suggestion
46+
dotnet_style_null_propagation = true:suggestion
47+
dotnet_style_coalesce_expression = true:suggestion
48+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:none
49+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
50+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
51+
dotnet_style_prefer_auto_properties = true:none
52+
53+
###############################
54+
# Naming Conventions #
55+
###############################
56+
57+
# Style Definitions
58+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
59+
60+
# Use PascalCase for constant fields
61+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
62+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
63+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
64+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
65+
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
66+
dotnet_naming_symbols.constant_fields.required_modifiers = const
67+
68+
###############################
69+
# C# Coding Conventions #
70+
###############################
71+
[*.cs]
72+
# var preferences
73+
csharp_style_var_for_built_in_types = true:none
74+
csharp_style_var_when_type_is_apparent = true:none
75+
csharp_style_var_elsewhere = true:none
76+
77+
# Expression-bodied members
78+
csharp_style_expression_bodied_methods = false:none
79+
csharp_style_expression_bodied_constructors = false:none
80+
csharp_style_expression_bodied_operators = false:none
81+
csharp_style_expression_bodied_properties = true:none
82+
csharp_style_expression_bodied_indexers = true:none
83+
csharp_style_expression_bodied_accessors = true:none
84+
85+
# Pattern matching preferences
86+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
87+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
88+
89+
# Null-checking preferences
90+
csharp_style_throw_expression = true:suggestion
91+
csharp_style_conditional_delegate_call = true:suggestion
92+
93+
# Modifier preferences
94+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
95+
96+
# Expression-level preferences
97+
csharp_prefer_braces = true:none
98+
csharp_style_deconstructed_variable_declaration = true:suggestion
99+
csharp_prefer_simple_default_expression = true:suggestion
100+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
101+
csharp_style_inlined_variable_declaration = true:suggestion
102+
103+
###############################
104+
# C# Formatting Rules #
105+
###############################
106+
# New line preferences
107+
csharp_new_line_before_open_brace = all
108+
csharp_new_line_before_else = true
109+
csharp_new_line_before_catch = true
110+
csharp_new_line_before_finally = true
111+
csharp_new_line_before_members_in_object_initializers = true
112+
csharp_new_line_before_members_in_anonymous_types = true
113+
csharp_new_line_between_query_expression_clauses = true
114+
115+
# Indentation preferences
116+
csharp_indent_case_contents = true
117+
csharp_indent_switch_labels = true
118+
csharp_indent_labels = flush_left
119+
120+
# Space preferences
121+
csharp_space_after_cast = false
122+
csharp_space_after_keywords_in_control_flow_statements = true
123+
csharp_space_between_method_call_parameter_list_parentheses = false
124+
csharp_space_between_method_declaration_parameter_list_parentheses = false
125+
csharp_space_between_parentheses = false
126+
csharp_space_before_colon_in_inheritance_clause = true
127+
csharp_space_after_colon_in_inheritance_clause = true
128+
csharp_space_around_binary_operators = before_and_after
129+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
130+
csharp_space_between_method_call_name_and_opening_parenthesis = false
131+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
132+
133+
# Wrapping preferences
134+
csharp_preserve_single_line_statements = true
135+
csharp_preserve_single_line_blocks = true

.github/CONTRIBUTING.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
To contribute changes (source code, scripts, configuration) to this repository please follow the steps below. These steps are a guideline for contributing and do not necessarily need to be followed for all changes.
2+
3+
1. If you intend to fix a bug please create an issue before forking the repository.
4+
1. Fork the `master` branch of this repository from the latest commit.
5+
1. Create a branch from your fork's `master` branch to help isolate your changes from any further work on `master`. If fixing an issue try to reference its name in your branch name (e.g. `issue-123`) to make changes easier to track the changes.
6+
1. Work on your proposed changes on your fork. If you are fixing an issue include at least one unit test that reproduces it if the code changes to fix it have not been applied; if you are adding new functionality please include unit tests appropriate to the changes you are making. The [code coverage figure](https://codecov.io/gh/martincostello/sqllocaldb) should be maintained where possible.
7+
1. When you think your changes are complete, test that the code builds cleanly using `Build.ps1`/`build.sh`. There should be no compiler warnings and all tests should pass.
8+
1. Once your changes build cleanly locally submit a Pull Request back to the `master` branch from your fork's branch. Ideally commits to your branch should be squashed before creating the Pull Request. If the Pull Request fixes an issue please reference it in the title and/or description. Please keep changes focused around a specific topic rather than include multiple types of changes in a single Pull Request.
9+
1. After your Pull Request is created it will build against the repository's continuous integrations.
10+
1. Once the Pull Request has been reviewed by the project's [contributors](https://github.com/martincostello/sqllocaldb/graphs/contributors) and the status checks pass your Pull Request will be merged back to the `master` branch, assuming that the changes are deemed appropriate.

.github/ISSUE_TEMPLATE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Expected behaviour
2+
3+
_Explain what you expected to happen._
4+
5+
### Actual behaviour
6+
7+
_Explain what actually happened. If an exception occurred, please include a stack trace if available._
8+
9+
### Steps to reproduce
10+
11+
_A concise, repeatable, example of how to illustrate the issue._

.github/PULL_REQUEST_TEMPLATE.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_Summarise the changes this Pull Request makes._
2+
3+
_Please include a reference to a GitHub issue if appropriate._

.github/stale.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
daysUntilStale: 56
2+
daysUntilClose: 7
3+
exemptLabels:
4+
- blocked
5+
- pinned
6+
- security
7+
staleLabel: wontfix
8+
markComment: >
9+
This issue has been automatically marked as stale because it has not had
10+
recent activity. It will be closed if no further activity occurs. Thank you
11+
for your contributions.
12+
closeComment: Closed automatically due to inactivity.

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.DS_Store
1+
.DS_Store
22
.dotnetcli
33
.metadata
44
.settings
@@ -17,6 +17,8 @@ node_modules
1717
obj
1818
packages
1919
project.lock.json
20+
samples/TodoApp/wwwroot/**/*.min.css
21+
samples/TodoApp/wwwroot/**/*.min.js
2022
TestResults
2123
typings
2224
UpgradeLog*.htm

.travis.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
sudo: required
22
dist: trusty
33

4+
os:
5+
- linux
6+
- osx
7+
48
env:
59
global:
6-
- CLI_VERSION=1.0.1
710
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
811
- NUGET_XMLDOC_MODE=skip
912

1013
branches:
1114
only:
1215
- master
1316

17+
cache:
18+
directories:
19+
- /home/travis/.nuget/packages
20+
1421
addons:
1522
apt:
1623
packages:
@@ -20,11 +27,5 @@ addons:
2027
- libssl-dev
2128
- libunwind8
2229

23-
install:
24-
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
25-
- curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR"
26-
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
27-
- dotnet --info
28-
2930
script:
3031
- ./build.sh

.vscode/launch.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run tests",
6+
"type": "coreclr",
7+
"request": "launch",
8+
"preLaunchTask": "build",
9+
"program": "dotnet",
10+
"args": [
11+
"test"
12+
],
13+
"cwd": "${workspaceRoot}/tests/SqlLocalDb.Tests",
14+
"console": "internalConsole",
15+
"stopAtEntry": false,
16+
"internalConsoleOptions": "openOnSessionStart"
17+
}
18+
]
19+
}

.vscode/tasks.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet build",
7+
"type": "shell",
8+
"group": "build",
9+
"presentation": {
10+
"reveal": "silent"
11+
},
12+
"problemMatcher": "$msCompile"
13+
}
14+
]
15+
}

AssemblyVersion.cs

-17
This file was deleted.

0 commit comments

Comments
 (0)