diff --git a/Directory.Build.props b/Directory.Build.props index 3f87bff..0a0e05e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -16,7 +16,7 @@ Recommended true nullable - true + true diff --git a/src/process.dummy.app/.editorconfig b/src/process.dummy.app/.editorconfig new file mode 100644 index 0000000..18e8eb3 --- /dev/null +++ b/src/process.dummy.app/.editorconfig @@ -0,0 +1,6 @@ + +[*.{cs,vb}] +# disable IDE0060: Remove unused parameter +dotnet_diagnostic.IDE0060.severity = none +# disable IDE0005: Unnecessary using directive +dotnet_diagnostic.IDE0005.severity = none diff --git a/src/process.tests/.editorconfig b/src/process.tests/.editorconfig new file mode 100644 index 0000000..18e8eb3 --- /dev/null +++ b/src/process.tests/.editorconfig @@ -0,0 +1,6 @@ + +[*.{cs,vb}] +# disable IDE0060: Remove unused parameter +dotnet_diagnostic.IDE0060.severity = none +# disable IDE0005: Unnecessary using directive +dotnet_diagnostic.IDE0005.severity = none diff --git a/src/process/CommandTask.cs b/src/process/CommandTask.cs index 4e1887f..a6c3f5c 100644 --- a/src/process/CommandTask.cs +++ b/src/process/CommandTask.cs @@ -8,7 +8,7 @@ namespace Geekeey.Process; /// /// Represents an asynchronous execution of a command. /// -public partial class CommandTask : IDisposable +public sealed partial class CommandTask : IDisposable { private readonly Process _process; @@ -82,7 +82,7 @@ public partial class CommandTask : IDisposable } } -public partial class CommandTask +public sealed partial class CommandTask { /// /// Converts the command task into a regular task. @@ -91,4 +91,4 @@ public partial class CommandTask { return commandTask.Task; } -} \ No newline at end of file +}