<commit_before>package io.gitlab.arturbosch.detekt.rules.style.naming

import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Rule
import io.gitlab.arturbosch.detekt.api.Severity
import org.jetbrains.kotlin.psi.KtProperty
import org.jetbrains.kotlin.resolve.calls.util.isSingleUnderscore

/**
 * @configuration minimumVariableNameLength - maximum name length (default: 1)
 * @author <NAME>
 */
class VariableMinLength(config: Config = Config.empty) : Rule(config) {

	override val issue = Issue(javaClass.simpleName,
			Severity.Style,
			"Variable names should not be shorter than the minimum defined in the configuration.",
			debt = Debt.FIVE_MINS)
	private val minimumVariableNameLength
			= valueOrDefault(MINIMUM_VARIABLE_NAME_LENGTH, DEFAULT_MINIMUM_VARIABLE_NAME_LENGTH)

	override fun visitProperty(property: KtProperty) {
		if (property.isSingleUnderscore) {<commit_msg>Add author.<commit_after>package io.gitlab.arturbosch.detekt.rules.style.naming

import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Rule
import io.gitlab.arturbosch.detekt.api.Severity
import org.jetbrains.kotlin.psi.KtProperty
import org.jetbrains.kotlin.resolve.calls.util.isSingleUnderscore

/**
 * @configuration minimumVariableNameLength - maximum name length (default: 1)
 * @author <NAME>, <NAME>
 */
class VariableMinLength(config: Config = Config.empty) : Rule(config) {

	override val issue = Issue(javaClass.simpleName,
			Severity.Style,
			"Variable names should not be shorter than the minimum defined in the configuration.",
			debt = Debt.FIVE_MINS)
	private val minimumVariableNameLength
			= valueOrDefault(MINIMUM_VARIABLE_NAME_LENGTH, DEFAULT_MINIMUM_VARIABLE_NAME_LENGTH)

	override fun visitProperty(property: KtProperty) {
		if (property.isSingleUnderscore) {
{'fraction_non_alphanumeric': 0.09571558796718323, 'fraction_numerical': 0.0009115770282588879, 'mean_word_length': 5.733128834355829, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3408323', 'n_tokens_mistral': 775, 'n_tokens_neox': 750, 'n_words': 132}