Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1using FluentValidation;
2using FluentValidation.Validators;
3using NzbDrone.Common.Extensions;
4
5namespace NzbDrone.Core.Validation
6{
7 public static class IpValidation
8 {
9 public static IRuleBuilderOptions<T, string> ValidIpAddress<T>(this IRuleBuilder<T, string> ruleBuilder)
10 {
11 return ruleBuilder.Must(x => x.IsValidIpAddress()).WithMessage("Must contain wildcard (*) or a valid IP Address");
12 }
13
14 public static IRuleBuilderOptions<T, string> NotListenAllIp4Address<T>(this IRuleBuilder<T, string> ruleBuilder)
15 {
16 return ruleBuilder.SetValidator(new RegularExpressionValidator(@"^(?!0\.0\.0\.0)")).WithMessage("Use * instead of 0.0.0.0");
17 }
18 }
19}
20

After

1using FluentValidation;
2using NzbDrone.Common.Extensions;
3
4namespace NzbDrone.Core.Validation
5{
6 public static class IpValidation
7 {
8 public static IRuleBuilderOptions<T, string> ValidIpAddress<T>(this IRuleBuilder<T, string> ruleBuilder)
9 {
10 return ruleBuilder.Must(x => x.IsValidIpAddress()).WithMessage("Must contain wildcard (*) or a valid IP Address");
11 }
12 }
13}
14

Before

compilation_unit
using_directive
using "using"
identifier "FluentValidation"
; ";"
using_directive
using "using"
qualified_name
identifier "FluentValidation"
. "."
identifier "Validators"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Extensions"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Validation"
declaration_list
{ "{"
class_declaration
modifier
public "public"
modifier
static "static"
class "class"
identifier "IpValidation"
declaration_list
{ "{"
method_declaration (+71 nodes collapsed)
method_declaration
modifier
public "public"
modifier
static "static"
generic_name
identifier "IRuleBuilderOptions"
type_argument_list
< "<"
identifier "T"
, ","
predefined_type "string"
> ">"
identifier "NotListenAllIp4Address"
type_parameter_list
< "<"
type_parameter
identifier "T"
> ">"
parameter_list
( "("
parameter
modifier "this"
generic_name
identifier "IRuleBuilder"
type_argument_list
< "<"
identifier "T"
, ","
predefined_type "string"
> ">"
identifier "ruleBuilder"
) ")"
block
{ "{"
return_statement
return "return"
invocation_expression
member_access_expression
invocation_expression
member_access_expression
identifier "ruleBuilder"
. "."
identifier "SetValidator"
argument_list
( "("
argument
object_creation_expression
new "new"
identifier "RegularExpressionValidator"
argument_list
( "("
argument
verbatim_string_literal "@\"^(?!0\\.0\\.0\\.0)\""
) ")"
) ")"
. "."
identifier "WithMessage"
argument_list
( "("
argument
string_literal
" "\""
string_literal_content "Use * instead of 0.0.0.0"
" "\""
) ")"
; ";"
} "}"
} "}"
} "}"

After

compilation_unit
using_directive
using "using"
identifier "FluentValidation"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Extensions"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Validation"
declaration_list
{ "{"
class_declaration
modifier
public "public"
modifier
static "static"
class "class"
identifier "IpValidation"
declaration_list
{ "{"
method_declaration (+71 nodes collapsed)
} "}"
} "}"