Arguments
| Field | Type | Description |
|---|
| shortcode | String! | Shortcode of the code formatter. |
Sample Request
query {
codeFormatter(shortcode: "gofmt") {
id
name
shortcode
description
}
}
Sample Response
{
"data": {
"codeFormatter": {
"id": "VHJhbnNmb3JtZXI6bGp6a3d6",
"name": "Go fmt",
"shortcode": "gofmt",
"description": "Gofmt formats Go programs..."
}
}
}
Query: codeFormatters Fetch details of all available code formatters on DeepSource.
Arguments
| Field | Type | Description |
|---|
| offset | Int | |
| before | String | |
| after | String | |
| first | Int | |
| last | Int | |
| name_Icontains | String | Filter by name (case-insensitive). |
Sample Request
query {
codeFormatters {
edges {
node {
id
name
shortcode
description
}
}
}
}
Sample Response
{
"data": {
"codeFormatters": {
"edges": [
{
"node": {
"id": "VHJhbnNmb3JtZXI6ZXJ6amFi",
"name": "dotnet-format",
"shortcode": "dotnet-format",
"description": "dotnet-format is a code formatter for dotnet..."
}
},
{
"node": {
"id": "VHJhbnNmb3JtZXI6bGp6a3d6",
"name": "Go fmt",
"shortcode": "gofmt",
"description": "Gofmt formats Go programs..."
}
}
]
}
}
}
Objects
A code formatter on DeepSource.
| Field | Type | Description |
|---|
| id | ID! | The unique identifier for the code formatter. |
| name | String! | Name of the code formatter. |
| shortcode | String! | Unique identifier for this code formatter globally. |
| description | String! | Verbose description, written in Markdown. |
| logo | String | URL of the code formatter logo. |
| analyzer | Analyzer | Associated analyzer. |
| exampleConfig | String | Example configuration for this code formatter. |
| Field | Type | Description |
|---|
| pageInfo | PageInfo! | Pagination data for this connection. |
| edges | [CodeFormatterEdge]! | Contains the nodes in this connection. |
| totalCount | Int | |
A Relay edge containing a CodeFormatter and its cursor.
| Field | Type | Description |
|---|
| node | CodeFormatter | The item at the end of the edge. |
| cursor | String! | A cursor for use in pagination. |
Deprecated Queries
The following queries are deprecated and will be removed in a future version. Please migrate to codeFormatter and codeFormatters.
Query: transformer - Deprecated. Use codeFormatter instead.
query {
transformer(shortcode: "gofmt") {
id
name
shortcode
}
}
Query: transformers - Deprecated. Use codeFormatters instead.
query {
transformers {
edges {
node {
id
name
shortcode
}
}
}
}