Skip to content

fix: remove obsolete code and correct --version exit status#61

Draft
toddr-bot wants to merge 1 commit into
mainfrom
koan.toddr.bot/cleanup-obsolete-code
Draft

fix: remove obsolete code and correct --version exit status#61
toddr-bot wants to merge 1 commit into
mainfrom
koan.toddr.bot/cleanup-obsolete-code

Conversation

@toddr-bot
Copy link
Copy Markdown

@toddr-bot toddr-bot commented Apr 10, 2026

What

Removes dead code from the 1990s-2000s era and fixes an incorrect exit status.

Why

  • --version exited with status 1, which signals failure to calling scripts/tools. Standard Unix convention is exit 0 for --version.
  • Sys::Syslog::setlogsock('unix') has been a no-op since Sys::Syslog 0.15 (2006). We require 0.29. The OS-sniffing guard around it was cargo-cult from a 1990s workaround.
  • The "KNOWN PROBLEMS" POD section referenced perl bug 20000712.003, fixed in Sys::Syslog over 20 years ago. It was misleading — users might think there are current known problems.
  • cpanfile listed Test as a test dependency, but all tests have been migrated to Test::More.

How

Pure deletion + one exit 1exit 0 change. No behavioral change except the exit code fix.

Testing

Full test suite passes.

🤖 Generated with Claude Code


Quality Report

Changes: 3 files changed, 1 insertion(+), 25 deletions(-)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

- Change --version from exit 1 to exit 0 (standard Unix convention)
- Remove deprecated Sys::Syslog::setlogsock('unix') call (no-op since
  Sys::Syslog 0.15, and we require 0.29)
- Remove outdated "KNOWN PROBLEMS" POD section referencing a Perl bug
  from year 2000 that was fixed in Sys::Syslog decades ago
- Drop stale Test module dependency from cpanfile (all tests migrated
  to Test::More)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant