static void init ( boolean includeAddOns ) { loadedPlugins = new ArrayList <> ( CoreFunctionality . getBuiltInActiveScanRules ( ) ) ; if ( includeAddOns ) { loadedPlugins . addAll ( ExtensionFactory . getAddOnLoader ( ) . getActiveScanRules ( ) ) ; } //sort by the criteria below. Collections . sort ( loadedPlugins , riskComparator ) ; mapLoadedPlugins = new HashMap <> ( ) ; for ( Plugin plugin : loadedPlugins ) { checkPluginId ( plugin ) ; mapLoadedPlugins . put ( plugin . getId ( ) , plugin ) ; } }
Helper method to ease tests .