phpstan / phpstan-strict-rules

Extra strict and opinionated rules for PHPStan
MIT License
605 stars 48 forks source link

Enforce https in the code #181

Closed sylfabre closed 2 years ago

sylfabre commented 2 years ago

Hello

Would you accept a PR for a new rule looking for insecure links?

My idea is to search for http: in string nodes (PHPDoc, string variables, ...)

Have a nice day

ondrejmirtes commented 2 years ago

Hi, feel free to write a custom rule for this and even publish it as your own package, but this isn't a good fit for phpstan-strict-rules as it has little to do with type safety.

sylfabre commented 2 years ago

@ondrejmirtes Thank you for your feedback, it makes sense 👌

If someone is looking for this rule, it's available at https://github.com/assoconnect/phpstan-rules

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.