* Stylecop Rules and Fixes
This commit is contained in:
Qstick
2020-01-03 07:49:24 -05:00
committed by GitHub
parent 63d669178d
commit f77a2feeef
1307 changed files with 8704 additions and 7404 deletions
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using FluentValidation.Results;
using NLog;
@@ -2,7 +2,8 @@ namespace NzbDrone.Core.Notifications.Subsonic
{
public class SubsonicAuthenticationException : SubsonicException
{
public SubsonicAuthenticationException(string message) : base(message)
public SubsonicAuthenticationException(string message)
: base(message)
{
}
@@ -4,11 +4,13 @@ namespace NzbDrone.Core.Notifications.Subsonic
{
public class SubsonicException : NzbDroneException
{
public SubsonicException(string message) : base(message)
public SubsonicException(string message)
: base(message)
{
}
public SubsonicException(string message, params object[] args) : base(message, args)
public SubsonicException(string message, params object[] args)
: base(message, args)
{
}
}
@@ -1,10 +1,10 @@
using System.IO;
using System.Xml.Linq;
using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.Rest;
using RestSharp;
using System.IO;
using System.Xml.Linq;
namespace NzbDrone.Core.Notifications.Subsonic
{
@@ -64,7 +64,7 @@ namespace NzbDrone.Core.Notifications.Subsonic
_logger.Trace("Version response: {0}", response.Content);
CheckForError(response, settings);
var xDoc = XDocument.Load(new StringReader(response.Content.Replace("&", "&")));
var version = xDoc.Root?.Attribute("version")?.Value;
@@ -126,7 +126,6 @@ namespace NzbDrone.Core.Notifications.Subsonic
}
throw new SubsonicException(errorMessage);
}
if (response.Content.IsNullOrWhiteSpace())
@@ -1,8 +1,6 @@
using System;
using FluentValidation.Results;
using NLog;
using NzbDrone.Common.Cache;
using NzbDrone.Core.Music;
using System;
namespace NzbDrone.Core.Notifications.Subsonic
{
@@ -23,7 +21,6 @@ namespace NzbDrone.Core.Notifications.Subsonic
{
_proxy = proxy;
_logger = logger;
}
public void Notify(SubsonicSettings settings, string message)
@@ -1,5 +1,4 @@
using FluentValidation;
using Newtonsoft.Json;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider;
@@ -28,7 +27,7 @@ namespace NzbDrone.Core.Notifications.Subsonic
[FieldDefinition(0, Label = "Host")]
public string Host { get; set; }
[FieldDefinition(1, Label = "Port")]
public int Port { get; set; }