gRPC

Checks on an SDK generated from a proto file and its services.

Rule Default Summary
Grpc/NoMethodsGenerated warn A configured target gets no operations at all from the proto input.
Grpc/ServiceNotFound warn A configured grpc.services key names no service in the proto.
Grpc/ServiceNotPlaced info A service the proto declares is not one the SDK is generated from.
Grpc/ServicePlacementUnapplied warn A configured grpc.services block states fields that are not in effect.
Grpc/TranscodeQueryFormat warn Configured query settings do not match what a transcoding gateway parses.
Grpc/UnspellableProcedure warn A service or RPC name cannot be written as a config endpoint, so it is skipped.

Grpc/NoMethodsGenerated

A configured target gets no operations at all from the proto input.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A configured target gets no operations at all from the proto input.

Changing or silencing it

Each finding's suppression key is grpc.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Grpc/NoMethodsGenerated": "info"
    },
    "ignored": {
      "Grpc/NoMethodsGenerated": "<suppression key>"
    }
  }
}

Grpc/ServiceNotFound

A configured grpc.services key names no service in the proto.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A configured grpc.services key names no service in the proto.

Changing or silencing it

Each finding's suppression key is the service name.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Grpc/ServiceNotFound": "info"
    },
    "ignored": {
      "Grpc/ServiceNotFound": "<suppression key>"
    }
  }
}

Grpc/ServiceNotPlaced

A service the proto declares is not one the SDK is generated from.

Default severity Fix lives in
info Your API description (document)

When it fires

A service the proto declares is not one the SDK is generated from.

Changing or silencing it

Each finding's suppression key is the service name.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Grpc/ServiceNotPlaced": "off"
    },
    "ignored": {
      "Grpc/ServiceNotPlaced": "<suppression key>"
    }
  }
}

Grpc/ServicePlacementUnapplied

A configured grpc.services block states fields that are not in effect.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A configured grpc.services block states fields that are not in effect.

Changing or silencing it

Each finding's suppression key is <service> <field> ….

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Grpc/ServicePlacementUnapplied": "info"
    },
    "ignored": {
      "Grpc/ServicePlacementUnapplied": "<suppression key>"
    }
  }
}

Grpc/TranscodeQueryFormat

Configured query settings do not match what a transcoding gateway parses.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

The configured query settings do not match what a transcoding gateway parses.

Changing or silencing it

Each finding's suppression key is the settings, such as arrayFormat nestedFormat.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Grpc/TranscodeQueryFormat": "info"
    },
    "ignored": {
      "Grpc/TranscodeQueryFormat": "<suppression key>"
    }
  }
}

Grpc/UnspellableProcedure

A service or RPC name cannot be written as a config endpoint, so it is skipped.

Default severity Fix lives in
warn Your API description (document)

When it fires

A service or RPC name cannot be written as a config endpoint, so it is skipped.

Changing or silencing it

Each finding's suppression key is the service name.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Grpc/UnspellableProcedure": "info"
    },
    "ignored": {
      "Grpc/UnspellableProcedure": "<suppression key>"
    }
  }
}

See also

What did you think of this content?