Skip to content

Commit

Permalink
protected
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Nov 20, 2024
1 parent 77d1dcb commit f4a4cff
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions source/Nuke.Tooling/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ private static string GetOptionName(LambdaExpression lambdaExpression)
return member.GetCustomAttribute<JsonPropertyAttribute>()?.PropertyName ?? member.Name;
}

internal Options Set<T>(Expression<Func<T>> propertyProvider, object value)
protected Options Set<T>(Expression<Func<T>> propertyProvider, object value)
{
return Set(GetOptionName(propertyProvider), value);
}

internal Options Set(string propertyName, object value)
protected Options Set(string propertyName, object value)
{
if (value != null)
{
Expand All @@ -77,7 +77,7 @@ internal Options Set(string propertyName, object value)
return this;
}

internal Options Remove<T>(Expression<Func<T>> propertyProvider)
protected Options Remove<T>(Expression<Func<T>> propertyProvider)

Check warning on line 80 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'Remove' return value is never used
{
InternalOptions.Property(GetOptionName(propertyProvider))?.Remove();
return this;
Expand All @@ -103,32 +103,32 @@ private Options UsingDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionar
return this;
}

internal Options SetDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, TKey key, TValue value)
protected Options SetDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, TKey key, TValue value)

Check warning on line 106 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'SetDictionary' return value is never used
{
return UsingDictionary(optionProvider, dictionary => dictionary[key] = value);
}

internal Options AddDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, TKey key, TValue value)
protected Options AddDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, TKey key, TValue value)

Check warning on line 111 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'AddDictionary' return value is never used
{
return UsingDictionary(optionProvider, dictionary => dictionary.Add(key, value));
}

internal Options AddDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, Dictionary<TKey, TValue> value)
protected Options AddDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, Dictionary<TKey, TValue> value)

Check warning on line 116 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'AddDictionary' return value is never used
{
return UsingDictionary(optionProvider, dictionary => dictionary.AddDictionary(value));
}

internal Options AddDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, ReadOnlyDictionary<TKey, TValue> value)
protected Options AddDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, ReadOnlyDictionary<TKey, TValue> value)

Check warning on line 121 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'AddDictionary' return value is never used
{
return UsingDictionary(optionProvider, dictionary => dictionary.AddDictionary(value));
}

internal Options RemoveDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, TKey key)
protected Options RemoveDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider, TKey key)

Check warning on line 126 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'RemoveDictionary' return value is never used
{
return UsingDictionary(optionProvider, dictionary => dictionary.Remove(key));
}

internal Options ClearDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider)
protected Options ClearDictionary<TKey, TValue>(Expression<Func<IReadOnlyDictionary<TKey, TValue>>> optionProvider)

Check warning on line 131 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'ClearDictionary' return value is never used
{
return UsingDictionary(optionProvider, dictionary => dictionary.Clear());
}
Expand All @@ -145,37 +145,37 @@ private Options UsingLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>
return this;
}

internal Options SetLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, params TValue[] values)
protected Options SetLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, params TValue[] values)
{
return UsingLookup(optionProvider, lookup => lookup[key] = values);
}

internal Options SetLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, IEnumerable<TValue> values)
protected Options SetLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, IEnumerable<TValue> values)
{
return UsingLookup(optionProvider, lookup => lookup[key] = values);
}

internal Options AddLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, params TValue[] values)
protected Options AddLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, params TValue[] values)
{
return UsingLookup(optionProvider, lookup => lookup.AddRange(key, values));
}

internal Options AddLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, IEnumerable<TValue> values)
protected Options AddLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, IEnumerable<TValue> values)
{
return UsingLookup(optionProvider, lookup => lookup.AddRange(key, values));
}

internal Options RemoveLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key)
protected Options RemoveLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key)
{
return UsingLookup(optionProvider, lookup => lookup.Remove(key));
}

internal Options RemoveLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, TValue value)
protected Options RemoveLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider, TKey key, TValue value)
{
return UsingLookup(optionProvider, lookup => lookup.Remove(key, value));
}

internal Options ClearLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider)
protected Options ClearLookup<TKey, TValue>(Expression<Func<ILookup<TKey, TValue>>> optionProvider)
{
return UsingLookup(optionProvider, lookup => lookup.Clear());
}
Expand All @@ -192,27 +192,27 @@ private Options UsingCollection<T>(Expression<Func<IReadOnlyCollection<T>>> opti
return this;
}

internal Options AddCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, params T[] value)
protected Options AddCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, params T[] value)

Check warning on line 195 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'AddCollection' return value is never used
{
return UsingCollection(optionProvider, collection => collection.AddRange(value));
}

internal Options AddCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, IEnumerable<T> value)
protected Options AddCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, IEnumerable<T> value)

Check warning on line 200 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'AddCollection' return value is never used
{
return UsingCollection(optionProvider, collection => collection.AddRange(value));
}

internal Options RemoveCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, params T[] value)
protected Options RemoveCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, params T[] value)

Check warning on line 205 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'RemoveCollection' return value is never used
{
return UsingCollection(optionProvider, collection => collection.RemoveAll(value.Contains));
}

internal Options RemoveCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, IEnumerable<T> value)
protected Options RemoveCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider, IEnumerable<T> value)

Check warning on line 210 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'RemoveCollection' return value is never used
{
return UsingCollection(optionProvider, collection => collection.RemoveAll(value.ToList().Contains));
}

internal Options ClearCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider)
protected Options ClearCollection<T>(Expression<Func<IReadOnlyCollection<T>>> optionProvider)

Check warning on line 215 in source/Nuke.Tooling/Options.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Method return value is never used (non-private accessibility)

Method 'ClearCollection' return value is never used
{
return UsingCollection(optionProvider, collection => collection.Clear());
}
Expand Down

0 comments on commit f4a4cff

Please sign in to comment.