Skip to content

Commit

Permalink
fixed some JetBrains warings
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-a committed Jul 20, 2024
1 parent 1ed17c0 commit d504c8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
</PackageReference>
<PackageReference Include="Cake.Common" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
using Cake.Core.Annotations;
using Cake.Core.IO;

using JetBrains.Annotations;

namespace Cake.DotNetVersionDetector
{
/// <summary>
/// <para>Contains functionality related to the <see href="http://www.asoft.be/prod_netver.html">.Net Version Detector</see> tool.</para>
/// <para>Contains functionality related to the <see href="https://www.asoft.be/prod_netver.html">.Net Version Detector</see> tool.</para>
/// <para>
/// In order to use the commands for this addin, you will need to have the .Net Version Detector tool available. This can be installed via Chocolatey.
/// In addition, you will need to include the following:
Expand All @@ -16,6 +18,7 @@ namespace Cake.DotNetVersionDetector
/// </para>
/// </summary>
[CakeAliasCategory("DotNetVersionDetector")]
[PublicAPI]
public static class DotNetVersionDetectorAliases
{
/// <summary>
Expand All @@ -34,7 +37,7 @@ public static void DotNetVersionDetector(this ICakeContext context, FilePath out
DotNetVersionDetector(context, outputFilePath, new DotNetVersionDetectorSettings());
}

/// <summary>
/// <summary>
/// Runs .Net Version Detector, and outputs to specified output FilePath with the specified DotNetVersionDetectorSettings.
/// </summary>
/// <param name="context">The context.</param>
Expand All @@ -53,12 +56,12 @@ public static void DotNetVersionDetector(this ICakeContext context, FilePath out
{
if (context == null)
{
throw new ArgumentNullException("context");
throw new ArgumentNullException(nameof(context));
}

if (outputFilePath == null)
{
throw new ArgumentNullException("outputFilePath");
throw new ArgumentNullException(nameof(outputFilePath));
}

var runner = new DotNetVersionDetectorRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Cake.Core.IO;
using Cake.Core.Tooling;

namespace Cake.DotNetVersionDetector
Expand Down

0 comments on commit d504c8a

Please sign in to comment.