Commit e37e4e3
committed
feat(scoring): add language-specific causes of death
Closes #10.
Extends determineCauseOfDeath() with 7 new language-specific rules
beyond the existing JavaScript one:
- PHP → Died of PHP fatigue
- Ruby → Gemfile.lock never unlocked
- Python → Pip froze, then everything else did
- Perl → Nobody could read it, including the author
- CoffeeScript → Outlived by the thing it inspired
- Objective-C → Swift happened
- Scala → Compilation finished, interest did not
Language-specific rules follow the existing isJS pattern: score 5 when
the repo's primary language matches and daysSince > 365 (except
CoffeeScript, which is punished on language alone because it's dead by
definition).
Existing 32 tests still pass; no rule changes to the universal
checks.1 parent b7bc93b commit e37e4e3
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
95 | 123 | | |
96 | 124 | | |
97 | 125 | | |
| |||
0 commit comments