viacooky/Lett.Extensions

View on GitHub

Showing 4 of 18 total issues

Method SetTime has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        public static DateTime SetTime(this DateTime @this, int hour, int minute, int second, int millisecond)
Severity: Minor
Found in src/Lett.Extensions/System.DateTime/DateTime.Convert.cs - About 35 mins to fix

    Method AsFileStream has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            public static FileStream AsFileStream(this string @this, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, int bufferSize = 8192)
    Severity: Minor
    Found in src/Lett.Extensions/System.String/String.Convert.cs - About 35 mins to fix

      Avoid too many return statements within this method.
      Open

                  catch { return defaultValue; }
      Severity: Major
      Found in src/Lett.Extensions/System.Object/Object.Convert.cs - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return @this.RegexIsMatch(regexPattern, RegexOptions.Singleline);
        Severity: Major
        Found in src/Lett.Extensions/System.String/String.Compare.cs - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language