Releases: sshaplygin/docs-code
Releases · sshaplygin/docs-code
Minor updates
Go & Tooling Upgrade
- Bumped Go version from 1.21 to 1.25 in
go.mod - Migrated golangci-lint config to v2 format (
.golangci.yml): updated schema (version: "2"), replaced deprecated fields (deadline→timeout,disable-all→default: none), moved formatters to a separate section, restructured linter settings and exclusion rules
Bug Fixes
- Fixed INN generation logic —
Generate()andGenerateLegal()now select from a defined_supportedTypesslice instead of using fragile modular arithmetic on random digits - Removed stray debug
fmt.Printlninogrn/models.goOGRN parsing - Fixed unit test issues identified by updated linter and corrected logic
Refactoring
- Cleaned up test files across
bik,inn,kpp,ogrn,ogrnip,okato,snils, andutils— removed redundant assertions and unused variables flagged by the new linter config - Added
ForeignLegalto supported INN types via_supportedTypesslice - Added protobuf enum compatibility support for INN type (
tfield set inNewINN) - Updated CI workflow (
.github/workflows/go.yml) to match new tooling - Updated parser submodule dependencies (
parser/okato-states,parser/subjects)
Add OGRN and OGRNIP codes
Merge pull request #18 from sshaplygin/sshaplygin-patch-2 Update README.md
Added KPP code
Added KPP code and refactored INN code
Added BIK code
Added BIK code with next methods:
- Validate
- Exists
- Generate
Changed project layout
Merge pull request #7 from sshaplygin/ref-struct ref project struct