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

umputun / unfuck-ai-comments
82%

Build:
DEFAULT BRANCH: master
Repo Added 27 Feb 2025 10:55PM UTC
Files 1
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • add-skip-option
  • feat/add-test-for-diff-default-params
  • feat/backup-flag
  • feat/preserve-special-indicators
  • feat/summary-statistics
  • feature/skip-generated-files
  • fix-gofmt-alignment
  • fix-gofmt-consistency
  • fix-var-documentation-comments
  • preserve-uppercase-words
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.3.1
  • refs/tags/v0.3.2
  • refs/tags/v0.4.0
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.8.0
  • refs/tags/v0.8.10
  • refs/tags/v0.8.2
  • refs/tags/v0.8.3
  • refs/tags/v0.8.4
  • refs/tags/v0.8.5
  • refs/tags/v0.8.6
  • refs/tags/v0.8.7
  • refs/tags/v0.8.8
  • refs/tags/v0.8.9
  • refs/tags/v0.9.0
  • refs/tags/v0.9.1
  • refs/tags/v0.9.2
  • refs/tags/v0.9.3

05 Jul 2025 06:19PM UTC coverage: 81.538% (+0.6%) from 80.944%
16090844004

push

github

umputun
fix: resolve Unicode handling issues in comment processing

- fix byte-based string indexing breaking multi-byte Unicode characters
- convert all string operations to use []rune for proper Unicode support
- fix isPascalCase function to handle Unicode correctly
- properly track byte positions while counting runes in processCommentPart
- add comprehensive Unicode test cases including Cyrillic, Arabic, emoji
- handle invalid UTF-8 sequences gracefully

The core issue was using byte indexing (string[0]) instead of rune
conversion, which corrupted multi-byte characters like "Мария" to "ð�ария".
All string manipulation now properly handles Unicode characters.

29 of 31 new or added lines in 1 file covered. (93.55%)

477 of 585 relevant lines covered (81.54%)

364.56 hits per line

Relevant lines Covered
Build:
Build:
585 RELEVANT LINES 477 COVERED LINES
364.56 HITS PER LINE
Source Files on master
  • List 1
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
16090844004 master fix: resolve Unicode handling issues in comment processing - fix byte-based string indexing breaking multi-byte Unicode characters - convert all string operations to use []rune for proper Unicode support - fix isPascalCase function to handle Unic... push 05 Jul 2025 06:20PM UTC umputun github
81.54
15072375976 master docs: enhance 'How it works' section with detailed explanation push 16 May 2025 03:50PM UTC umputun github
80.94
14159545427 master Skip generated files marked with '// Code generated' (#11) * feat: skip generated files marked with '// Code generated' Closes #10 - Add function to detect generated files - Skip processing of files that start with generated code marker - Add t... push 30 Mar 2025 08:11PM UTC web-flow github
80.94
14142291070 master fix: improve vendor and testdata directory handling to prevent processing in all cases push 29 Mar 2025 04:44AM UTC umputun github
81.42
13845553916 master Add support for comments in var and const blocks (#9) This change implements unified handling of documentation comments in both var and const blocks. Comments following the pattern 'IdentifierName is...' are now preserved, maintaining their origi... push 13 Mar 2025 10:09PM UTC web-flow github
81.15
13714654860 master Add support for comments in var and const blocks - Update isCommentInsideFunctionOrStruct to detect comments inside var and const blocks - Add test cases for var and const block comments - Add examples to sample.go to validate var and const block... push 07 Mar 2025 05:51AM UTC umputun github
80.53
13706626133 master Fix handling of technical comments with linter directives This fixes an issue where technical comments in the format //nolint:gosec // Using math/rand is acceptable for tests weren't handled properly in title case mode. The fix improves comment p... push 06 Mar 2025 07:30PM UTC umputun github
80.16
13621733190 master Fix README.md example showing "AND" preservation The example incorrectly showed uppercase "AND" being preserved, when in fact only camelCase and PascalCase identifiers are preserved while regular words like "and" are converted to lowercase. 🤖 Ge... push 03 Mar 2025 01:50AM UTC umputun github
79.84
13621694209 master Update README.md with camelCase and PascalCase preservation details - Add Identifier Preservation section with examples - Clarify treatment of capitalized abbreviations in title case mode - Update Options section to reflect identifier handling in... push 03 Mar 2025 01:46AM UTC umputun github
79.84
13621593860 master Add new linters and improve error handling in getModifiedContent function push 03 Mar 2025 01:37AM UTC umputun github
79.84
See All Builds (84)
  • Repo on GitHub
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

© 2025 Coveralls, Inc