Skip to content

Feature/new features - #11

Merged
bordeux merged 2 commits into
masterfrom
feature/new-features
Dec 30, 2025
Merged

Feature/new features#11
bordeux merged 2 commits into
masterfrom
feature/new-features

Conversation

@bordeux

@bordeux bordeux commented Dec 30, 2025

Copy link
Copy Markdown
Owner

No description provided.

bordeux and others added 2 commits December 30, 2025 22:32
Implement 5 new validation functions to check string formats:
- is_email(string) - Validate email address format
- is_url(string) - Validate URL format (http, https, ftp, file)
- is_ip(string) - Validate IPv4 and IPv6 addresses
- is_uuid(string) - Validate UUID format
- matches_regex(pattern, string) - Custom regex pattern matching

Add comprehensive test coverage with 47 unit tests covering valid cases,
invalid cases, edge cases, and error handling for all validation functions.

Update documentation with examples and practical use cases for configuration
validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implement 6 new data parsing functions for working with structured data:
- parse_json(string) - Parse JSON string into object
- parse_yaml(string) - Parse YAML string into object
- parse_toml(string) - Parse TOML string into object
- read_json_file(path) - Read and parse JSON file
- read_yaml_file(path) - Read and parse YAML file
- read_toml_file(path) - Read and parse TOML file

Add comprehensive test coverage with 33 unit tests covering parsing,
file reading, security restrictions, and error handling for all formats.

Extract validate_path_security() as public helper function in filesystem
module for reuse across file-reading functions.

Update documentation with detailed examples showing how to parse data
from strings and files, including practical multi-format configuration
example.

All file-reading functions respect the same security restrictions as
other filesystem functions (relative paths only, no parent directory
traversal unless --trust mode enabled).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@bordeux
bordeux merged commit f3686f0 into master Dec 30, 2025
7 checks passed
@bordeux
bordeux deleted the feature/new-features branch December 30, 2025 21:50
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 87.97814% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.12%. Comparing base (e89d9d1) to head (0890d05).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/functions/data_parsing.rs 82.81% 22 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   88.25%   88.12%   -0.14%     
==========================================
  Files           9       11       +2     
  Lines         281      463     +182     
==========================================
+ Hits          248      408     +160     
- Misses         33       55      +22     

☔ View full report in Codecov by Sentry.
📢 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.

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