All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qualinsight.plugins.sonarqube.smell.internal.ui.extension.smells.measures.widget.html.erb Maven / Gradle / Ivy

Go to download

Allows developers to programmatically report code smells usually not seen by SonarQube but which should be taken into consideration when evaluating a project's technical debt. Usage <a href="https://github.com/QualInsight/qualinsight-plugins-sonarqube-smell#code-smells-plugin-for-sonarqube">documentation</a> is available on the project's Homepage.

There is a newer version: 4.0.0
Show newest version
<%
  smells_debt=measure('SMELL_DEBT')
  smells_count=measure('SMELL_COUNT')
  smells_count_abbreviations_usage=measure('SMELL_COUNT_ABBREVIATIONS_USAGE')
  smells_count_anti_pattern=measure('SMELL_COUNT_ANTI_PATTERN')
  smells_count_bad_design=measure('SMELL_COUNT_BAD_DESIGN')
  smells_count_bad_framework_usage=measure('SMELL_COUNT_BAD_FRAMEWORK_USAGE')
  smells_count_bad_logging=measure('SMELL_COUNT_BAD_LOGGING')
  smells_count_how_comment=measure('SMELL_COUNT_HOW_COMMENT')
  smells_count_indecent_exposure=measure('SMELL_COUNT_INDECENT_EXPOSURE')
  smells_count_meaningless_comment=measure('SMELL_COUNT_MEANINGLESS_COMMENT')
  smells_count_middle_man=measure('SMELL_COUNT_MIDDLE_MAN')
  smells_count_missing_implementation=measure('SMELL_COUNT_MISSING_IMPLEMENTATION')
  smells_count_multiple_responsibilities=measure('SMELL_COUNT_MULTIPLE_RESPONSIBILITIES')
  smells_count_non_exception=measure('SMELL_COUNT_NON_EXCEPTION')
  smells_count_oddball_solution=measure('SMELL_COUNT_ODDBALL_SOLUTION')
  smells_count_overcomplicated_algorithm=measure('SMELL_COUNT_OVERCOMPLICATED_ALGORITHM')
  smells_count_primitives_obsession=measure('SMELL_COUNT_PRIMITIVES_OBSESSION')
  smells_count_refused_bequest=measure('SMELL_COUNT_REFUSED_BEQUEST')
  smells_count_reinvented_wheel=measure('SMELL_COUNT_REINVENTED_WHEEL')
  smells_count_solution_sprawl=measure('SMELL_COUNT_SOLUTION_SPRAWL')
  smells_count_speculative_generality=measure('SMELL_COUNT_SPECULATIVE_GENERALITY')
  smells_count_uncommunicative_name=measure('SMELL_COUNT_UNCOMMUNICATIVE_NAME')
  smells_count_useless_test=measure('SMELL_COUNT_USELESS_TEST')
  smells_count_wrong_logic=measure('SMELL_COUNT_WRONG_LOGIC')
  smells_count_wrong_language=measure('SMELL_COUNT_WRONG_LANGUAGE')
  smells_count_missing_documentation=measure('SMELL_COUNT_MISSING_DOCUMENTATION')
  smells_count_missing_test=measure('SMELL_COUNT_MISSING_TEST')
  smells_count_other=measure('SMELL_COUNT_OTHER')
  smells_count_non_compliance_with_standards=measure('SMELL_COUNT_NON_COMPLIANCE_WITH_STANDARDS')
  if smells_count
%>

<%= configuration('widget.smells.title') -%> <%= format_measure(smells_count, :url => url_for_drilldown(smells_count)) %> <%= format_variation(smells_count) if dashboard_configuration.selected_period? -%>

<%= message('metric.smells_debt.name') -%> <%= format_measure(smells_debt, :url => url_for_drilldown(smells_debt)) %> <%= format_variation(smells_debt) if dashboard_configuration.selected_period? -%>

<% end %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy