Skip to content

Qa/go dead code#178

Merged
dotandev merged 8 commits intodotandev:mainfrom
Manuel1234477:qa/go-dead-code
Jan 28, 2026
Merged

Qa/go dead code#178
dotandev merged 8 commits intodotandev:mainfrom
Manuel1234477:qa/go-dead-code

Conversation

@Manuel1234477
Copy link
Contributor

#116 closes

Manuel1234477 and others added 8 commits January 28, 2026 12:30
- Add internal/decoder package with DecodeEnvelope function
- Implement FuzzDecodeEnvelope and FuzzDecodeEnvelopeBytes fuzz tests
- Add unit tests for error handling validation
- Ensure graceful handling of malformed XDR input without panics
- Fuzz tests run for 1+ minute with 1M+ executions, zero crashes found
- Create dedicated environment-variables.md with complete variable table
- Document ERST_SIMULATOR_PATH with description, defaults, and examples
- Add categorization by function (Simulator)
- Include usage examples for Linux/macOS, Windows, and Docker
- Document binary search order and fallback behavior
- Add reference link in main README
- Verify documented variable works as described
- Add .golangci.yml with unused linter configuration
- Create lint-unused.sh script for automated unused code detection
- Add Makefile with linting targets
- Document unused code detection setup in docs/unused-code-detection.md
- Configure exclusions for test files and exported APIs

Note: Go toolchain version mismatch prevents immediate execution.
Linting will be functional once toolchain issue is resolved.
- Add test-unused-detection.sh to verify linter setup
- Update Makefile with test-unused target
- Provides validation once Go toolchain issue is resolved
- Update go.mod to use Go 1.21 to match CI environment
- Add golangci-lint step to CI pipeline with proper action
- Simplify golangci-lint config for better CI compatibility
- Add validate-ci.sh script to check configuration consistency
- Add validate-ci target to Makefile

This ensures the unused linter will run successfully in CI/CD.
Documents all changes made to ensure unused linter passes CI/CD tests.
@dotandev dotandev merged commit bba482c into dotandev:main Jan 28, 2026
1 of 2 checks passed
Arome8240 added a commit to Arome8240/hintents that referenced this pull request Feb 24, 2026
- Add canonical JSON serialization to ensure deterministic hashing
- Implement marshalCanonical function with sorted object keys
- Update Generate and Verify functions to use canonical JSON
- Add comprehensive test suite for canonical JSON behavior
- Add cross-platform determinism tests
- Add documentation explaining canonical JSON implementation
- Add example demonstrating canonical JSON usage
- Ensure hash consistency across different OS targets

Resolves dotandev#178
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.

2 participants