Repository Analysis

graphile/crystal

🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!

2.2 Likely human-written View on GitHub
2.2
Adjusted Score
2.2
Raw Score
100%
Time Factor
2026-05-15
Last Push
12,921
Stars
TypeScript
Language
290,706
Lines of Code
1938
Files
228
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 95MEDIUM 7LOW 126

Pattern Findings

228 matches across 7 categories. Click a row to expand file-level details.

Cross-File Repetition93 hits · 465 pts
SeverityFileLineSnippet
HIGH…e/website/versioned_docs/version-4/function-gallery.md0chosen by fair dice roll. guaranteed to be random. xkcd#221
HIGH…e/website/versioned_docs/version-5/function-gallery.md0chosen by fair dice roll. guaranteed to be random. xkcd#221
HIGHpostgraphile/website/postgraphile/function-gallery.md0chosen by fair dice roll. guaranteed to be random. xkcd#221
HIGH…e/website/versioned_docs/version-4/function-gallery.md0reads a single `forum` using its globally unique `id`.
HIGH…e/website/versioned_docs/version-5/function-gallery.md0reads a single `forum` using its globally unique `id`.
HIGHpostgraphile/website/postgraphile/function-gallery.md0reads a single `forum` using its globally unique `id`.
HIGH…e/website/versioned_docs/version-4/function-gallery.md0condition: quizentrycondition ): quizentriesconnection! + primaryemail: string }
HIGH…e/website/versioned_docs/version-5/function-gallery.md0condition: quizentrycondition ): quizentriesconnection! + primaryemail: string }
HIGHpostgraphile/website/postgraphile/function-gallery.md0condition: quizentrycondition ): quizentriesconnection! + primaryemail: string }
HIGH…e/website/versioned_docs/version-4/function-gallery.md0+ an arbitrary string value with no semantic meaning. will be included in the + payload verbatim. may be used to track m
HIGH…e/website/versioned_docs/version-5/function-gallery.md0+ an arbitrary string value with no semantic meaning. will be included in the + payload verbatim. may be used to track m
HIGHpostgraphile/website/postgraphile/function-gallery.md0+ an arbitrary string value with no semantic meaning. will be included in the + payload verbatim. may be used to track m
HIGH…e/website/versioned_docs/version-4/function-gallery.md0+ the exact same `clientmutationid` that was provided in the mutation input, + unchanged and unused. may be used by a cl
HIGH…e/website/versioned_docs/version-5/function-gallery.md0+ the exact same `clientmutationid` that was provided in the mutation input, + unchanged and unused. may be used by a cl
HIGHpostgraphile/website/postgraphile/function-gallery.md0+ the exact same `clientmutationid` that was provided in the mutation input, + unchanged and unused. may be used by a cl
HIGH…e/website/versioned_docs/version-4/function-gallery.md0+ our root query field type. allows us to run any query from our mutation payload. +
HIGH…e/website/versioned_docs/version-5/function-gallery.md0+ our root query field type. allows us to run any query from our mutation payload. +
HIGHpostgraphile/website/postgraphile/function-gallery.md0+ our root query field type. allows us to run any query from our mutation payload. +
HIGH…e/website/versioned_docs/version-4/function-gallery.md0reads a single `user` that is related to this `quizentry`.
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0reads a single `user` that is related to this `quizentry`.
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0reads a single `user` that is related to this `quizentry`.
HIGH…e/website/versioned_docs/version-5/function-gallery.md0reads a single `user` that is related to this `quizentry`.
HIGHpostgraphile/website/postgraphile/function-gallery.md0reads a single `user` that is related to this `quizentry`.
HIGH…e/website/versioned_docs/version-4/function-gallery.md0reads a single `quiz` that is related to this `quizentry`.
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0reads a single `quiz` that is related to this `quizentry`.
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0reads a single `quiz` that is related to this `quizentry`.
HIGH…e/website/versioned_docs/version-5/function-gallery.md0reads a single `quiz` that is related to this `quizentry`.
HIGHpostgraphile/website/postgraphile/function-gallery.md0reads a single `quiz` that is related to this `quizentry`.
HIGH…e/website/versioned_docs/version-4/function-gallery.md0an edge for our `quizentry`. may be used by relay 1.
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0an edge for our `quizentry`. may be used by relay 1.
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0an edge for our `quizentry`. may be used by relay 1.
HIGH…e/website/versioned_docs/version-5/function-gallery.md0an edge for our `quizentry`. may be used by relay 1.
HIGHpostgraphile/website/postgraphile/function-gallery.md0an edge for our `quizentry`. may be used by relay 1.
HIGH…e/website/versioned_docs/version-4/function-gallery.md0a floating point number that requires more precision than ieee 754 binary 64
HIGH…e/website/versioned_docs/version-5/function-gallery.md0a floating point number that requires more precision than ieee 754 binary 64
HIGHpostgraphile/website/postgraphile/function-gallery.md0a floating point number that requires more precision than ieee 754 binary 64
HIGH…e/website/versioned_docs/version-4/function-gallery.md0input: deleteuserbyusernameinput! ): deleteuserpayload + addquizentry( +
HIGH…e/website/versioned_docs/version-5/function-gallery.md0input: deleteuserbyusernameinput! ): deleteuserpayload + addquizentry( +
HIGHpostgraphile/website/postgraphile/function-gallery.md0input: deleteuserbyusernameinput! ): deleteuserpayload + addquizentry( +
HIGH…e/website/versioned_docs/version-4/function-gallery.md0+ input: addquizentryinput! + ): addquizentrypayload
HIGH…e/website/versioned_docs/version-5/function-gallery.md0+ input: addquizentryinput! + ): addquizentrypayload
HIGHpostgraphile/website/postgraphile/function-gallery.md0+ input: addquizentryinput! + ): addquizentrypayload
HIGH…e/website/versioned_docs/version-4/function-gallery.md0an input for mutations affecting `quizentryinputrecord`
HIGH…e/website/versioned_docs/version-5/function-gallery.md0an input for mutations affecting `quizentryinputrecord`
HIGHpostgraphile/website/postgraphile/function-gallery.md0an input for mutations affecting `quizentryinputrecord`
HIGH…e/website/versioned_docs/version-4/function-gallery.md0represents an update to a `quizentry`. fields that are set will be updated.
HIGH…e/versioned_docs/version-4/plugin-gallery/inflector.md0represents an update to a `quizentry`. fields that are set will be updated.
HIGH…e/website/versioned_docs/version-5/function-gallery.md0represents an update to a `quizentry`. fields that are set will be updated.
HIGHpostgraphile/website/postgraphile/function-gallery.md0represents an update to a `quizentry`. fields that are set will be updated.
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
HIGH…rsioned_docs/version-4/plugin-gallery/customisation.md0- an arbitrary string value with no semantic meaning. will be included in the - payload verbatim. may be used to track m
33 more matches not shown…
Hyper-Verbose Identifiers101 hits · 102 pts
SeverityFileLineSnippet
LOW…ild/website/versioned_docs/version-4/schema-builder.md61function GraphQLObjectTypeLogNamePlugin(builder) {
LOW…e-build/website/versioned_docs/version-4/look-ahead.md211function MyObjectAddIdDataGeneratorPlugin(builder) {
LOWgraphile-build/graphile-build-pg/src/inputUtils.ts39export function getCodecMetaLookupFromInput(
LOW…e-build-pg/src/plugins/PgMutationUpdateDeletePlugin.ts182 function applyInputToUpdateOrDelete(
LOW…aphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts230function shouldUseCustomConnection(
LOW…aphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts240function defaultProcSourceBehavior(
LOW…aphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts991 function pgFunctionArgumentsFromArgs(
LOW…aphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts998 function pgFunctionArgumentsFromArgs(
LOW…aphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts1006 function pgFunctionArgumentsFromArgs(
LOW…aphile-build-pg/src/plugins/PgCustomTypeFieldPlugin.ts1534function getFunctionSourceReturnGraphQLType(
LOW…e-build-pg/src/plugins/PgConnectionArgOrderByPlugin.ts39 function applyOrderByArgToConnection(
LOW…-build-pg/src/plugins/PgConditionCustomFieldsPlugin.ts37export function isSimpleScalarComputedColumnLike(resource: PgResource) {
LOWgraphile-build/graphile-build-pg/src/examples/config.ts67export async function makeSharedPresetAndClient(pool: Pool) {
LOWgraphile-build/graphile-build-pg/src/examples/config.ts67export async function makeSharedPresetAndClient(pool: Pool) {
LOWutils/graphile-export/src/exportSchema.ts108function locationHintToIdentifierName(locationHint: string): string {
LOWutils/graphile-export/src/exportSchema.ts1177function convertToIdentifierViaAST(
LOWutils/graphile-export/src/optimize/index.ts92function isSafeTemplateLiteralStringChunk(value: string): boolean {
LOWutils/graphile-export/src/optimize/index.ts153function eliminateRedundantArguments(
LOWutils/graphile-export/src/optimize/index.ts334function inlineIfReferencedOnceOnly(
LOWutils/graphile-export/src/optimize/index.ts858function expressionIsNullOrUndefined(expr: t.Expression | t.PrivateName) {
LOWutils/lds/src/index.ts55export default async function subscribeToLogicalDecoding(
LOWutils/pg-introspection/src/augmentIntrospection.ts270export function augmentIntrospectionParsed(
LOWutils/pg-introspection/src/index.ts67export function parseIntrospectionResults(
LOWutils/eslint-plugin-graphile-export/src/common.ts38export function fastFindReferenceWithParent(
LOW…ls/eslint-plugin-graphile-export/src/ExhaustiveDeps.ts40function gatherDependenciesRecursively(
LOW…ls/eslint-plugin-graphile-export/src/ExhaustiveDeps.ts191 function visitFunctionWithDependencies(
LOW…ls/eslint-plugin-graphile-export/src/ExhaustiveDeps.ts585 function getOrCreateNodeByPath(rootNode: DepTree, path: string) {
LOWutils/tamedevil/src/index.ts112function makeTemporaryVariableNode(symbol: symbol): TETemporaryVariableNode {
LOWutils/tamedevil/src/index.ts449function dangerouslyIncludeRawCode(text: string): TE {
LOWutils/graphile/src/utils/typescriptVfs.ts198export function prettyQuickInfoDisplayParts(
LOW…alizer-graphql-schema/src/consistentlyOrderedSchema.ts68export function consistentlyOrderedSchema(
LOWgrafast/grafserv/src/utils.ts226export function normalizeConnectionParams(
LOWgrafast/grafserv/src/middleware/graphiql.ts104export function makeGraphiQLStaticHandler(
LOWgrafast/grafserv/src/middleware/graphql.ts46export function makeParseAndValidateFunction(
LOWgrafast/grafserv/src/middleware/graphql.ts550function handleGraphQLHandlerError(
LOWgrafast/grafserv/src/core/base.ts569function defaultMakeGetExecutionConfig(): (
LOWgrafast/grafserv/src/core/base.ts673export function convertHandlerResultToResult(
LOWgrafast/website/grafast/standard-steps/loadOne.md194async function getPersonByOrganizationIdAndMembershipNumber(lookups) {
LOWgrafast/dataplan-pg/src/codecs.ts234function pgWrapQuotesInCompositeValue(str: string): string {
LOWgrafast/dataplan-pg/src/codecs.ts1455export function getCodecByPgCatalogTypeName(pgCatalogTypeName: string) {
LOWgrafast/dataplan-pg/src/adaptors/pg.ts337export function makePgAdaptorWithPgClient(
LOWgrafast/dataplan-pg/src/adaptors/pg.ts390export function makeWithPgClientViaPgClientAlreadyInTransaction(
LOWgrafast/dataplan-pg/src/steps/pgStmt.ts318export function calculateLimitAndOffsetSQL(params: {
LOWgrafast/dataplan-pg/src/steps/pgStmt.ts529export function calculateLimitAndOffsetSQLFromInfo(
LOWgrafast/dataplan-pg/src/steps/pgStmt.ts551export function applyCommonPaginationStuff(
LOWgrafast/dataplan-pg/src/steps/pgCondition.ts309export function pgWhereConditionSpecListToSQL(
LOWgrafast/dataplan-pg/src/steps/pgSelect.ts2549export function generatePgParameterAnalysis(
LOWgrafast/dataplan-pg/src/steps/pgSelect.ts2667export function getFragmentAndCodecFromOrder(
LOWgrafast/dataplan-pg/src/steps/pgSelect.ts4201function pgInlineViaSubqueryTransform([details, item]: readonly [
LOWgrafast/ruru/src/cli.ts56async function tryLoadHttpProxyCreateProxyServer(): Promise<
LOWgrafast/grafserv-persisted/src/index.ts95function persistedOperationGetterForCache(cache: { [key: string]: string }) {
LOWgrafast/grafserv-persisted/src/index.ts307function shouldAllowUnpersistedOperation(
LOWgrafast/grafserv-persisted/src/index.ts322function persistedOperationFromPayload(
LOWgrafast/grafast/__tests__/combined-layer-plan-test.ts79function notificationPartitionInterface(): InterfacePlan<Notification> {
LOWgrafast/grafast/__tests__/combined-layer-plan-test.ts123function notificationToSpecifierInterface(): InterfacePlan<
LOWgrafast/grafast/__tests__/distributor-test.ts196function throwOnUnhandledRejections(callback: () => Promise<void>) {
LOWgrafast/grafast/__tests__/onError-test.ts91function throwOnUnhandledRejections(callback: () => Promise<void>) {
LOW…afast/__tests__/errorHandlingStreamTermination-test.ts122function throwOnUnhandledRejections(callback: () => Promise<void>) {
LOWgrafast/grafast/__tests__/errorHandling-test.ts164function throwOnUnhandledRejections(callback: () => Promise<void>) {
LOWgrafast/grafast/__tests__/conformance/corpus-test.ts72function removeSpecifiedDirectives(schemaText: string) {
41 more matches not shown…
AI Slop Vocabulary7 hits · 30 pts
SeverityFileLineSnippet
MEDIUMgraphile-build/graphile-build/src/AllHooksNoopPlugin.ts239 // Essentially identical to GraphQLObjectType but for interfaces
MEDIUMgraphile-build/graphile-build/src/AllHooksNoopPlugin.ts243 // Essentially identical to GraphQLObjectType_interfaces but for interfaces
MEDIUMgraphile-build/graphile-build/src/AllHooksNoopPlugin.ts247 // Essentially identical to GraphQLObjectType_fields but for interfaces
MEDIUMgraphile-build/graphile-build/src/AllHooksNoopPlugin.ts251 // Essentially identical to GraphQLObjectType_fields_field but for interfaces
MEDIUMgraphile-build/graphile-build/src/AllHooksNoopPlugin.ts255 // Essentially identical to GraphQLObjectType_fields_field_args but for interfaces
MEDIUMgraphile-build/graphile-build/src/AllHooksNoopPlugin.ts259 // Essentially identical to GraphQLObjectType_fields_field_args_arg but for interfaces
MEDIUMgrafast/grafast/src/input.ts120 // Definitely can't be or contain a variable!
Over-Commented Block15 hits · 15 pts
SeverityFileLineSnippet
LOWpublish.sh1#!/usr/bin/env bash
LOWpublish.sh21 #"$BUILD_DIR/graphile-build.tgz"
LOWutils/website/pg-sql2/api/sql-comment.md121// Line 1
LOWgrafast/dataplan-pg/src/pgLocker.ts141 }
LOWgrafast/grafast/src/steps/__inputObject.ts201 // values of each key may still be undefined if they're a variable that
LOWgrafast/grafast/src/engine/OperationPlan.ts2141 planFieldReturnTypeEntriesByStep,
LOWgrafast/grafast/src/engine/OperationPlan.ts3461 // be garbage collected) - however if we're already fetching the list then
LOWgrafast/grafast/src/engine/OperationPlan.ts4061 // 1: no need to adjust polymorphicPaths, since we don't cross polymorphic boundary
LOWgrafast/ruru-components/src/defaultQuery.ts1export const defaultQuery = `\
LOWgrafast/ruru-components/src/defaultQuery.ts21# }
LOW…d_docs/version-4/make-add-pg-table-condition-plugin.md101 const { sql, sqlTableAlias } = helpers;
LOW…rsioned_docs/version-4/plugin-gallery/customisation.md1041// This function is the one that would perform sanitisation (writing actual
LOW…rsioned_docs/version-4/plugin-gallery/customisation.md1101 pgRegisterGqlInputTypeByTypeId(
LOW…ersion-5/migrating-from-v4/migrating-custom-plugins.md401
LOW…graphile/migrating-from-v4/migrating-custom-plugins.md401
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippet
HIGHutils/pg-sql2/src/index.ts603 print(item.c, indent + 1) +
HIGHgrafast/grafast/src/engine/LayerPlan.ts572 print(depth = 0) {
Fake / Example Data8 hits · 9 pts
SeverityFileLineSnippet
LOW…alizer-graphql-schema/src/consistentlyOrderedSchema.ts283 * { name: 'Jon', num: '555-1234' },
LOW…alizer-graphql-schema/src/consistentlyOrderedSchema.ts287 * // { Jon: '555-1234', Jenny: '867-5309' }
LOW…ioned_docs/version-4/running-postgraphile-in-docker.md190('First post example', 'Lorem ipsum dolor sit amet', 1),
LOW…ioned_docs/version-4/running-postgraphile-in-docker.md190('First post example', 'Lorem ipsum dolor sit amet', 1),
LOW…ioned_docs/version-5/running-postgraphile-in-docker.md196('First post example', 'Lorem ipsum dolor sit amet', 1),
LOW…ioned_docs/version-5/running-postgraphile-in-docker.md196('First post example', 'Lorem ipsum dolor sit amet', 1),
LOW…website/postgraphile/running-postgraphile-in-docker.md196('First post example', 'Lorem ipsum dolor sit amet', 1),
LOW…website/postgraphile/running-postgraphile-in-docker.md196('First post example', 'Lorem ipsum dolor sit amet', 1),
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOWgrafast/dataplan-pg/src/datasource.ts208 /** The SQL for the `FROM`clause (without any aliasing). If this is a subquery, don't forget to wrap it in parens. */
LOWgrafast/dataplan-pg/src/examples/exampleSchema.ts5338 // Don't forget to add all types that implement interfaces here