Skip to content

Commit

Permalink
fix CodeFactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Dec 12, 2020
1 parent 5413f48 commit dde70a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Expand Up @@ -2132,8 +2132,8 @@ private static IEnumerable<FormatViewDefinition> ViewsOf_System_Management_Autom
$null = $sb.Append([Environment]::NewLine)
}
$sb.ToString()
", label: "Extension")
$sb.ToString()",
label: "Extension")
.EndEntry()
.EndList());
}
Expand Down
Expand Up @@ -300,7 +300,6 @@ public class FormattingData
/// <summary>
/// Contains formatting styles for FileInfo objects.
/// </summary>

public class FileInfoFormatting
{
/// <summary>
Expand All @@ -319,16 +318,16 @@ public class FileInfoFormatting
public string Executable { get; set; } = "\x1b[32;1m";

/// <summary>
/// Gets or sets the style for archive.
/// Gets the style for archive.
/// </summary>
public Dictionary<string,string> Extension { get; }
public Dictionary<string, string> Extension { get; }

/// <summary>
/// Initializes a new instance of the <see cref="FileInfoFormatting"/> class.
/// </summary>
public FileInfoFormatting()
{
Extension = new Dictionary<string,string>(StringComparer.OrdinalIgnoreCase);
Extension = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);

// archives
Extension.Add(".zip", "\x1b[31;1m");
Expand Down
Expand Up @@ -2063,7 +2063,7 @@ string ToModeString(FileSystemInfo fileSystemInfo)
/// <returns>Name if a file or directory, Name -> Target if symlink.</returns>
public static string NameString(PSObject instance)
{
string[] executableExtensions = {".exe", ".bat", ".com", ".cmd"};
string[] executableExtensions = { ".exe", ".bat", ".com", ".cmd" };

if (ExperimentalFeature.IsEnabled("PSAnsiRendering") && ExperimentalFeature.IsEnabled("PSFileInfoColor"))
{
Expand Down

0 comments on commit dde70a2

Please sign in to comment.