Variable: dtrt-indent-min-quality

dtrt-indent-min-quality is a customizable variable defined in dtrt-indent.el.

Value

80.0

Documentation

*Minimum quality for an indentation offset to be accepted.

Percentage (0-100) of lines that are indented by a non-zero amount of spaces divisible by a given offset required for that offset to be eligible for guessing. A value of 80 means that for instance, an indentation level of 4 will only be guessed if at least 80% of all lines are indented by an offset divisible by 4.

This setting essentially controls how lenient or conservative dtrt-indent operates. If you are getting false positives - i.e. guess-offset guesses the wrong offset - you might want to increase this setting. On the other hand, if you are getting false negatives - i.e. guess-offset refuses to adjust the offset
- you might want to decrease it.

Source Code

;; Defined in /nix/store/xl774j723v677bsfsybzln3vi6w0fpm3-emacs-packages-deps/share/emacs/site-lisp/elpa/dtrt-indent-20260709.2011/dtrt-indent.el
(defcustom dtrt-indent-min-quality 80.0
  "*Minimum quality for an indentation offset to be accepted.

Percentage (0-100) of lines that are indented by a non-zero
amount of spaces divisible by a given offset required for that
offset to be eligible for guessing.  A value of 80 means that for
instance, an indentation level of 4 will only be guessed if at
least 80% of all lines are indented by an offset divisible by 4.

This setting essentially controls how lenient or conservative
dtrt-indent operates.  If you are getting false positives -
i.e. guess-offset guesses the wrong offset - you might want to
increase this setting.  On the other hand, if you are getting
false negatives - i.e. guess-offset refuses to adjust the offset
- you might want to decrease it."
  :type 'float
  :tag "Minimum Number Of Matching Lines"
  :group 'dtrt-indent)