matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.91k stars 2.65k forks source link

Decide how we keep official plugins from calling non-public APIs or deprecated code #7633

Open mattab opened 9 years ago

mattab commented 9 years ago

The goal of this issue is to find a way to automatically notify Product team when any plugin has outdated code.

Why is it needed?

diosmosis commented 9 years ago

To safely assume that plugins don't get broken by Core platform changes, we need to automatically detect/ be notified of calls to deprecated functions or non-public APIs.

Note: the PHPStorm plugin can be installed on developers' PHPStorm so they can see issues as they code. (would have to enable the inspection & would be a problem w/ plugins that don't support the newest Piwik)

mattab commented 9 years ago

FYI: sensiolabs created a static code analysis tool to find usages of deprecated methods https://github.com/sensiolabs-de/deprecation-detector - this could maybe be interesting to us in the future