Repository Analysis

date-fns/date-fns

⏳ Modern JavaScript date utility library ⌛️

0.2 Likely human-written View on GitHub
0.2
Adjusted Score
0.2
Raw Score
100%
Time Factor
2026-05-29
Last Push
36,573
Stars
TypeScript
Language
189,626
Lines of Code
1811
Files
28
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 28

Pattern Findings

28 matches across 3 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers14 hits · 14 pts
SeverityFileLineSnippet
LOWpkgs/core/src/formatDistanceToNowStrict/index.ts83export function formatDistanceToNowStrict(
LOW…core/src/_lib/getTimezoneOffsetInMilliseconds/index.ts15export function getTimezoneOffsetInMilliseconds(
LOWpkgs/core/src/_lib/test/tzOffsetTransitions.ts65function previousTickTimezoneOffset(date: Date): number {
LOWpkgs/core/src/_lib/format/formatters/index.ts780function formatTimezoneWithOptionalMinutes(
LOWpkgs/core/src/_lib/protectedTokens/index.ts6export function isProtectedDayOfYearToken(token: string) {
LOWpkgs/core/src/_lib/protectedTokens/index.ts14export function warnOrThrowProtectedError(
LOWpkgs/core/src/differenceInCalendarQuarters/index.ts32export function differenceInCalendarQuarters(
LOWpkgs/core/src/differenceInCalendarMonths/index.ts31export function differenceInCalendarMonths(
LOWpkgs/core/src/differenceInCalendarYears/index.ts31export function differenceInCalendarYears(
LOWpkgs/core/src/differenceInCalendarISOWeeks/index.ts36export function differenceInCalendarISOWeeks(
LOWpkgs/core/src/differenceInCalendarISOWeekYears/index.ts34export function differenceInCalendarISOWeekYears(
LOWpkgs/core/src/differenceInCalendarWeeks/index.ts50export function differenceInCalendarWeeks(
LOWpkgs/core/src/getOverlappingDaysInIntervals/index.ts42export function getOverlappingDaysInIntervals(
LOWpkgs/tz/src/date/mini.js508function constructorArgsToInternalTime(args) {
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippet
LOWpkgs/core/src/parse/index.ts41// (one of the certain letters followed by `o`)
LOWpkgs/core/src/lightFormat/index.ts1import { lightFormatters } from "../_lib/format/lightFormatters/index.ts";
LOWpkgs/core/src/format/index.ts21
LOWpkgs/core/src/differenceInYears/index.ts41 // -1 if the left date is earlier than the right date
LOWpkgs/tz/src/date/mini.js1import { tzOffset } from "../tzOffset/index.ts";
LOWpkgs/tz/src/date/mini.js161
LOWpkgs/tz/src/date/mini.js241
LOWpkgs/tz/src/date/mini.js301 : Math.ceil(testOffsetWithSeconds);
LOWpkgs/tz/src/date/mini.js321 // it backward.
LOWpkgs/tz/src/date/mini.js341
LOWpkgs/tz/src/date/mini.js361 // Seconds part contributed by the system time zone offset. Negative offsets
LOWpkgs/tz/src/date/mini.js441 // Apply the target-DST correction to external. In the backward-crossing case
LOWpkgs/tz/src/date/mini.js461 const newOffset =
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWpkgs/core/scripts/maintain/upgradePnpm.sh37 # Check if there are any staged changes