Skip to content

fix: resolve lint issues and remove unused deprecated functions#7

Merged
leonardomso merged 3 commits into
masterfrom
fix/lint-and-test-issues
Jan 2, 2026
Merged

fix: resolve lint issues and remove unused deprecated functions#7
leonardomso merged 3 commits into
masterfrom
fix/lint-and-test-issues

Conversation

@leonardomso

Copy link
Copy Markdown
Owner

Summary

  • Remove 9 unused deprecated functions from cmd/check.go that were replaced by V2/WithConfig versions
  • Fix deprecated comment format by adding blank line before Deprecated: notices (gocritic)
  • Fix line length issues by breaking long function signatures across multiple lines (revive)
  • Use max() builtin instead of if statement in parser.go (modernize)
  • Add nolint directive for xml package naming since it matches the file type being parsed

Changes

File Changes
cmd/check.go Removed 9 unused deprecated functions (~180 lines), fixed line lengths
cmd/interactive.go Fixed line length by extracting variable
internal/ui/app.go Fixed line length in function signature
internal/parser/*.go Fixed deprecated comment format
internal/parser/parser.go Used max() builtin
internal/parser/xml/*.go Added nolint for package name

Testing

  • All tests pass: go test ./...
  • Lint passes: golangci-lint run ./...
  • Build succeeds: go build ./...

- Remove 9 unused deprecated functions from cmd/check.go
- Fix deprecated comment format (add blank line before Deprecated notices)
- Fix line length issues by breaking long function signatures
- Use max() builtin instead of if statement in parser.go
- Add nolint directive for xml package naming (matches file type)
- Remove Validate and Parse methods from FileParser interface
- Keep only ValidateAndParse as the single method for parsing
- Remove deprecated functions from all parser implementations
- Remove FindMarkdownFiles from scanner (use FindFiles instead)
- Remove ScanFilesCmdWithPath and ExtractLinksCmd from UI commands
- Update all tests to use ValidateAndParse
- Consolidate benchmark tests to single ValidateAndParse benchmark

This simplifies the API and removes ~360 lines of deprecated code.
@leonardomso leonardomso force-pushed the fix/lint-and-test-issues branch from 711e90f to d5ad068 Compare January 2, 2026 22:54
@leonardomso leonardomso merged commit 19ba655 into master Jan 2, 2026
2 checks passed
@leonardomso leonardomso deleted the fix/lint-and-test-issues branch January 2, 2026 23:19
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