Variable: dtrt-indent-min-relevant-lines

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

Value

2

Documentation

*Minimum number of relevant lines required for a guess to be made.

This check is in place because with a very low number of lines that can be analyzed the chances of a wrong guess are rather high because the sample size is so small. If you are getting false positives with small files - i.e. the wrong offset is guessed
- you might want to increase this setting. On the other hand, if
you are getting false negatives on small files - i.e. no guess is made on a small file - 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-relevant-lines 2
  "*Minimum number of relevant lines required for a guess to be made.

This check is in place because with a very low number of lines
that can be analyzed the chances of a wrong guess are rather
high because the sample size is so small.  If you are getting
false positives with small files - i.e. the wrong offset is guessed
- you might want to increase this setting.  On the other hand, if
you are getting false negatives on small files - i.e. no guess is
made on a small file - you might want to decrease it."
  :type 'integer
  :tag "Minimum Number Of Relevant Lines"
  :group 'dtrt-indent)