Skip to content

Commit

Permalink
Merge branch 'preview' into renovate/coverlet.collector-6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinWilkinson committed Apr 2, 2024
2 parents ace73f0 + 7efdd91 commit f3dd498
Show file tree
Hide file tree
Showing 144 changed files with 9,748 additions and 4,945 deletions.
21 changes: 19 additions & 2 deletions .editorconfig
Expand Up @@ -59,10 +59,10 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case

# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = warning
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
dotnet_naming_symbols.constant_fields.required_modifiers = const


Expand Down Expand Up @@ -154,6 +154,9 @@ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Opening square brackets should not be preceded by a space.
dotnet_diagnostic.SA1010.severity = none

# Wrapping preferences
csharp_preserve_single_line_blocks = true

Expand Down Expand Up @@ -197,3 +200,17 @@ csharp_prefer_simple_using_statement = true:suggestion
# Using directives must be placed inside of a namespace declaration
# IDE0065: Misplaced using directive
csharp_using_directive_placement = inside_namespace

#############################################################
# Resharper Rules #
# Resharper rule name syntax #
# resharper_<inspection_name>_highlighting=<severity_level> #
#############################################################

# noinspection EditorConfigKeyCorrectness

resharper_bad_parens_spaces_highlighting = none
resharper_bad_list_line_breaks_highlighting = none
resharper_bad_parens_line_breaks_highlighting = none

# inspection EditorConfigKeyCorrectness
3 changes: 1 addition & 2 deletions .github/workflows/sync-bot.yml
Expand Up @@ -13,8 +13,7 @@ on:

jobs:
sync_bot:
name: Sync Bot Status Check
if: ${{ !github.event.issue.pull_request }}
name: Sync Bot
runs-on: ubuntu-latest
steps:
- name: Set Up Deno
Expand Down
17 changes: 0 additions & 17 deletions .run/CASLTesting.run.xml

This file was deleted.

