Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/lib/scoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,34 @@ export function determineCauseOfDeath(repo: RepoData): string {
score: isJS && daysSince > 365 ? 5 : 0,
cause: 'Lost in dependency hell',
},
{
score: repo.language?.toLowerCase() === 'php' && daysSince > 365 ? 5 : 0,
cause: 'Died of PHP fatigue',
},
{
score: repo.language?.toLowerCase() === 'ruby' && daysSince > 365 ? 5 : 0,
cause: 'Gemfile.lock never unlocked',
},
{
score: repo.language?.toLowerCase() === 'python' && daysSince > 365 ? 5 : 0,
cause: 'Pip froze, then everything else did',
},
{
score: repo.language?.toLowerCase() === 'perl' && daysSince > 365 ? 5 : 0,
cause: 'Nobody could read it, including the author',
},
{
score: repo.language?.toLowerCase() === 'coffeescript' ? 5 : 0,
cause: 'Outlived by the thing it inspired',
},
{
score: repo.language?.toLowerCase() === 'objective-c' && daysSince > 365 ? 5 : 0,
cause: 'Swift happened',
},
{
score: repo.language?.toLowerCase() === 'scala' && daysSince > 365 ? 5 : 0,
cause: 'Compilation finished, interest did not',
},
{
score: descLower.includes('microservice') || descLower.includes('enterprise') ? 5 : 0,
cause: 'Killed by overengineering',
Expand Down
Loading