When the linter calls out your ‘blackListUrls’ variable for non-inclusive language
Description
Screenshot of a dark-theme IDE editor showing a line of Swift/Kotlin-style code: “var blackListUrls: Set<String> = [”. Immediately above, a yellow warning tooltip is expanded that reads: “Inclusive Language Violation: Declaration blackListUrls contains the term "blacklist" which is not considered inclusive. (inclusive_language)”. Additional array items like "marketingcloudapis.com" and a comment “// will be removed when API …” are visible beneath the declaration. The scene humorously captures modern static-analysis tooling enforcing inclusive naming, illustrating how code linters now flag terms such as “blacklist/whitelist” in the pursuit of better language practices and code quality
Comments
34Comment deleted
Merge blocked: “‘blacklist’ isn’t inclusive.” Merge passes: LegacySingletonGodObject.swift - 4 k LOC, 17 circular deps, force-unwraps everywhere. Apparently empathy now has higher test coverage than safety
After 20 years of writing 'master/slave' database configs and 'blacklist/whitelist' filters, the hardest refactoring isn't migrating from COBOL to microservices - it's convincing your muscle memory that 'denylist' won't cause a production outage
Nothing says 'we've solved all our technical debt' quite like your IDE spending CPU cycles to police variable names while your monolith is held together with duct tape and a 15-year-old COBOL integration. At least when the system goes down, we can take comfort knowing our crash logs use inclusive terminology
Set inclusive_language to error and a “five‑minute rename” became a cross‑service schema migration spanning DB columns, protobufs, metrics, and cache keys - the only thing that’s ever successfully blocked a Friday deploy
Enterprise linting: Fighting microaggressions while your monolith silently bleeds technical debt
Lint blocks deploy on “blackListUrls”; renaming to “denyList” breaks the public API, so we ship typealias LegacyBlackListUrls = DenyListUrls and call it inclusivity via the Adapter pattern
What the fuck? Comment deleted
Many companies’ internal documents now recommend using “blocklist” instead. Comment deleted
master/slave Comment deleted
What about BDSM practitioners? Don't they deserve to be "included"? 😁 Comment deleted
their master/slave should be renamed too Comment deleted
I intentionally use the master branch in git repos, because I decide if I want to change stuff like this. Companies are not to decide what language I'm supposed to use. Comment deleted
<...> According to the remark, the term 'blacklist' evolved from the term 'black book' about a century ago. The term 'black book' does not appear to have any etymology or sources that support racial associations, instead originating in the 1400s as a reference to "a list of people who had committed crimes or fallen out of favor with leaders," and popularized by King Henry VIII's literal use of a black book. Comment deleted
nlist Comment deleted
Niggas Comment deleted
notWhiteList here, I fixed it Comment deleted
I'm pretty sure all the laughing commenters wouldn't be laughing if there was something like katsapList / khokholList / moskalList Comment deleted
I get your point, but your comparison is incorrect. Your proposal uses deliberate swearing. Why didn't you compare the original phrase with whiteList? Comment deleted
If you don't see the problem with (white-)blacklist names I have nothing to reply 🤷♂️ Comment deleted
You shouldn't have replied in the first place 🤠 Comment deleted
Your comparison would be okay if it was niggerList / crackerList Comment deleted
I dare anyone to use it in real code :P Comment deleted
i knew a guy who exclusively used the first type as debug strings and variables Comment deleted
brb calling my blocklist russian slurs Comment deleted
Last index of slice is not inclusive, let's cancel it then?? Comment deleted
How is a book with black covers racist? It's the color of the book in which banned people was listed. Comment deleted
I literally know guy who named modules like HoholPidor. Because his co-worker wrote comments in Ukrainian language :) Comment deleted
There was a time, when social activists were social activists (and didn't police around everything.) Comment deleted
imagine that github sends you a warning about violent language in code Comment deleted
Finally, a solution to all economic and political problems in the world. Comment deleted
the ide can keep coping while i push code to master branch Comment deleted
Will it allow spanish version, like negroList ? Comment deleted
Because it's blocklist / allowlist. But I'm wondering how to change greylist... Comment deleted
Or even git with a master branch (atm: main) Comment deleted