WPTT / theme-sniffer

Theme Sniffer plugin using sniffs.
MIT License
270 stars 3 forks source link

[New Feature] Replace shell_exec with eval #229

Closed erikdemarco closed 2 years ago

erikdemarco commented 2 years ago

I got this error "Theme Sniffer requires shell_exec to be enabled to function" Because my server disable shell_exec, and most other also do. Is it possible to replace shell_exec with eval? because eval cant be disabled by all host because its not a function

dingo-d commented 2 years ago

Hi!

You shouldn't run theme sniffer on production or any live server tbh.

It's intended to be run locally when developing a theme. And it's not possible to replace shell_exec with eval, because phpcs itself is using it, so without it, you cannot run it.