File tree Expand file tree Collapse file tree 7 files changed +4
-20
lines changed
Rubberduck.CodeAnalysis/Inspections Expand file tree Collapse file tree 7 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ namespace Rubberduck.CodeAnalysis.Inspections.Abstract
10
10
internal abstract class EmptyBlockInspectionBase < TContext > : ParseTreeInspectionBase < TContext >
11
11
where TContext : ParserRuleContext
12
12
{
13
- protected EmptyBlockInspectionBase ( IDeclarationFinderProvider declarationFinderProvider )
13
+ protected EmptyBlockInspectionBase ( IDeclarationFinderProvider declarationFinderProvider )
14
14
: base ( declarationFinderProvider )
15
- { }
15
+ {
16
+ Severity = CodeInspectionSeverity . Hint ;
17
+ }
16
18
17
19
protected class EmptyBlockInspectionListenerBase : InspectionListenerBase < TContext >
18
20
{
Original file line number Diff line number Diff line change 1
1
using Antlr4 . Runtime . Misc ;
2
2
using Rubberduck . CodeAnalysis . Inspections . Abstract ;
3
3
using Rubberduck . Parsing ;
4
- using Rubberduck . Parsing . Common ;
5
4
using Rubberduck . Parsing . Grammar ;
6
5
using Rubberduck . Parsing . VBA ;
7
- using Rubberduck . Resources . Experimentals ;
8
6
using Rubberduck . Resources . Inspections ;
9
7
10
8
namespace Rubberduck . CodeAnalysis . Inspections . Concrete . EmptyBlock
@@ -38,7 +36,6 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
38
36
/// End Sub
39
37
/// ]]>
40
38
/// </example>
41
- [ Experimental ( nameof ( ExperimentalNames . EmptyBlockInspections ) ) ]
42
39
internal sealed class EmptyCaseBlockInspection : EmptyBlockInspectionBase < VBAParser . CaseClauseContext >
43
40
{
44
41
public EmptyCaseBlockInspection ( IDeclarationFinderProvider declarationFinderProvider )
Original file line number Diff line number Diff line change 1
1
using Antlr4 . Runtime . Misc ;
2
2
using Rubberduck . CodeAnalysis . Inspections . Abstract ;
3
3
using Rubberduck . Parsing ;
4
- using Rubberduck . Parsing . Common ;
5
4
using Rubberduck . Parsing . Grammar ;
6
5
using Rubberduck . Parsing . VBA ;
7
- using Rubberduck . Resources . Experimentals ;
8
6
using Rubberduck . Resources . Inspections ;
9
7
10
8
namespace Rubberduck . CodeAnalysis . Inspections . Concrete . EmptyBlock
@@ -33,7 +31,6 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
33
31
/// End Sub
34
32
/// ]]>
35
33
/// </example>
36
- [ Experimental ( nameof ( ExperimentalNames . EmptyBlockInspections ) ) ]
37
34
internal sealed class EmptyDoWhileBlockInspection : EmptyBlockInspectionBase < VBAParser . DoLoopStmtContext >
38
35
{
39
36
public EmptyDoWhileBlockInspection ( IDeclarationFinderProvider declarationFinderProvider )
Original file line number Diff line number Diff line change 1
1
using Antlr4 . Runtime . Misc ;
2
2
using Rubberduck . CodeAnalysis . Inspections . Abstract ;
3
3
using Rubberduck . Parsing ;
4
- using Rubberduck . Parsing . Common ;
5
4
using Rubberduck . Parsing . Grammar ;
6
5
using Rubberduck . Parsing . VBA ;
7
- using Rubberduck . Resources . Experimentals ;
8
6
using Rubberduck . Resources . Inspections ;
9
7
10
8
namespace Rubberduck . CodeAnalysis . Inspections . Concrete . EmptyBlock
@@ -35,7 +33,6 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
35
33
/// End Sub
36
34
/// ]]>
37
35
/// </example>
38
- [ Experimental ( nameof ( ExperimentalNames . EmptyBlockInspections ) ) ]
39
36
internal sealed class EmptyElseBlockInspection : EmptyBlockInspectionBase < VBAParser . ElseBlockContext >
40
37
{
41
38
public EmptyElseBlockInspection ( IDeclarationFinderProvider declarationFinderProvider )
Original file line number Diff line number Diff line change 1
1
using Antlr4 . Runtime . Misc ;
2
2
using Rubberduck . CodeAnalysis . Inspections . Abstract ;
3
3
using Rubberduck . Parsing ;
4
- using Rubberduck . Parsing . Common ;
5
4
using Rubberduck . Parsing . Grammar ;
6
5
using Rubberduck . Parsing . VBA ;
7
- using Rubberduck . Resources . Experimentals ;
8
6
using Rubberduck . Resources . Inspections ;
9
7
10
8
namespace Rubberduck . CodeAnalysis . Inspections . Concrete . EmptyBlock
@@ -35,7 +33,6 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
35
33
/// End Sub
36
34
/// ]]>
37
35
/// </example>
38
- [ Experimental ( nameof ( ExperimentalNames . EmptyBlockInspections ) ) ]
39
36
internal sealed class EmptyForEachBlockInspection : EmptyBlockInspectionBase < VBAParser . ForEachStmtContext >
40
37
{
41
38
public EmptyForEachBlockInspection ( IDeclarationFinderProvider declarationFinderProvider )
Original file line number Diff line number Diff line change 1
1
using Antlr4 . Runtime . Misc ;
2
2
using Rubberduck . CodeAnalysis . Inspections . Abstract ;
3
3
using Rubberduck . Parsing ;
4
- using Rubberduck . Parsing . Common ;
5
4
using Rubberduck . Parsing . Grammar ;
6
5
using Rubberduck . Parsing . VBA ;
7
- using Rubberduck . Resources . Experimentals ;
8
6
using Rubberduck . Resources . Inspections ;
9
7
10
8
namespace Rubberduck . CodeAnalysis . Inspections . Concrete . EmptyBlock
@@ -35,7 +33,6 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
35
33
/// End Sub
36
34
/// ]]>
37
35
/// </example>
38
- [ Experimental ( nameof ( ExperimentalNames . EmptyBlockInspections ) ) ]
39
36
internal sealed class EmptyForLoopBlockInspection : EmptyBlockInspectionBase < VBAParser . ForNextStmtContext >
40
37
{
41
38
public EmptyForLoopBlockInspection ( IDeclarationFinderProvider declarationFinderProvider )
Original file line number Diff line number Diff line change 1
1
using Antlr4 . Runtime . Misc ;
2
2
using Rubberduck . CodeAnalysis . Inspections . Abstract ;
3
3
using Rubberduck . Parsing ;
4
- using Rubberduck . Parsing . Common ;
5
4
using Rubberduck . Parsing . Grammar ;
6
5
using Rubberduck . Parsing . VBA ;
7
- using Rubberduck . Resources . Experimentals ;
8
6
using Rubberduck . Resources . Inspections ;
9
7
10
8
namespace Rubberduck . CodeAnalysis . Inspections . Concrete . EmptyBlock
@@ -33,7 +31,6 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
33
31
/// End Sub
34
32
/// ]]>
35
33
/// </example>
36
- [ Experimental ( nameof ( ExperimentalNames . EmptyBlockInspections ) ) ]
37
34
internal sealed class EmptyWhileWendBlockInspection : EmptyBlockInspectionBase < VBAParser . WhileWendStmtContext >
38
35
{
39
36
public EmptyWhileWendBlockInspection ( IDeclarationFinderProvider declarationFinderProvider )
You can’t perform that action at this time.
0 commit comments