18
18
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
*/
20
20
21
- using System ;
22
21
using System . ComponentModel . Composition ;
23
- using System . Diagnostics ;
24
22
using System . Globalization ;
25
23
using System . Windows . Data ;
26
24
using System . Windows . Input ;
@@ -48,13 +46,13 @@ public NavigateToRuleDescriptionCommand(IEducation educationService)
48
46
}
49
47
} ,
50
48
parameter => parameter is NavigateToRuleDescriptionCommandParam s &&
51
- ! string . IsNullOrEmpty ( s . FullRuleKey ) &&
52
- SonarCompositeRuleId . TryParse ( s . FullRuleKey , out var _ ) )
49
+ ! string . IsNullOrEmpty ( s . FullRuleKey ) &&
50
+ SonarCompositeRuleId . TryParse ( s . FullRuleKey , out var _ ) )
53
51
{
54
52
}
55
53
}
56
54
57
- internal class NavigateToRuleDescriptionCommandParam
55
+ public class NavigateToRuleDescriptionCommandParam
58
56
{
59
57
/// <summary>
60
58
/// The id of the issue that comes from SlCore
@@ -65,7 +63,11 @@ internal class NavigateToRuleDescriptionCommandParam
65
63
66
64
public class NavigateToRuleDescriptionCommandConverter : IMultiValueConverter
67
65
{
68
- public object Convert ( object [ ] values , Type targetType , object parameter , CultureInfo culture )
66
+ public object Convert (
67
+ object [ ] values ,
68
+ Type targetType ,
69
+ object parameter ,
70
+ CultureInfo culture )
69
71
{
70
72
if ( values . Length == 2 && values [ 0 ] is string && ( values [ 1 ] is Guid || values [ 1 ] == null ) )
71
73
{
@@ -74,7 +76,11 @@ public object Convert(object[] values, Type targetType, object parameter, Cultur
74
76
return null ;
75
77
}
76
78
77
- public object [ ] ConvertBack ( object value , Type [ ] targetTypes , object parameter , CultureInfo culture )
79
+ public object [ ] ConvertBack (
80
+ object value ,
81
+ Type [ ] targetTypes ,
82
+ object parameter ,
83
+ CultureInfo culture )
78
84
{
79
85
Debug . Fail ( "We should not hit here" ) ;
80
86
return null ;
0 commit comments