Skip to main content

Overview

This page provides a comprehensive table of all available Stackworx analyzers and their rules. Click on any rule to view detailed documentation.

All Rules

Rule IDTitleCategorySeveritySummary
SW001Avoid implicit DateTime → DateTimeOffset conversionUsageWarningFlags implicit conversions from DateTime to DateTimeOffset, requiring explicit construction.
SW002Method appears unusedUsageWarning (disabled by default)Flags source-declared methods that have no references in the current compilation (ignores JetBrains [PublicAPI]/[UsedImplicitly]).
SWGQL01Field extension methods on non-static classes must be instance methodsGraphQLErrorValidates that static field extension methods are only used in static classes.
SWGQL02DataLoader interface appears unusedGraphQLInfoDetects DataLoader interfaces that aren't referenced in the compilation.
SWGQL03Class with [ExtendObjectType] must be staticGraphQLErrorEnforces that classes annotated with [ExtendObjectType] are declared as static.
SWGQL04Duplicate GraphQL extension fieldGraphQLErrorDetects duplicate GraphQL field resolvers across [ExtendObjectType<T>] extension classes for the same type.
SWGQL05HotChocolate GraphQL type should be marked as [UsedImplicitly]GraphQLWarningGraphQL types are often discovered via reflection; requires [UsedImplicitly] on HotChocolate schema types.
SWGQL06[UsedImplicitly] applied to non-GraphQL typeGraphQLWarningFlags [UsedImplicitly] on types that don't look like HotChocolate GraphQL schema types.
SW101Forbidden reference to feature-internal namespaceArchitectureWarningPrevents references to feature-internal namespaces from outside the feature.
SW102Forbidden using to feature-internal namespaceArchitectureWarningPrevents using directives that import feature-internal namespaces from outside.

Rules by Category

GraphQL Rules

Usage Rules

Architecture Rules