Repository Analysis

graphql/graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.

1.4 Likely human-written View on GitHub
1.4
Adjusted Score
1.4
Raw Score
100%
Time Factor
2026-05-28
Last Push
16,837
Stars
TypeScript
Language
73,195
Lines of Code
653
Files
64
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 8MEDIUM 1LOW 55

Pattern Findings

64 matches across 6 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers42 hits · 44 pts
SeverityFileLineSnippet
LOWdocs/migration/graphiql-4.0.0.md85 additionalComponent: function MyComponentWithAccessToContext() {
LOWexamples/monaco-graphql-nextjs/src/constants.ts92export function getOrCreateModel({ uri, value }: { uri: Uri; value: string }) {
LOWexamples/monaco-graphql-react-vite/src/constants.ts92export function getOrCreateModel({ uri, value }: { uri: Uri; value: string }) {
LOWpackages/graphiql-react/src/stores/editor.ts328 function synchronizeActiveTabValues(tabsState: TabsState): TabsState {
LOW…ges/graphiql-react/src/components/operation-editor.tsx158 function getAndUpdateOperationFacts(editorInstance: MonacoEditor) {
LOW…ges/graphiql-react/src/components/operation-editor.tsx158 function getAndUpdateOperationFacts(editorInstance: MonacoEditor) {
LOWpackages/graphiql-react/src/utility/resize.ts158 function setHiddenElementWithCallback(element: ResizableElement | null) {
LOWpackages/graphiql-react/src/utility/tabs.ts264export function fuzzyExtractOperationName(str: string): string | null {
LOWpackages/graphiql-react/src/utility/create-editor.ts18export function getOrCreateModel({
LOWpackages/graphiql/CHANGELOG.md638 additionalComponent: function MyComponentWithAccessToContext() {
LOWpackages/graphiql/CHANGELOG.md800 additionalComponent: function MyComponentWithAccessToContext() {
LOWpackages/graphiql/cypress/support/commands.ts141function normalizeMonacoWhitespace(str: string): string {
LOWpackages/graphiql/src/ui/sidebar.tsx105 function handleOpenShortKeysDialog(isOpen: boolean) {
LOWpackages/graphiql-toolkit/src/create-fetcher/lib.ts73export async function createWebsocketsFetcherFromUrl(
LOW…/graphiql-toolkit/src/graphql-helpers/auto-complete.ts86function defaultGetDefaultFieldNames(type: GraphQLType) {
LOW…ages/graphiql-toolkit/src/graphql-helpers/merge-ast.ts48function inlineRelevantFragmentSpreads(
LOWpackages/monaco-graphql/src/graphqlMode.ts30 function registerSchemaLessProviders(): void {
LOW…raphql-language-service-server/src/MessageProcessor.ts1388export function processDiagnosticsMessage(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts132export function getAutocompleteSuggestions(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts464function getSuggestionsForTypeSystemDefinitions(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts473function getSuggestionsForExecutableDefinitions(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts479function getSuggestionsForUnknownDocumentMode(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts489function getSuggestionsForExtensionDefinitions(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts495function getSuggestionsForFieldNames(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts570function getSuggestionsForInputValues(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts627function getSuggestionsForImplements(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts738function getSuggestionsForFragmentTypeConditions(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts782function getSuggestionsForFragmentSpread(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts935function getSuggestionsForVariableDefinition(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts953function getSuggestionsForDirective(
LOW…ge-service/src/interface/getAutocompleteSuggestions.ts977function getSuggestionsForDirectiveArguments(
LOW…raphql-language-service/src/interface/getDefinition.ts62export async function getDefinitionQueryResultForNamedType(
LOW…raphql-language-service/src/interface/getDefinition.ts87export async function getDefinitionQueryResultForField(
LOW…raphql-language-service/src/interface/getDefinition.ts124export async function getDefinitionQueryResultForArgument(
LOW…raphql-language-service/src/interface/getDefinition.ts156export async function getDefinitionQueryResultForFragmentSpread(
LOW…raphql-language-service/src/interface/getDefinition.ts180export function getDefinitionQueryResultForDefinitionNode(
LOW…raphql-language-service/src/interface/getDefinition.ts192function getDefinitionForFragmentDefinition(
LOW…raphql-language-service/src/interface/getDefinition.ts215function getDefinitionForNodeDefinition(
LOW…raphql-language-service/src/interface/getDefinition.ts234function getDefinitionForFieldDefinition(
LOW…raphql-language-service/src/interface/getDefinition.ts253function getDefinitionForArgumentDefinition(
LOW…l-language-service/src/utils/getVariablesJSONSchema.ts91function renderDefinitionDescription(
LOW…l-language-service/src/utils/getVariablesJSONSchema.ts172function getJSONSchemaFromGraphQLType(
Cross-File Repetition8 hits · 40 pts
SeverityFileLineSnippet
HIGH…es/vscode-graphql-syntax/tests/__fixtures__/test-py.md0#graphql query getcontinents { continents { code name } }
HIGH…es/vscode-graphql-syntax/tests/__fixtures__/test-py.md0#graphql query getcontinents { continents { code name } }
HIGH…es/vscode-graphql-syntax/tests/__fixtures__/test-py.md0#graphql query getcontinents { continents { code name } }
HIGH…es/vscode-graphql-syntax/tests/__fixtures__/test-py.md0#graphql query getcontinents { continents { code name } }
HIGH…kages/vscode-graphql-syntax/tests/__fixtures__/test.py0#graphql query getcontinents { continents { code name } }
HIGH…kages/vscode-graphql-syntax/tests/__fixtures__/test.py0#graphql query getcontinents { continents { code name } }
HIGH…kages/vscode-graphql-syntax/tests/__fixtures__/test.py0#graphql query getcontinents { continents { code name } }
HIGH…kages/vscode-graphql-syntax/tests/__fixtures__/test.py0#graphql query getcontinents { continents { code name } }
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippet
LOWresources/custom-words.txt1Здорово
LOWexamples/monaco-graphql-nextjs/next-env.d.ts1/// <reference types="next" />
LOWexamples/graphiql-nextjs/next-env.d.ts1/// <reference types="next" />
LOWpackages/graphiql-react/src/vite-env.d.ts1/// <reference types="vite-plugin-svgr/client" />
LOWpackages/graphiql-react/src/constants.ts61# typeaheads aware of the current GraphQL type schema and live syntax and
LOWpackages/graphiql-react/src/components/provider.tsx301 }
LOWpackages/graphiql-plugin-explorer/src/vite-env.d.ts1/// <reference types="vite-plugin-svgr/client" />
LOWpackages/graphiql/cypress/support/e2e.ts1// ***********************************************************
LOW…raphql-language-service-server/src/MessageProcessor.ts981 // }
LOW…raphql-language-service-server/src/MessageProcessor.ts1141 // 'generated-schema.graphql',
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWpackages/codemirror-graphql/resources/checkgit.sh17# Check if main is checked out
LOWpackages/codemirror-graphql/resources/checkgit.sh23# Check if branch is synced with remote
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMpackages/graphiql/test/schema.js149 'delay in milliseconds for subsequent results, for demonstration purposes',
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWfunctions/graphql.ts32 return async function handleRequest(req, ctx) {