1.7 KiB
1.7 KiB
Validators
PHP
- Tool used:
php - Command used:
php -l <file> - Requirements: PHP CLI installed
- Limitations: syntax only
Python
- Tool used:
python3 - Command used:
python3 -m py_compile <file> - Requirements: Python 3 installed
- Limitations: compile/syntax only
JavaScript
- Tool used:
node - Command used:
node --check <file> - Requirements: Node.js installed
- Limitations: syntax only
JSON
- Tool used:
jq - Command used:
jq empty <file> - Requirements:
jqinstalled - Limitations: structure validation only
YAML
- Tool used:
yamllint - Command used:
yamllint -f parsable <file> - Requirements:
yamllintinstalled - Limitations: skipped when tool is unavailable
Shell
- Tool used:
bash - Command used:
bash -n <file> - Requirements: Bash installed
- Limitations: parse check only
Ruby
- Tool used:
ruby - Command used:
ruby -c <file> - Requirements: Ruby installed
- Limitations: syntax only
Perl
- Tool used:
perl - Command used:
perl -c <file> - Requirements: Perl installed
- Limitations: compile/syntax only
C#
- Tool used:
dotnet - Command used:
dotnet build <solution-or-project> - Requirements:
.slnor.csprojplus .NET SDK - Limitations: standalone
.csfiles are not validated directly; true validation requires a project or solution
C/C++
- Tool used:
cmake - Command used:
cmake -S <repo> -B <temp-build-dir> - Requirements:
CMakeLists.txtandcmake - Limitations: configure validation only, not full compile unless extended later
HTML
- Tool used:
tidy - Command used:
tidy -qe <file> - Requirements:
tidyinstalled - Limitations: skipped when tool is unavailable