-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,012 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,80 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = crlf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.ps1] | ||
indent_size = 4 | ||
|
||
[*.{cs,fsd,proto}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[argus.config] | ||
indent_style = tab | ||
indent_size = 4 | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
end_of_line = lf | ||
|
||
[*.cake] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.csproj] | ||
insert_final_newline = false | ||
|
||
[*.cs] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[{Settings.*}] | ||
charset = utf-8-bom | ||
indent_style = unset | ||
indent_size = unset | ||
trim_trailing_whitespace = unset | ||
insert_final_newline = unset | ||
end_of_line = unset | ||
|
||
# changes from VS2017 defaults | ||
csharp_style_expression_bodied_methods = true:suggestion | ||
csharp_style_expression_bodied_constructors = true:suggestion | ||
csharp_style_expression_bodied_operators = true:suggestion | ||
csharp_prefer_braces = false:none | ||
csharp_indent_switch_labels = false | ||
csharp_space_after_cast = true | ||
csharp_preserve_single_line_statements = false | ||
|
||
# use VS2017 defaults, but make them warnings (instead of none) | ||
dotnet_style_qualification_for_field = false:warning | ||
dotnet_style_qualification_for_property = false:warning | ||
dotnet_style_qualification_for_method = false:warning | ||
dotnet_style_qualification_for_event = false:warning | ||
dotnet_style_predefined_type_for_locals_parameters_members = true:warning | ||
dotnet_style_explicit_tuple_names = true:warning | ||
dotnet_style_coalesce_expression = true:warning | ||
|
||
# use VS2017 defaults, but make them suggestions (instead of none) | ||
csharp_style_var_for_built_in_types = true:suggestion | ||
csharp_style_var_when_type_is_apparent = true:suggestion | ||
csharp_style_var_elsewhere = true:suggestion | ||
csharp_style_expression_bodied_properties = true:suggestion | ||
csharp_style_expression_bodied_indexers = true:suggestion | ||
csharp_style_expression_bodied_accessors = true:suggestion | ||
|
||
# explicitly use VS2017 defaults | ||
dotnet_style_object_initializer = true:suggestion | ||
dotnet_style_collection_initializer = true:suggestion | ||
dotnet_style_null_propagation = true:suggestion | ||
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion | ||
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion | ||
csharp_style_inlined_variable_declaration = true:suggestion | ||
csharp_prefer_simple_default_expression = true:suggestion | ||
csharp_style_throw_expression = true:suggestion | ||
csharp_style_conditional_delegate_call = true:suggestion | ||
dotnet_sort_system_directives_first = true | ||
csharp_new_line_before_open_brace = all | ||
csharp_new_line_before_else = true | ||
csharp_new_line_before_catch = true | ||
csharp_new_line_before_finally = true | ||
csharp_new_line_before_members_in_object_initializers = true | ||
csharp_new_line_before_members_in_anonymous_types = true | ||
csharp_new_line_within_query_expression_clauses = true | ||
csharp_indent_case_contents = true | ||
csharp_indent_labels = one_less | ||
csharp_space_after_keywords_in_control_flow_statements = true | ||
csharp_space_between_method_declaration_parameter_list_parentheses = false | ||
csharp_space_between_method_call_parameter_list_parentheses = false | ||
csharp_space_between_parentheses = false | ||
csharp_preserve_single_line_blocks = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
* -text | ||
* text=auto eol=lf | ||
|
||
*.cs text diff=csharp | ||
*.csproj text merge=union | ||
*.sln text eol=crlf merge=union |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,21 @@ | ||
# ignore various output files | ||
*.resources | ||
|
||
# ignore output folders | ||
bin/ | ||
release/ | ||
obj/ | ||
ipch/ | ||
GeneratedCode/ | ||
Setup/ | ||
logs/ | ||
|
||
# ignore NuGet packages | ||
packages/* | ||
!packages/NuGet.CommandLine*/ | ||
|
||
# ignore user-specific options/cache files | ||
.vs/ | ||
_ReSharper.* | ||
StyleCop.Cache | ||
Thumbs.db | ||
*.csproj.user | ||
*.DotSettings.user | ||
*.opensdf | ||
*.[Rr]e[Ss]harper.user | ||
*.sdf | ||
*.sln.cache | ||
*.suo | ||
*.vcxproj.user | ||
*.pubxml.user | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.pbxuser | ||
!default.pbxuser | ||
*.perspectivev3 | ||
*.pidb | ||
*.userprefs | ||
*.tmp | ||
*.ncrunchproject | ||
*.ncrunchsolution | ||
*.ncrunchsolution.user | ||
*.crunchsolution.cache | ||
*.crunchsolution.user | ||
_NCrunch_* | ||
|
||
# Ignore log files | ||
*.log | ||
# ignore output folders | ||
bin/ | ||
build/ | ||
cake/ | ||
obj/ | ||
ipch/ | ||
release/ | ||
tools/ | ||
|
||
# ignore user-specific options/cache files | ||
.vs/ | ||
Thumbs.db | ||
*.cache | ||
*.user | ||
*.opensdf | ||
*.sdf | ||
*.suo | ||
*.userprefs | ||
*.ncrunchproject | ||
*.ncrunchsolution | ||
nCrunchTemp* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: csharp | ||
mono: latest | ||
dotnet: 2.1.401 | ||
dist: trusty | ||
sudo: false | ||
|
||
script: | ||
- ./build.sh --target=NuGetPackageTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Contributing to FindReplaceCode | ||
|
||
## Prerequisites | ||
|
||
* Install [Visual Studio 2017](https://www.visualstudio.com/downloads/) or [Visual Studio Code](https://code.visualstudio.com/) with the [editorconfig extension](https://github.com/editorconfig/editorconfig-vscode). | ||
* Install [.NET Core 2.0](https://www.microsoft.com/net/core). | ||
|
||
## Guidelines | ||
|
||
* All new code **must** have complete unit tests. | ||
* All public classes, methods, interfaces, enums, etc. **must** have correct XML documentation comments. | ||
* Update [VersionHistory](VersionHistory.md) with a human-readable description of the change. | ||
|
||
## How to Build | ||
|
||
* Clone the repository: `git clone https://github.com/Faithlife/FindReplaceCode.git` | ||
* `cd FindReplaceCode` | ||
* `dotnet test tests/FindReplaceCode.Tests` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,46 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28010.2003 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C0F6A102-92D4-4054-84BF-00D9A313577D}" | ||
ProjectSection(SolutionItems) = preProject | ||
.editorconfig = .editorconfig | ||
.gitattributes = .gitattributes | ||
.gitignore = .gitignore | ||
README.md = README.md | ||
EndProjectSection | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FindReplaceCode", "src\FindReplaceCode\FindReplaceCode.csproj", "{4E2B87C2-B50A-4876-A1EC-118554B4B389}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {61721187-4DC2-4A62-9B7A-93E34B4071E5} | ||
EndGlobalSection | ||
EndGlobal | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28010.2003 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C0F6A102-92D4-4054-84BF-00D9A313577D}" | ||
ProjectSection(SolutionItems) = preProject | ||
.editorconfig = .editorconfig | ||
.gitattributes = .gitattributes | ||
.gitignore = .gitignore | ||
.travis.yml = .travis.yml | ||
appveyor.yml = appveyor.yml | ||
build.cake = build.cake | ||
build.ps1 = build.ps1 | ||
CONTRIBUTING.md = CONTRIBUTING.md | ||
LICENSE = LICENSE | ||
README.md = README.md | ||
VersionHistory.md = VersionHistory.md | ||
EndProjectSection | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FindReplaceCode", "src\FindReplaceCode\FindReplaceCode.csproj", "{4E2B87C2-B50A-4876-A1EC-118554B4B389}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FindReplaceCode.Tests", "tests\FindReplaceCode.Tests\FindReplaceCode.Tests.csproj", "{DF559AD1-5287-43B1-AB47-61B6F342B0FE}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{4E2B87C2-B50A-4876-A1EC-118554B4B389}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{DF559AD1-5287-43B1-AB47-61B6F342B0FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{DF559AD1-5287-43B1-AB47-61B6F342B0FE}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{DF559AD1-5287-43B1-AB47-61B6F342B0FE}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{DF559AD1-5287-43B1-AB47-61B6F342B0FE}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {61721187-4DC2-4A62-9B7A-93E34B4071E5} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright 2018 Faithlife Corporation | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.