```suggestion const filename = basename(ctx.file_path, '.json'); if (json['slug'] !== filename) return { message: `Filename \`${filename}\` does not match slug \`${json.slug}\`. They need to match and be the same as the original record.`, json_pointer: '/slug', suggestions: [filename], ``` Why not call `basename()` only once? This code looks more readable to me. _Originally posted by @zner0L in https://github.com/datenanfragen/data/pull/3204#discussion_r2311702264_