Skip to content

Commit 5b75503

Browse files
committed
Rename inspection meta to get it to show
1 parent 42aa4c9 commit 5b75503

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

RetailCoder.VBE/Inspections/InspectionsUI.Designer.cs

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/Inspections/InspectionsUI.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
<data name="UntypedFunctionUsageInspectionName" xml:space="preserve">
310310
<value>Use of variant-returning string function</value>
311311
</data>
312-
<data name="ProcedureCanBeFunctionInspectionResultFormat" xml:space="preserve">
312+
<data name="ProcedureCanBeWrittenAsFunctionInspectionResultFormat" xml:space="preserve">
313313
<value>Procedure '{0}' can be written as a function.</value>
314314
<comment>{0} Procedure name</comment>
315315
</data>
@@ -349,10 +349,10 @@
349349
<data name="WriteOnlyPropertyInspectionName" xml:space="preserve">
350350
<value>Write-only property</value>
351351
</data>
352-
<data name="ProcedureCanBeFunctionInspectionMeta" xml:space="preserve">
352+
<data name="ProcedureCanBeWrittenAsFunctionInspectionMeta" xml:space="preserve">
353353
<value>A procedure that only has one parameter passed by reference that is assigned a new value/reference before the procedure exits, is using a ByRef parameter as a return value: consider making it a function instead.</value>
354354
</data>
355-
<data name="ProcedureCanBeFunctionInspectionName" xml:space="preserve">
355+
<data name="ProcedureCanBeWrittenAsFunctionInspectionName" xml:space="preserve">
356356
<value>Procedure can be written as a function</value>
357357
</data>
358358
<data name="WriteOnlyPropertyInspectionResultFormat" xml:space="preserve">

RetailCoder.VBE/Inspections/ProcedureCanBeWrittenAsFunctionInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public ProcedureCanBeWrittenAsFunctionInspection(RubberduckParserState state)
1515
{
1616
}
1717

18-
public override string Meta { get { return InspectionsUI.ProcedureCanBeFunctionInspectionMeta; } }
19-
public override string Description { get { return InspectionsUI.ProcedureCanBeFunctionInspectionResultFormat; } }
18+
public override string Meta { get { return InspectionsUI.ProcedureCanBeWrittenAsFunctionInspectionMeta; } }
19+
public override string Description { get { return InspectionsUI.ProcedureCanBeWrittenAsFunctionInspectionResultFormat; } }
2020
public override CodeInspectionType InspectionType { get { return CodeInspectionType.LanguageOpportunities; } }
2121

2222
public override IEnumerable<InspectionResultBase> GetInspectionResults()

RetailCoder.VBE/Inspections/ProcedureShouldBeFunctionInspectionResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public ProcedureShouldBeFunctionInspectionResult(IInspection inspection, Rubberd
2727

2828
public override string Description
2929
{
30-
get { return string.Format(InspectionsUI.ProcedureShouldBeFunctionInspectionResultFormat); }
30+
get { return InspectionsUI.ProcedureCanBeWrittenAsFunctionInspectionResultFormat; }
3131
}
3232
}
3333

0 commit comments

Comments
 (0)