Skip to content

Commit 7a7f2e7

Browse files
committed
Set Severity of SetAssignmentWithIncompatibleObjectTypeInspection to Error
1 parent 426dc00 commit 7a7f2e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/SetAssignmentWithIncompatibleObjectTypeInspection.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Rubberduck.Inspections.Results;
66
using Rubberduck.Parsing;
77
using Rubberduck.Parsing.Grammar;
8+
using Rubberduck.Parsing.Inspections;
89
using Rubberduck.Parsing.Inspections.Abstract;
910
using Rubberduck.Parsing.Symbols;
1011
using Rubberduck.Parsing.TypeResolvers;
@@ -85,6 +86,9 @@ public SetAssignmentWithIncompatibleObjectTypeInspection(RubberduckParserState s
8586
{
8687
_declarationFinderProvider = state;
8788
_setTypeResolver = setTypeResolver;
89+
90+
//This will most likely cause a runtime error. The exceptions are rare and should be refactored or made explicit with an @Ignore annotation.
91+
Severity = CodeInspectionSeverity.Error;
8892
}
8993

9094
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()

0 commit comments

Comments
 (0)