mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Add classes replaced by the public api to the code checker
This commit is contained in:
parent
2b84da9793
commit
854da1d9ca
1 changed files with 20 additions and 2 deletions
|
|
@ -436,10 +436,28 @@ class OC_Installer{
|
|||
|
||||
$blacklist=array(
|
||||
'exec(',
|
||||
'eval('
|
||||
'eval(',
|
||||
// more evil pattern will go here later
|
||||
// will will also check if an app is using private api once the public api is in place
|
||||
|
||||
// classes replaced by the public api
|
||||
'OC_API::',
|
||||
'OC_App::',
|
||||
'OC_AppConfig::',
|
||||
'OC_BackgroundJob::',
|
||||
'OC_Config::',
|
||||
'OC_DB::',
|
||||
'OC_Files::',
|
||||
'OC_Helper::',
|
||||
'OC_Hook::',
|
||||
'OC_JSON::',
|
||||
'OC_Log::',
|
||||
'OC_Mail::',
|
||||
'OC_Preferences::',
|
||||
'OC_Request::',
|
||||
'OC_Response::',
|
||||
'OC_Template::',
|
||||
'OC_User::',
|
||||
'OC_Util::',
|
||||
);
|
||||
|
||||
// is the code checker enabled?
|
||||
|
|
|
|||
Loading…
Reference in a new issue