Skip to content

Commit fbbb867

Browse files
committed
Display correct result in inspections window
1 parent 53a830f commit fbbb867

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/ImplicitlyTypedConstInspection.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Rubberduck.Parsing.Inspections.Abstract;
66
using Rubberduck.Inspections.Results;
77
using Rubberduck.Parsing.Symbols;
8+
using Rubberduck.Resources.Inspections;
89

910
namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1011
{
@@ -26,9 +27,11 @@ protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2627

2728
private IInspectionResult Result(Declaration declaration)
2829
{
30+
var description = string.Format(InspectionResults.ImplicitlyTypedConstInspection, declaration.IdentifierName);
31+
2932
return new IdentifierReferenceInspectionResult(
3033
this,
31-
declaration.DescriptionString,
34+
description,
3235
State,
3336
new IdentifierReference(
3437
declaration.QualifiedModuleName,

0 commit comments

Comments
 (0)