Skip to content

Commit 4d72489

Browse files
authored
Merge pull request #3477 from IpshitaC/IpshitaC-hacktoberfest
Changed inspection type for 'empty block' inspections
2 parents 2752460 + cc53f31 commit 4d72489

13 files changed

+16
-16
lines changed

Rubberduck.Inspections/Concrete/EmptyCaseBlockInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public EmptyCaseBlockInspection(RubberduckParserState state)
1919
public override IInspectionListener Listener { get; } =
2020
new EmptyCaseBlockListener();
2121

22-
public override CodeInspectionType InspectionType => CodeInspectionType.CodeQualityIssues;
22+
public override CodeInspectionType InspectionType => CodeInspectionType.MaintainabilityAndReadabilityIssues;
2323

2424
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2525
{

Rubberduck.Inspections/Concrete/EmptyDoWhileBlockInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class EmptyDoWhileBlockInspection : ParseTreeInspectionBase
1616
public EmptyDoWhileBlockInspection(RubberduckParserState state)
1717
: base(state, CodeInspectionSeverity.Suggestion) { }
1818

19-
public override CodeInspectionType InspectionType => CodeInspectionType.CodeQualityIssues;
19+
public override CodeInspectionType InspectionType => CodeInspectionType.MaintainabilityAndReadabilityIssues;
2020

2121
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2222
{

Rubberduck.Inspections/Concrete/EmptyElseBlockInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class EmptyElseBlockInspection : ParseTreeInspectionBase
1616
public EmptyElseBlockInspection(RubberduckParserState state)
1717
: base(state, CodeInspectionSeverity.DoNotShow) { }
1818

19-
public override CodeInspectionType InspectionType => CodeInspectionType.CodeQualityIssues;
19+
public override CodeInspectionType InspectionType => CodeInspectionType.MaintainabilityAndReadabilityIssues;
2020

2121
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2222
{
@@ -38,4 +38,4 @@ public override void EnterElseBlock([NotNull] VBAParser.ElseBlockContext context
3838
}
3939
}
4040
}
41-
}
41+
}

Rubberduck.Inspections/Concrete/EmptyForEachBlockInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class EmptyForEachBlockInspection : ParseTreeInspectionBase
1616
public EmptyForEachBlockInspection(RubberduckParserState state)
1717
: base(state, CodeInspectionSeverity.DoNotShow) { }
1818

19-
public override CodeInspectionType InspectionType => CodeInspectionType.CodeQualityIssues;
19+
public override CodeInspectionType InspectionType => CodeInspectionType.MaintainabilityAndReadabilityIssues;
2020

2121
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2222
{
@@ -38,4 +38,4 @@ public override void EnterForEachStmt([NotNull] VBAParser.ForEachStmtContext con
3838
}
3939
}
4040
}
41-
}
41+
}

Rubberduck.Inspections/Concrete/EmptyForLoopBlockInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class EmptyForLoopBlockInspection : ParseTreeInspectionBase
1616
public EmptyForLoopBlockInspection(RubberduckParserState state)
1717
: base(state, CodeInspectionSeverity.DoNotShow) { }
1818

19-
public override CodeInspectionType InspectionType => CodeInspectionType.CodeQualityIssues;
19+
public override CodeInspectionType InspectionType => CodeInspectionType.MaintainabilityAndReadabilityIssues;
2020

2121
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2222
{

Rubberduck.Inspections/Concrete/EmptyIfBlockInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal class EmptyIfBlockInspection : ParseTreeInspectionBase
1818
public EmptyIfBlockInspection(RubberduckParserState state)
1919
: base(state, CodeInspectionSeverity.DoNotShow) { }
2020

21-
public override CodeInspectionType InspectionType => CodeInspectionType.CodeQualityIssues;
21+
public override CodeInspectionType InspectionType => CodeInspectionType.MaintainabilityAndReadabilityIssues;
2222

2323
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2424
{

Rubberduck.Inspections/Concrete/EmptyWhileWendBlockInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class EmptyWhileWendBlockInspection : ParseTreeInspectionBase
1616
public EmptyWhileWendBlockInspection(RubberduckParserState state)
1717
: base(state, CodeInspectionSeverity.DoNotShow) { }
1818

19-
public override CodeInspectionType InspectionType => CodeInspectionType.CodeQualityIssues;
19+
public override CodeInspectionType InspectionType => CodeInspectionType.MaintainabilityAndReadabilityIssues;
2020

2121
protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
2222
{

RubberduckTests/Inspections/EmptyCaseBlockInspectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class EmptyCaseBlockInspectionTests
1515
public void EmptyCaseBlock_InspectionType()
1616
{
1717
var inspection = new EmptyCaseBlockInspection(null);
18-
var expectedInspection = CodeInspectionType.CodeQualityIssues;
18+
var expectedInspection = CodeInspectionType.MaintainabilityAndReadabilityIssues;
1919

2020
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2121
}

RubberduckTests/Inspections/EmptyDoWhileBlockInspectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class EmptyDoWhileBlockInspectionTests
1616
public void EmptyDoWhileBlock_InspectionType()
1717
{
1818
var inspection = new EmptyDoWhileBlockInspection(null);
19-
var expectedInspection = CodeInspectionType.CodeQualityIssues;
19+
var expectedInspection = CodeInspectionType.MaintainabilityAndReadabilityIssues;
2020

2121
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2222
}

RubberduckTests/Inspections/EmptyElseBlockInspectionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class EmptyElseBlockInspectionTests
1515
public void InspectionType()
1616
{
1717
var inspection = new EmptyElseBlockInspection(null);
18-
var expectedInspection = CodeInspectionType.CodeQualityIssues;
18+
var expectedInspection = CodeInspectionType.MaintainabilityAndReadabilityIssues;
1919

2020
Assert.AreEqual(expectedInspection, inspection.InspectionType);
2121
}
@@ -234,4 +234,4 @@ End If
234234
Assert.AreEqual(expectedCount, actualResults.Count());
235235
}
236236
}
237-
}
237+
}

0 commit comments

Comments
 (0)