20 changes: 20 additions & 0 deletions .run/Testing (Is Interactive).run.xml
@@ -0,0 +1,20 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Testing (Is Interactive)" type="DotNetProject" factoryName=".NET Project">
<option name="EXE_PATH" value="$PROJECT_DIR$/Testing/CASLTesting/bin/Debug/net8.0/CASLTesting.exe" />
<option name="PROGRAM_PARAMETERS" value="--interactive" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/Testing/CASLTesting/bin/Debug/net8.0" />
<option name="PASS_PARENT_ENVS" value="1" />
<option name="USE_EXTERNAL_CONSOLE" value="1" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<option name="PROJECT_PATH" value="$PROJECT_DIR$/Testing/CASLTesting/CASLTesting.csproj" />
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value="net8.0" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
20 changes: 20 additions & 0 deletions .run/Testing (Not Interactive).run.xml
@@ -0,0 +1,20 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Testing (Not Interactive)" type="DotNetProject" factoryName=".NET Project">
<option name="EXE_PATH" value="$PROJECT_DIR$/Testing/CASLTesting/bin/Debug/net8.0/CASLTesting.exe" />
<option name="PROGRAM_PARAMETERS" value="list-devices" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/Testing/CASLTesting/bin/Debug/net8.0" />
<option name="PASS_PARENT_ENVS" value="1" />
<option name="USE_EXTERNAL_CONSOLE" value="1" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<option name="PROJECT_PATH" value="$PROJECT_DIR$/Testing/CASLTesting/CASLTesting.csproj" />
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value="net8.0" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
10 changes: 5 additions & 5 deletions .vscode/launch.json
Expand Up @@ -5,19 +5,19 @@
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"name": "Run CASL Testing",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "BuildSolution",
"args": [],
"stopAtEntry": false,
"windows": {
"program": "${workspaceFolder}/Testing/CASLTesting/bin/Debug-WIN/net5.0/CASLTesting.dll",
"console": "integratedTerminal"
"program": "${workspaceFolder}/Testing/CASLTesting/bin/Debug/net8.0/CASLTesting.dll",
"console": "externalTerminal"
},
"linux": {
"program": "${workspaceFolder}/Testing/CASLTesting/bin/Debug-LINUX/net5.0/CASLTesting.dll",
"console": "integratedTerminal"
"program": "${workspaceFolder}/Testing/CASLTesting/bin/Debug/net8.0/CASLTesting.dll",
"console": "externalTerminal"
}
},
{
Expand Down
53 changes: 31 additions & 22 deletions .vscode/settings.json
@@ -1,27 +1,36 @@
{
"cSpell.words": [
"CASL",
"cicd",
"cobertura",
"Codecov",
"editorconfig",
"ethomson",
"gitattributes",
"ibrary",
"Kinson",
"kinsondigital",
"nint",
"nuget",
"nupkg",
"ound",
"pwsh",
"runsettings",
"softprops",
"stylecop",
"udio",
"Vorbis",
"xunit"
],
"Bufferi",
"CASL",
"cicd",
"cobertura",
"Codecov",
"csharpsquid",
"editorconfig",
"ethomson",
"gitattributes",
"ibrary",
"Kinson",
"kinsondigital",
"nint",
"nuget",
"nupkg",
"ound",
"pwsh",
"Reactable",
"reactables",
"runsettings",
"softprops",
"Sourceb",
"Sourcef",
"Sourcei",
"stylecop",
"udio",
"Unqueue",
"Unsubscriber",
"Vorbis",
"xunit"
],
"dotnet.defaultSolution": "CASL.sln",
"[csharp]": {
"editor.insertSpaces": true,
Expand Down
73 changes: 72 additions & 1 deletion CASL.sln.DotSettings
Expand Up @@ -11,12 +11,76 @@
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Applicability/=Live/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Description/@EntryValue">XUnit Unit Test Method</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Field/=EXPECTED_005FRESULT/@KeyIndexDefined">True</s:Boolean>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Field/=EXPECTED_005FRESULT/Order/@EntryValue">2</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Field/=MEMBER_005FUNDER_005FTEST/@KeyIndexDefined">True</s:Boolean>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Field/=MEMBER_005FUNDER_005FTEST/Order/@EntryValue">0</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Field/=SCENARIO_005FUNDER_005FTEST/@KeyIndexDefined">True</s:Boolean>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Field/=SCENARIO_005FUNDER_005FTEST/Order/@EntryValue">1</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Shortcut/@EntryValue">xu-test-method</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=904C8A5003B50746A7EABA48B8FAEC82/Text/@EntryValue">[Fact]
public void $MEMBER_UNDER_TEST$_$SCENARIO_UNDER_TEST$_$EXPECTED_RESULT$()
{
// Arrange

// Act

// Assert
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Applicability/=Live/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Description/@EntryValue">XUnit test method for testing null constructor parameters</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Field/=PARAM_005F1/@KeyIndexDefined">True</s:Boolean>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Field/=PARAM_005F1/Order/@EntryValue">0</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Shortcut/@EntryValue">xu-null-ctor-param</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FB0D188A93E49E46BED77FCE2B8D0F77/Text/@EntryValue">[Fact]
public void Ctor_WithNull$PARAM_1$Param_ThrowsException()
{
// Arrange &amp; Act
var act = () =&gt;
{
};

// Assert
act.Should().ThrowArgNullException().WithNullParamMsg("$END$$PARAM_1$");
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Applicability/=Live/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Description/@EntryValue">Template for creating an object creation method for unit testing</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Field/=OBJECT_005FTYPE/@KeyIndexDefined">True</s:Boolean>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Field/=OBJECT_005FTYPE/Order/@EntryValue">0</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Shortcut/@EntryValue">xu-create-test-obj-method</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=FE9D06E381808C4CBA3B26D37591A8EB/Text/@EntryValue">/// &lt;summary&gt;
/// Creates a new instance of &lt;see cref="$OBJECT_TYPE$"/&gt; for the purpose of testing.
/// &lt;/summary&gt;
/// &lt;returns&gt;The instance to test.&lt;/returns&gt;
private $OBJECT_TYPE$ CreateSystemUnderTest()
=&gt; new ($END$);</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=ADPCM/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=ALAW/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=ative/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Bufferi/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=CASL/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=csharpsquid/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Ctor/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=directivity/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=dlclose/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=dlerror/@EntryIndexedValue">True</s:Boolean>
Expand All @@ -31,9 +95,16 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=MULAW/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=procname/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Quadrophonic/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Reactable/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=reactables/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Requeues/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Rolloff/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=RTLD/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Sourceb/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Sourcef/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Sourcei/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unqueue/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=spatialization/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unqueue/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=unqueued/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=unqueues/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unsubscriber/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
4 changes: 2 additions & 2 deletions CASL/Application.cs
Expand Up @@ -10,8 +10,8 @@ namespace CASL;
/// <summary>
/// Provides information about the running application.
/// </summary>
[ExcludeFromCodeCoverage]
public class Application : IApplication
[ExcludeFromCodeCoverage(Justification = "Directly interacts with dotnet.")]
internal sealed class Application : IApplication
{
/// <inheritdoc/>
public string Location => Assembly.GetExecutingAssembly().Location;
Expand Down

0 comments on commit f3dd498

Please sign in to comment.