001    /*
002     * Sonar, open source software quality management tool.
003     * Copyright (C) 2009 SonarSource SA
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 CLASSES = "classes";
030      String FILES = "files";
031      String DIRECTORIES = "directories";
032      String PACKAGES = "packages";
033      String FUNCTIONS = "functions";
034      String ACCESSORS = "accessors";
035      String STATEMENTS = "statements";
036      String PUBLIC_API = "public_api";
037      String COMPLEXITY = "complexity";
038      String CLASS_COMPLEXITY = "class_complexity";
039      String FUNCTION_COMPLEXITY = "function_complexity";
040      String FILE_COMPLEXITY = "file_complexity";
041      String CLASS_COMPLEXITY_DISTRIBUTION = "class_complexity_distribution";
042      String FUNCTION_COMPLEXITY_DISTRIBUTION = "function_complexity_distribution";
043      String COMMENT_LINES = "comment_lines";
044      String COMMENT_LINES_DENSITY = "comment_lines_density";
045      String PUBLIC_DOCUMENTED_API_DENSITY = "public_documented_api_density";
046      String PUBLIC_UNDOCUMENTED_API = "public_undocumented_api";
047      String COMMENTED_OUT_CODE_LINES = "commented_out_code_lines";
048      String TESTS = "tests";
049      String TEST_EXECUTION_TIME = "test_execution_time";
050      String TEST_ERRORS = "test_errors";
051      String SKIPPED_TESTS = "skipped_tests";
052      String TEST_FAILURES = "test_failures";
053      String TEST_SUCCESS_DENSITY = "test_success_density";
054      String TEST_DATA = "test_data";
055      String COVERAGE = "coverage";
056      String LINES_TO_COVER = "lines_to_cover";
057      String UNCOVERED_LINES = "uncovered_lines";
058      String LINE_COVERAGE = "line_coverage";
059      String COVERAGE_LINE_HITS_DATA = "coverage_line_hits_data";
060      String CONDITIONS_TO_COVER = "conditions_to_cover";
061      String UNCOVERED_CONDITIONS = "uncovered_conditions";
062      String BRANCH_COVERAGE = "branch_coverage";
063      String BRANCH_COVERAGE_HITS_DATA = "branch_coverage_hits_data";
064      String DUPLICATED_LINES = "duplicated_lines";
065      String DUPLICATED_BLOCKS = "duplicated_blocks";
066      String DUPLICATED_FILES = "duplicated_files";
067      String DUPLICATED_LINES_DENSITY = "duplicated_lines_density";
068      String DUPLICATIONS_DATA = "duplications_data";
069      String USABILITY = "usability";
070      String RELIABILITY = "reliability";
071      String EFFICIENCY = "efficiency";
072      String PORTABILITY = "portability";
073      String MAINTAINABILITY = "maintainability";
074      String WEIGHTED_VIOLATIONS = "weighted_violations";
075      String VIOLATIONS_DENSITY = "violations_density";
076      String VIOLATIONS = "violations";
077      String BLOCKER_VIOLATIONS = "blocker_violations";
078      String CRITICAL_VIOLATIONS = "critical_violations";
079      String MAJOR_VIOLATIONS = "major_violations";
080      String MINOR_VIOLATIONS = "minor_violations";
081      String INFO_VIOLATIONS = "info_violations";
082      String DEPTH_IN_TREE = "dit";
083      String NUMBER_OF_CHILDREN = "noc";
084      String RFC = "rfc";
085      String RFC_DISTRIBUTION = "rfc_distribution";
086      String LCOM4 = "lcom4";
087      String LCOM4_DISTRIBUTION = "lcom4_distribution";
088      String AFFERENT_COUPLINGS = "ca";
089      String EFFERENT_COUPLINGS = "ce";
090      String ABSTRACTNESS = "abstractness";
091      String INSTABILITY = "instability";
092      String DISTANCE = "distance";
093      String DEPENDENCY_MATRIX = "dsm";
094      String PACKAGE_CYCLES = "package_cycles";
095      String PACKAGE_TANGLE_INDEX = "package_tangle_index";
096      String PACKAGE_TANGLES = "package_tangles";
097      String PACKAGE_FEEDBACK_EDGES = "package_feedback_edges";
098      String PACKAGE_EDGES_WEIGHT = "package_edges_weight";
099      String FILE_CYCLES = "file_cycles";
100      String FILE_TANGLE_INDEX = "file_tangle_index";
101      String FILE_TANGLES = "file_tangles";
102      String FILE_FEEDBACK_EDGES = "file_feedback_edges";
103      String FILE_EDGES_WEIGHT = "file_edges_weight";
104      String ALERT_STATUS = "alert_status";
105    }