Showing 45 of 121 total issues
Method AddFromType
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public QueryStringBuilder AddFromType<T>(
T instance,
bool convertCamelCaseToUnderscore = true
)
{
Method ResolveMultipleConstructors
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static ConstructorInfo ResolveMultipleConstructors(
ConstructorInfo[] constructors,
Type parentType = null
)
{
Method Levenshtein
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Pure]
public static int Levenshtein(this string input, string inputToCompare)
{
var n = input.Length;
Method ConfigureSource
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void ConfigureSource(EventLog log, string source)
{
var sourceData = new EventSourceCreationData(source, log.Log)
{
MachineName = log.MachineName
Method Save
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public virtual void Save<T>(string file, T deserialized)
where T : class
{
Stream stream = null;
try
Method UpdateValueInternal
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void UpdateValueInternal<T>(
T currentObject,
T newObject,
PropertyInfo propertyInfo,
T defaultObject,
Method Read
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override NotNullObserver Read(
ref Utf8JsonReader reader,
Type typeToConvert,
JsonSerializerOptions options
)
Method Get
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public T Get<T>(string key, string subKey)
{
try
{
if (
Method DoWork
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void DoWork(
string exchange,
string queue,
bool autoAck,
CancellationToken cancellationToken
Method ToModule10
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static int ToModule10(this string input)
{
var number = Regex.Replace(
input,
"[^0-9]",
Method GetHumanReadableValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string GetHumanReadableValue(this Enum value, string flagsSeparator = " | ")
{
var type = value.GetType();
if (
type.GetCustomAttributes(typeof(FlagsAttribute), false).Any()
Method Encrypt
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string Encrypt(
this string plainText,
string passwordHash,
string saltKey,
string viKey
Method TryParseBrazilianPhoneNumber
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool TryParseBrazilianPhoneNumber(this string number, ref PhoneNumber result)
{
var dirty = number.RemoveNonNumeric();
var dirtyLength = dirty.Length;
Method IsNumericType
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool IsNumericType(this Type type)
{
while (true)
{
var typeCode = Type.GetTypeCode(type);
Method GetMessages
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string GetMessages(
this Queue<Exception> exceptions,
string category,
ICollection<ILogProvider> additionalProviders
)
Method RemoveInternal
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void RemoveInternal(string path)
{
try
{
LogConsumer.Info("Uploading to FtpClient the file: {0}", path.GetPathOrFileName());
Method GenerateRange
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static List<int> GenerateRange(string value)
{
var result = new List<int>();
var split = value.Split('-');
Method ParseParameters
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void ParseParameters<T>(
T instance,
bool useNonPublic,
Type type,
ParameterInfo parameter,
Method Get
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static T Get<T>([Localizable(false)] string key, [Localizable(false)] string subKey)
{
LogConsumer.Trace(
"Getting {0}/{2} from any of {1} cache repositories",
key,
Method GetCategory
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static string GetCategory()
{
var stack = new StackTrace();
var counter = 1;
while (true)