feat: add initial validatrix project with multi-language validator framework
Establish the Validatrix source code validation framework in Nim, including core detection, tokenization, and validation infrastructure for 10 languages (bash, HTML, JavaScript, Jinja, JSON, Nim, PHP, Python, TOML, YAML). The initial commit introduces the main validatrix.nim entry point with public API (validateSource, validateFile, inspectSource), a comprehensive test suite with per-language test files, build configuration via Makefile and .nimble, detailed LESSONS_LEARNED.md documenting 14 bug classes found during development, and a .gitignore excluding compiled binaries, logs, and build artifacts. The detector module provides extension-to-flavor mapping for 40+ file extensions and content-based language detection, while the debug module supports conditional compilation with -d:validatrixDebug for detailed tokenization logging.
2026-07-08 06:25:59 +02:00
# Package
version = "0.1.0"
author = "molodetz"
description = "Universal source code validation framework - validates source files across all common languages with tokenizer-based analysis, auto-detection, and JSON diagnostics."
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 2.0.0"
# Tasks
task test, "Run all tests":
exec "nim c -r tests/test_all.nim"
task test_nim, "Run Nim-specific tests":
exec "nim c -r tests/test_nim.nim"
task test_python, "Run Python-specific tests":
exec "nim c -r tests/test_python.nim"
task test_bash, "Run Bash-specific tests":
exec "nim c -r tests/test_bash.nim"
task test_js, "Run JavaScript-specific tests":
exec "nim c -r tests/test_javascript.nim"
task test_php, "Run PHP-specific tests":
exec "nim c -r tests/test_php.nim"
task test_html, "Run HTML-specific tests":
exec "nim c -r tests/test_html.nim"
task test_jinja, "Run Jinja-specific tests":
exec "nim c -r tests/test_jinja.nim"
task test_json, "Run JSON-specific tests":
exec "nim c -r tests/test_json.nim"
task test_yaml, "Run YAML-specific tests":
exec "nim c -r tests/test_yaml.nim"
task test_toml, "Run TOML-specific tests":
exec "nim c -r tests/test_toml.nim"
task test_mixed, "Run mixed file tests":
exec "nim c -r tests/test_mixed.nim"
task debug, "Run tests in debug mode":
2026-07-08 10:01:58 +02:00
exec "nim c -d:nimcheckDebug -r tests/test_all.nim"
feat: add initial validatrix project with multi-language validator framework
Establish the Validatrix source code validation framework in Nim, including core detection, tokenization, and validation infrastructure for 10 languages (bash, HTML, JavaScript, Jinja, JSON, Nim, PHP, Python, TOML, YAML). The initial commit introduces the main validatrix.nim entry point with public API (validateSource, validateFile, inspectSource), a comprehensive test suite with per-language test files, build configuration via Makefile and .nimble, detailed LESSONS_LEARNED.md documenting 14 bug classes found during development, and a .gitignore excluding compiled binaries, logs, and build artifacts. The detector module provides extension-to-flavor mapping for 40+ file extensions and content-based language detection, while the debug module supports conditional compilation with -d:validatrixDebug for detailed tokenization logging.
2026-07-08 06:25:59 +02:00
task build, "Build the library":
2026-07-08 10:01:58 +02:00
exec "nim c --lib src/nimcheck.nim"
feat: add initial validatrix project with multi-language validator framework
Establish the Validatrix source code validation framework in Nim, including core detection, tokenization, and validation infrastructure for 10 languages (bash, HTML, JavaScript, Jinja, JSON, Nim, PHP, Python, TOML, YAML). The initial commit introduces the main validatrix.nim entry point with public API (validateSource, validateFile, inspectSource), a comprehensive test suite with per-language test files, build configuration via Makefile and .nimble, detailed LESSONS_LEARNED.md documenting 14 bug classes found during development, and a .gitignore excluding compiled binaries, logs, and build artifacts. The detector module provides extension-to-flavor mapping for 40+ file extensions and content-based language detection, while the debug module supports conditional compilation with -d:validatrixDebug for detailed tokenization logging.
2026-07-08 06:25:59 +02:00
# End