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

umputun / tg-spam / 29291997932
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feat/decouple-image-text-len
DEFAULT BRANCH: master
Ran 13 Jul 2026 11:09PM 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:05PM UTC coverage: 83.672% (+0.2%) from 83.426%
29291997932

Pull #427

github

umputun
fix(review): scan authored text in prohibited-langs and unify settings validation

The prohibited-language check ran on req.Msg, which bot.OnMessage builds by
concatenating the user's text with quoted/reply-to content. A user replying to a
prohibited-script message could reach the per-script threshold from text they did
not author and be permanently banned, with no LLM veto. Add
spamcheck.Request.AuthoredMsg and AuthoredText(); OnMessage records the user's own
text and Check passes AuthoredText() to the hard block. Softer content checks still
see the full concatenated Msg.

Also address two pre-existing issues surfaced by the review:
- move all cross-field settings invariants into config.Settings.Validate(), shared
  by startup, save-config, and the web save handler, so an invalid combination
  entered via the web UI is rejected before it is persisted rather than bricking
  the next --confdb startup.
- use t.TempDir() for the sqlite storage suite instead of a shared $TMPDIR path
  that raced with other packages under "go test ./..." and produced SQLITE_BUSY.

Add the missing paranoid/approved-user scope test and refresh the CLAUDE.md
prohibited-languages and quoted-text sections.
Pull Request #427: feat: prohibited languages spam detector

131 of 136 new or added lines in 8 files covered. (96.32%)

185 existing lines in 3 files now uncovered.

8819 of 10540 relevant lines covered (83.67%)

234.16 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
55.4
-0.2% app/main.go

Coverage Regressions

Lines Coverage ∆ File
96
55.4
-0.2% app/main.go
75
85.68
0.0% app/events/admin.go
14
91.78
0.04% app/bot/spam.go
Jobs
ID Job ID Ran Files Coverage
1 29291997932.1 13 Jul 2026 11:09PM UTC 42
83.67
GitHub Action Run
Source Files on build 29291997932
  • Tree
  • List 42
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #427
  • PR Base - master (#29142208803)
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