Repository Analysis

fastify/fastify

Fast and low overhead web framework, for Node.js

0.5 Likely human-written View on GitHub
0.5
Adjusted Score
0.5
Raw Score
100%
Time Factor
2026-05-27
Last Push
36,323
Stars
JavaScript
Language
96,454
Lines of Code
370
Files
40
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 40

Pattern Findings

40 matches across 4 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers25 hits · 27 pts
SeverityFileLineSnippet
LOWfastify.js694 function buildAsyncConstraintCallback (isAsync, req, res) {
LOWfastify.js952function defaultClientErrorHandler (err, socket) {
LOWfastify.js992function validateSchemaErrorFormatter (schemaErrorFormatter) {
LOWtest/skip-reply-send.test.js115function testHandlerOrBeforeHandlerHook (test, hookOrHandler) {
LOWtest/decorator.test.js1259 function assertsThrowOnUndeclaredDecorator (notDecorated, instanceType) {
LOWtest/types/using.test-d.ts4async function hasSymbolDisposeWithUsing () {
LOWtest/types/instance.test-d.ts134function notFoundpreHandlerHandler (
LOWtest/types/instance.test-d.ts139async function notFoundpreHandlerAsyncHandler (
LOWtest/types/instance.test-d.ts143function notFoundpreValidationHandler (
LOWtest/types/instance.test-d.ts148async function notFoundpreValidationAsyncHandler (
LOWtest/types/instance.test-d.ts211function serializerWithInvalidReturn (payload: unknown, statusCode: number) { }
LOWtest/types/instance.test-d.ts215function invalidSchemaErrorFormatter (err: Error) {
LOWtest/scripts/validate-ecosystem-links.test.js8function loadValidateEcosystemLinksModule () {
LOWdocs/Reference/Server.md742function defaultClientErrorHandler (err, socket) {
LOWlib/route.js594function handleOnRequestAbortHooksErrors (reply, err) {
LOWlib/route.js610function normalizeAndValidateMethod (method) {
LOWlib/route.js636function validateHandlerTimeoutOption (handlerTimeout) {
LOWlib/content-type-parser.js396function removeAllContentTypeParsers () {
LOWlib/request.js94function getLastEntryInMultiHeaderValue (headerValue) {
LOWlib/request.js100function buildRequestWithTrustProxy (R, trustProxy) {
LOWlib/server.js23function defaultResolveServerListeningText (address) {
LOWlib/logger-factory.js44function defaultChildLoggerFactory (logger, bindings, opts) {
LOWlib/validation.js18function compileSchemasForSerialization (context, compile) {
LOWlib/validation.js57function compileSchemasForValidation (context, compile, isCustom) {
LOWlib/context.js87function defaultSchemaErrorFormatter (errors, dataVar) {
Fake / Example Data8 hits · 11 pts
SeverityFileLineSnippet
LOWtest/schema-serialization.test.js382 fullName: 'John Doe',
LOWtest/internals/reply.test.js699 sample: '{"_links":{"self":{"href":"https://api.fastify.test/people/1"}},"name":"John Doe"}'
LOWtest/internals/reply.test.js707 sample: '{"@context":"https://json-ld.org/contexts/person.jsonld","name":"John Doe"}'
LOWtest/internals/reply.test.js715 sample: '{"class":"person","properties":{"name":"John Doe"}}'
LOWtest/internals/reply.test.js784 sample: JSON.parse('{"_links":{"self":{"href":"https://api.fastify.test/people/1"}},"name":"John Doe"}')
LOWtest/internals/reply.test.js792 sample: JSON.parse('{"@context":"https://json-ld.org/contexts/person.jsonld","name":"John Doe"}')
LOWtest/internals/reply.test.js796 sample: JSON.parse('{"class":"person","properties":{"name":"John Doe"}}')
LOWdocs/Reference/Hooks.md852 name: 'Jane Doe',
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippet
LOWdocs/Guides/Recommendations.md101 use_backend default-server
LOWdocs/Guides/Recommendations.md121 # Here we define rule pairs to direct requests to appropriate Node.js
LOWdocs/Guides/Recommendations.md181 server 10.10.11.2:80;
LOWdocs/Reference/Server.md2121 fastify.addHook('onTimeout', onTimeout)
LOWdocs/Reference/Server.md2141 // • (onSend) ["headRouteOnSendHandler()"]
LOWlib/schema-controller.js81 // legacy behavior
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWlib/handle-request.js20function handleRequest (err, request, reply) {