jegelstaff / formulize

Unified data management. One system to handle all data entry, collection, and reporting, across all your unique workflows. Simplify processes. Make people happy.
https://www.formulize.org
GNU General Public License v2.0
27 stars 14 forks source link

Validating PHP code doesn't work right now #499

Open jegelstaff opened 1 month ago

jegelstaff commented 1 month ago

Check the comment in formulize_validatePHPCode function. Need a reliable way to check for syntax errors in code the user writes, so we don't break the entire application by saving invalid code!!!

arvinsingla commented 1 month ago

Might be overkill but one thought could be to push the code through a linter. I’ve been playing with command line php linters to help us with the code base so it could live in the project. We might be able to stream the string to the linter and receive the output. Totally hypothetical.