001 /* 002 * Sonar, open source software quality management tool. 003 * Copyright (C) 2008-2011 SonarSource 004 * mailto:contact AT sonarsource DOT com 005 * 006 * Sonar is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * Sonar is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with Sonar; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 019 */ 020 package org.sonar.gwt; 021 022 /** 023 * Keys of core metrics 024 */ 025 public interface Metrics { 026 027 String LINES = "lines"; 028 String NCLOC = "ncloc"; 029 String GENERATED_NCLOC = "generated_ncloc"; 030 String GENERATED_LINES = "generated_lines"; 031 String CLASSES = "classes"; 032 String FILES = "files"; 033 String DIRECTORIES = "directories"; 034 String PACKAGES = "packages"; 035 String FUNCTIONS = "functions"; 036 String PARAGRAPHS = "paragraphs"; 037 String ACCESSORS = "accessors"; 038 String STATEMENTS = "statements"; 039 String PUBLIC_API = "public_api"; 040 String COMPLEXITY = "complexity"; 041 String CLASS_COMPLEXITY = "class_complexity"; 042 String FUNCTION_COMPLEXITY = "function_complexity"; 043 String PARAGRAPH_COMPLEXITY = "paragraph_complexity"; 044 String FILE_COMPLEXITY = "file_complexity"; 045 String CLASS_COMPLEXITY_DISTRIBUTION = "class_complexity_distribution"; 046 String FUNCTION_COMPLEXITY_DISTRIBUTION = "function_complexity_distribution"; 047 String COMMENT_LINES = "comment_lines"; 048 String COMMENT_LINES_DENSITY = "comment_lines_density"; 049 String COMMENT_BLANK_LINES = "comment_blank_lines"; 050 String PUBLIC_DOCUMENTED_API_DENSITY = "public_documented_api_density"; 051 String PUBLIC_UNDOCUMENTED_API = "public_undocumented_api"; 052 String COMMENTED_OUT_CODE_LINES = "commented_out_code_lines"; 053 String TESTS = "tests"; 054 String TEST_EXECUTION_TIME = "test_execution_time"; 055 String TEST_ERRORS = "test_errors"; 056 String SKIPPED_TESTS = "skipped_tests"; 057 String TEST_FAILURES = "test_failures"; 058 String TEST_SUCCESS_DENSITY = "test_success_density"; 059 String TEST_DATA = "test_data"; 060 String COVERAGE = "coverage"; 061 String LINES_TO_COVER = "lines_to_cover"; 062 String UNCOVERED_LINES = "uncovered_lines"; 063 String LINE_COVERAGE = "line_coverage"; 064 String COVERAGE_LINE_HITS_DATA = "coverage_line_hits_data"; 065 String CONDITIONS_TO_COVER = "conditions_to_cover"; 066 String UNCOVERED_CONDITIONS = "uncovered_conditions"; 067 String BRANCH_COVERAGE = "branch_coverage"; 068 String BRANCH_COVERAGE_HITS_DATA = "branch_coverage_hits_data"; 069 String DUPLICATED_LINES = "duplicated_lines"; 070 String DUPLICATED_BLOCKS = "duplicated_blocks"; 071 String DUPLICATED_FILES = "duplicated_files"; 072 String DUPLICATED_LINES_DENSITY = "duplicated_lines_density"; 073 String DUPLICATIONS_DATA = "duplications_data"; 074 String USABILITY = "usability"; 075 String RELIABILITY = "reliability"; 076 String EFFICIENCY = "efficiency"; 077 String PORTABILITY = "portability"; 078 String MAINTAINABILITY = "maintainability"; 079 String WEIGHTED_VIOLATIONS = "weighted_violations"; 080 String VIOLATIONS_DENSITY = "violations_density"; 081 String VIOLATIONS = "violations"; 082 String BLOCKER_VIOLATIONS = "blocker_violations"; 083 String CRITICAL_VIOLATIONS = "critical_violations"; 084 String MAJOR_VIOLATIONS = "major_violations"; 085 String MINOR_VIOLATIONS = "minor_violations"; 086 String INFO_VIOLATIONS = "info_violations"; 087 String DEPTH_IN_TREE = "dit"; 088 String NUMBER_OF_CHILDREN = "noc"; 089 String RFC = "rfc"; 090 String RFC_DISTRIBUTION = "rfc_distribution"; 091 String LCOM4 = "lcom4"; 092 String LCOM4_DISTRIBUTION = "lcom4_distribution"; 093 String AFFERENT_COUPLINGS = "ca"; 094 String EFFERENT_COUPLINGS = "ce"; 095 String ABSTRACTNESS = "abstractness"; 096 String INSTABILITY = "instability"; 097 String DISTANCE = "distance"; 098 String DEPENDENCY_MATRIX = "dsm"; 099 String PACKAGE_CYCLES = "package_cycles"; 100 String PACKAGE_TANGLE_INDEX = "package_tangle_index"; 101 String PACKAGE_TANGLES = "package_tangles"; 102 String PACKAGE_FEEDBACK_EDGES = "package_feedback_edges"; 103 String PACKAGE_EDGES_WEIGHT = "package_edges_weight"; 104 String FILE_CYCLES = "file_cycles"; 105 String FILE_TANGLE_INDEX = "file_tangle_index"; 106 String FILE_TANGLES = "file_tangles"; 107 String FILE_FEEDBACK_EDGES = "file_feedback_edges"; 108 String FILE_EDGES_WEIGHT = "file_edges_weight"; 109 String ALERT_STATUS = "alert_status"; 110 }