Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help with more errors #1333

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DependencyInjection.Analyzers/AssemblyCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
Diagnostics.UnhandledException,
null,
e.Message,
e.StackTrace,
e.StackTrace.Replace("\r", "").Replace("\n", ""),

Check warning on line 134 in src/DependencyInjection.Analyzers/AssemblyCollection.cs

View check run for this annotation

Codecov / codecov/patch

src/DependencyInjection.Analyzers/AssemblyCollection.cs#L134

Added line #L134 was not covered by tests
e.GetType().Name,
e.ToString()
)
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection.Analyzers/ReflectionCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
Diagnostics.UnhandledException,
null,
e.Message,
e.StackTrace,
e.StackTrace.Replace("\r", "").Replace("\n", ""),

Check warning on line 50 in src/DependencyInjection.Analyzers/ReflectionCollection.cs

View check run for this annotation

Codecov / codecov/patch

src/DependencyInjection.Analyzers/ReflectionCollection.cs#L50

Added line #L50 was not covered by tests
e.GetType().Name,
e.ToString()
)
Expand Down Expand Up @@ -133,7 +133,7 @@
Diagnostics.UnhandledException,
null,
e.Message,
e.StackTrace,
e.StackTrace.Replace("\r", "").Replace("\n", ""),

Check warning on line 136 in src/DependencyInjection.Analyzers/ReflectionCollection.cs

View check run for this annotation

Codecov / codecov/patch

src/DependencyInjection.Analyzers/ReflectionCollection.cs#L136

Added line #L136 was not covered by tests
e.GetType().Name,
e.ToString()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
Diagnostics.UnhandledException,
null,
e.Message,
e.StackTrace,
e.StackTrace.Replace("\r", "").Replace("\n", ""),

Check warning on line 49 in src/DependencyInjection.Analyzers/ServiceDescriptorCollection.cs

View check run for this annotation

Codecov / codecov/patch

src/DependencyInjection.Analyzers/ServiceDescriptorCollection.cs#L49

Added line #L49 was not covered by tests
e.GetType().Name,
e.ToString()
)
Expand Down Expand Up @@ -115,7 +115,7 @@
Diagnostics.UnhandledException,
null,
e.Message,
e.StackTrace,
e.StackTrace.Replace("\r", "").Replace("\n", ""),

Check warning on line 118 in src/DependencyInjection.Analyzers/ServiceDescriptorCollection.cs

View check run for this annotation

Codecov / codecov/patch

src/DependencyInjection.Analyzers/ServiceDescriptorCollection.cs#L118

Added line #L118 was not covered by tests
e.GetType().Name,
e.ToString()
)
Expand Down Expand Up @@ -165,7 +165,7 @@
var asSelf = serviceTypes.ServiceTypeDescriptors.OfType<SelfServiceTypeDescriptor>().Any() || !serviceTypes.ServiceTypeDescriptors.Any();
var asImplementedInterfaces = serviceTypes.ServiceTypeDescriptors.OfType<ImplementedInterfacesServiceTypeDescriptor>().ToArray();
var asMatchingInterface = serviceTypes.ServiceTypeDescriptors.OfType<MatchingInterfaceServiceTypeDescriptor>().Any();
var asSpecificTypes = serviceTypes.ServiceTypeDescriptors.OfType<CompiledServiceTypeDescriptor>().Select(z => z.Type).ToArray();
var asSpecificTypes = serviceTypes.ServiceTypeDescriptors.OfType<CompiledServiceTypeDescriptor>().Select(z => z.Type).Where(z => z is { }).ToArray();
var registrationLifetimeAttribute = compilation.GetTypeByMetadataName("Rocket.Surgery.DependencyInjection.RegistrationLifetimeAttribute")!;

var services = new List<InvocationExpressionSyntax>();
Expand Down
Loading