• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / tg-spam / 29293948129
84%

Build:
DEFAULT BRANCH: master
Ran 13 Jul 2026 11:48PM UTC
Jobs 1
Files 42
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jul 2026 11:44PM UTC coverage: 83.627% (+0.2%) from 83.426%
29293948129

push

github

web-flow
feat: prohibited languages spam detector (#427)

Add a spam detector that blocks messages written in prohibited Unicode scripts.
Configure a blocklist of scripts (chinese=Han, russian=Cyrillic, etc.); a message
with enough letters of a banned script is flagged as spam. It is a hard block that
bypasses the LLM, runs for non-approved users (everyone in paranoid mode), and is
disabled by default. Wired through the detector, CLI/env flags, DB-backed settings,
the web settings UI, and an e2e test.

The prohibited-language check scores only the user's authored text, not quoted or
reply-to content, so replying to a foreign-script message cannot trigger a ban.
Cross-field settings validation is shared via config.Settings.Validate() across
startup, save-config, and the web save handler.

148 of 156 new or added lines in 9 files covered. (94.87%)

8826 of 10554 relevant lines covered (83.63%)

236.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
55.37
-0.23% app/main.go
Jobs
ID Job ID Ran Files Coverage
1 29293948129.1 13 Jul 2026 11:48PM UTC 42
83.63
GitHub Action Run
Source Files on build 29293948129
  • Tree
  • List 42
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fb162915 on github
  • Prev Build on master (#29142208803)
  • Next Build on master (#29366044979)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc