Skip to content

Commit 3cdd860

Browse files
committed
Move remainder of inspections API to CodeAnalysis
1 parent 932ac85 commit 3cdd860

File tree

63 files changed

+59
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+59
-145
lines changed

Rubberduck.CodeAnalysis/Inspections/Abstract/InspectionBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Threading;
99
using NLog;
1010
using Rubberduck.CodeAnalysis.Inspections;
11-
using Rubberduck.Parsing.Inspections;
1211
using Rubberduck.Inspections.Inspections.Extensions;
1312
using Rubberduck.Parsing.VBA.DeclarationCaching;
1413

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
3+
namespace Rubberduck.CodeAnalysis.Inspections.Attributes
4+
{
5+
/// <summary>
6+
/// This inspection isn't looking at code from the CodePane pass, and cannot be annotated.
7+
/// </summary>
8+
[AttributeUsage(AttributeTargets.Class)]
9+
internal class CannotAnnotateAttribute : Attribute
10+
{}
11+
}

Rubberduck.Parsing/Inspections/RequiredHostAttribute.cs renamed to Rubberduck.CodeAnalysis/Inspections/Attributes/RequiredHostAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
using System.Collections.Generic;
33
using System.Linq;
44

5-
namespace Rubberduck.Parsing.Inspections
5+
namespace Rubberduck.CodeAnalysis.Inspections.Attributes
66
{
77
/// <summary>
88
/// This inspection requires a specific host application in order to run.
99
/// </summary>
1010
[AttributeUsage(AttributeTargets.Class)]
11-
public class RequiredHostAttribute : Attribute
11+
internal class RequiredHostAttribute : Attribute
1212
{
1313
public IEnumerable<string> HostNames { get; }
1414

Rubberduck.Parsing/Inspections/RequiredLibraryAttribute.cs renamed to Rubberduck.CodeAnalysis/Inspections/Attributes/RequiredLibraryAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System;
22

3-
namespace Rubberduck.Parsing.Inspections
3+
namespace Rubberduck.CodeAnalysis.Inspections.Attributes
44
{
55
/// <summary>
66
/// This inspection requires a specific type library to be referenced in order to run.
77
/// </summary>
88
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
9-
public class RequiredLibraryAttribute : Attribute
9+
internal class RequiredLibraryAttribute : Attribute
1010
{
1111
public RequiredLibraryAttribute(string name)
1212
{

Rubberduck.Parsing/Inspections/CodeInspectionSeverity.cs renamed to Rubberduck.CodeAnalysis/Inspections/CodeInspectionSeverity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Rubberduck.Parsing.Inspections
1+
namespace Rubberduck.CodeAnalysis.Inspections
22
{
33
public enum CodeInspectionSeverity
44
{

Rubberduck.Parsing/Inspections/CodeInspectionType.cs renamed to Rubberduck.CodeAnalysis/Inspections/CodeInspectionType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Rubberduck.Parsing.Inspections
1+
namespace Rubberduck.CodeAnalysis.Inspections
22
{
33
public enum CodeInspectionType
44
{

Rubberduck.CodeAnalysis/Inspections/Concrete/ArgumentWithIncompatibleObjectTypeInspection.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Linq;
33
using Rubberduck.Inspections.Inspections.Abstract;
44
using Rubberduck.Parsing.Grammar;
5-
using Rubberduck.Parsing.Inspections;
65
using Rubberduck.Parsing.Symbols;
76
using Rubberduck.Parsing.TypeResolvers;
87
using Rubberduck.Parsing.VBA;

Rubberduck.CodeAnalysis/Inspections/Concrete/AttributeValueOutOfSyncInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System.Collections.Generic;
22
using System.Linq;
3+
using Rubberduck.CodeAnalysis.Inspections.Attributes;
34
using Rubberduck.Inspections.Abstract;
45
using Rubberduck.Parsing.Annotations;
5-
using Rubberduck.Parsing.Inspections;
66
using Rubberduck.Parsing.Symbols;
77
using Rubberduck.Parsing.VBA;
88
using Rubberduck.Parsing.VBA.DeclarationCaching;

Rubberduck.CodeAnalysis/Inspections/Concrete/DefaultMemberRequiredInspection.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Collections.Generic;
22
using Rubberduck.Inspections.Abstract;
3-
using Rubberduck.Parsing.Inspections;
43
using Rubberduck.Parsing.Symbols;
54
using Rubberduck.Parsing.VBA;
65
using Rubberduck.Parsing.VBA.DeclarationCaching;

Rubberduck.CodeAnalysis/Inspections/Concrete/DefaultProjectNameInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Rubberduck.Inspections.Abstract;
2-
using Rubberduck.Parsing.Inspections;
1+
using Rubberduck.CodeAnalysis.Inspections.Attributes;
2+
using Rubberduck.Inspections.Abstract;
33
using Rubberduck.Parsing.Symbols;
44
using Rubberduck.Parsing.VBA;
55
using Rubberduck.Parsing.VBA.DeclarationCaching;

0 commit comments

Comments
 (0)