Analyzer
`Query: analyzer` Fetch details of a single analyzer using the shortcode.
| Field | Type | Description |
|---|
| shortcode | String! | Shortcode of the analyzer you'd like to get. |
query {
analyzer(shortcode:"python") {
id
shortcode
name
}
}
{
"data": {
"analyzer": {
"id": "QW5hbHl6Zdd6bGtiZXZ6",
"shortcode": "python",
"name": "Python"
}
}
}
Query: analyzers Fetch all available analyzers on DeepSource.
| Field | Type | Description |
|---|
| offset | Int | Number of items to skip from the beginning of the result set. |
| before | String | Returns items before this cursor. |
| after | String | Returns items after this cursor. |
| first | Int | Returns the first N items. |
| last | Int | Returns the last N items. |
query {
analyzers{
edges {
node {
id
name
shortcode
}
}
}
}
{
"data": {
"analyzers": {
"edges": [
{
"node": {
"id": "QW5hbHl6ZXI6bGtiZXZ6",
"name": "Python",
"shortcode": "python"
}
},
{
"node": {
"id": "QW5hbHl6ZXI6cmx6b2xi",
"name": "Go",
"shortcode": "go"
}
}
]
}
}
}
| Field | Type | Description |
|---|
| id | ID! | The ID of the object. |
| shortcode | String! | Unique identifier for this analyzer globally. |
| name | String! | Human-friendly name for this analyzer. |
| version | String | Version of the analyzer. |
| description | String | Description of the analyzer. |
| type | AnalyzerType! | The type of the analyzer. |
| metaSchema | JSON | The JSON meta schema for the analyzer configuration. |
| exampleConfig | String | Example configuration for the analyzer. |
| logo | String | URL of the analyzer's logo. |
| numIssues | Int | Total number of issues this analyzer can detect. |
| issue | Issue | Fetch a specific issue by shortcode. |
| shortcode | String! | Shortcode of the issue. |
| issueDistribution | [IssueDistributionItem]! | Distribution of issues by category. |
| issues | IssueConnection! | All issues that this analyzer can detect. |
| offset | Int | Number of items to skip from the beginning of the result set. |
| before | String | Returns items before this cursor. |
| after | String | Returns items after this cursor. |
| first | Int | Returns the first N items. |
| last | Int | Returns the last N items. |
| Field | Type | Description |
|---|
| pageInfo | PageInfo! | Pagination data for this connection. |
| edges | AnalyzerEdge! | Contains the nodes in this connection. |
| totalCount | Int | Total number of items in the connection. |
A Relay edge containing a Analyzer and its cursor.
| Field | Type | Description |
|---|
| node | Analyzer | The item at the end of the edge. |
| cursor | String! | A cursor for use in pagination. |
Distribution of issues by category for an analyzer.
| Field | Type | Description |
|---|
| category | IssueCategory! | The issue category. |
| count | Int! | Number of issues in this category. |