public static Map<CxxMetricsFactory.Key, Metric<?>> generateMap(String langKey, String langPropertiesKey) {
    final String domain = langKey.toUpperCase(Locale.ENGLISH);

    final Map<CxxMetricsFactory.Key, Metric<?>> metrics = new HashMap<>();

    addPublicAPIMetrics(langPropertiesKey, domain, metrics);

    addSensorMetric(Key.CLANG_SA_SENSOR_ISSUES_KEY, "ClangSA issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.CLANG_TIDY_SENSOR_ISSUES_KEY, "ClangTidy issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.VC_SENSOR_ISSUES_KEY, "VC compiler issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.GCC_SENSOR_ISSUES_KEY, "GCC compiler issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.CPPCHECK_SENSOR_ISSUES_KEY, "CppCheck issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.DRMEMORY_SENSOR_ISSUES_KEY, "DrMemory issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.OTHER_SENSOR_ISSUES_KEY, "Other tools issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.PCLINT_SENSOR_ISSUES_KEY, "PC-Lint issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.RATS_SENSOR_ISSUES_KEY, "Rats issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.SQUID_SENSOR_ISSUES_KEY, "Squid issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.VALGRIND_SENSOR_KEY, "Valgrind issues", domain, langPropertiesKey, metrics);
    addSensorMetric(Key.VERAXX_SENSOR_KEY, "Vera issues", domain, langPropertiesKey, metrics);

    addFunctionComplexityMetrics(langPropertiesKey, metrics);
    addFunctonSizeMetrics(langPropertiesKey, metrics);

    return metrics;
  }
public static Map < CxxMetricsFactory . Key , Metric < ? > > generateMap ( String langKey , String langPropertiesKey ) { final String domain = langKey . toUpperCase ( Locale . ENGLISH ) ; final Map < CxxMetricsFactory . Key , Metric < ? > > metrics = new HashMap < > ( ) ; addPublicAPIMetrics ( langPropertiesKey , domain , metrics ) ; addSensorMetric ( Key . CLANG_SA_SENSOR_ISSUES_KEY , "ClangSA issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . CLANG_TIDY_SENSOR_ISSUES_KEY , "ClangTidy issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . VC_SENSOR_ISSUES_KEY , "VC compiler issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . GCC_SENSOR_ISSUES_KEY , "GCC compiler issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . CPPCHECK_SENSOR_ISSUES_KEY , "CppCheck issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . DRMEMORY_SENSOR_ISSUES_KEY , "DrMemory issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . OTHER_SENSOR_ISSUES_KEY , "Other tools issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . PCLINT_SENSOR_ISSUES_KEY , "PC-Lint issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . RATS_SENSOR_ISSUES_KEY , "Rats issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . SQUID_SENSOR_ISSUES_KEY , "Squid issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . VALGRIND_SENSOR_KEY , "Valgrind issues" , domain , langPropertiesKey , metrics ) ; addSensorMetric ( Key . VERAXX_SENSOR_KEY , "Vera issues" , domain , langPropertiesKey , metrics ) ; addFunctionComplexityMetrics ( langPropertiesKey , metrics ) ; addFunctonSizeMetrics ( langPropertiesKey , metrics ) ; return metrics ; }
Generate a map <code>{ language independent metric key : language dependent Metric object }</code>