Skip to content

Add analyzers #8072

@glen-84

Description

@glen-84

Product

Hot Chocolate

Is your feature request related to a problem?

Developers using the platform may not be following best practices.

The solution you'd like

Add analyzers such as:

  • Don't use .With(queryContext) and .Select together.
  • Node resolver id argument doesn't need [ID].
  • Don't need [Service].
  • Somehow warn when the user doesn't have the HC.EF package installed.
  • Encourage modern APIs (f.e. ObjectType<T>).
  • Specify requirements when using [Parent] and QueryContext.
  • Order of middlewares
  • Not providing an IReadOnlyList keys as the first argument of a dataloader
  • Validate that BindMember binds a valid member
  • Use source generator for root types aka make class partial
  • Parent type check
  • Dont use UseProjectionAttribute when using QueryContext<T>

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions