Skip to content

refactor!: move the packages of the rules to rules/ - #74

Merged
Insei merged 2 commits into
mainfrom
refactor/rules
Oct 19, 2026
Merged

Insei merged 2 commits into
mainfrom
refactor/rules

Conversation

@Insei

@Insei Insei commented Oct 19, 2026

Copy link
Copy Markdown
Owner

The packages of the rules move to rules/: github.com/insei/valigo/rules/str, rules/num, rules/eq, rules/timex and the module github.com/insei/valigo/rules/uuid. Nothing is released with the new API yet (v0.1.0 isn't tagged), so the paths change before the first release. The imports of the code, the tests, the examples, the docs and the skill are updated, Upgrading lists the new paths; CI: the modules list has rules/uuid, the coverage files are named without slashes, dependabot watches /rules/uuid.

str, num, eq, timex and the uuid module are in rules/, the root has the
API and the integrations; scripts/modules.sh lists rules/uuid, the
coverage files of the modules are named without slashes.

BREAKING CHANGE: the import paths of the rules are
github.com/insei/valigo/rules/str, rules/num, rules/eq, rules/timex and
the module github.com/insei/valigo/rules/uuid.
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark diff: 8ea9ff6 → b648649 (10 runs)

goos: linux
goarch: amd64
pkg: github.com/insei/valigo
cpu: AMD EPYC 7763 64-Core Processor                
           │  base.txt   │           head.txt            │
           │   sec/op    │   sec/op     vs base          │
Validate-4   146.2n ± 1%   148.5n ± 2%  ~ (p=0.066 n=10)

           │  base.txt  │            head.txt            │
           │    B/op    │    B/op     vs base            │
Validate-4   0.000 ± 0%   0.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

           │  base.txt  │            head.txt            │
           │ allocs/op  │ allocs/op   vs base            │
Validate-4   0.000 ± 0%   0.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

@codecov-commenter

codecov-commenter commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8ea9ff6) to head (1a153b5).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #74   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           38        38           
  Lines         1473      1473           
=========================================
  Hits          1473      1473           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Insei
Insei merged commit c3e6538 into main Oct 19, 2026
6 checks passed
@Insei
Insei deleted the refactor/rules branch October 19, 2026 09:04
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