
\begin{DoxyItemize}
\item infos = Information about the lineendings plugin is in keys below
\item infos/author = Thomas Waser \href{mailto:thomas.waser@libelektra.org}{\texttt{ thomas.\+waser@libelektra.\+org}}, Michael Langhammer \href{mailto:e1125605@student.tuwien.ac.at}{\texttt{ e1125605@student.\+tuwien.\+ac.\+at}}, Florian Lindner \href{mailto:florian.lindner@student.tuwien.ac.at}{\texttt{ florian.\+lindner@student.\+tuwien.\+ac.\+at}}
\item infos/maintainer = Florian Lindner \href{mailto:florian.lindner@student.tuwien.ac.at}{\texttt{ florian.\+lindner@student.\+tuwien.\+ac.\+at}}
\item infos/licence = BSD
\item infos/needs =
\item infos/provides =
\item infos/placements = pregetstorage postgetstorage precommit
\item infos/status = maintained unittest nodep configurable
\item infos/description = verifies line endings of files
\end{DoxyItemize}\hypertarget{md_src_plugins_lineendings_README_src_plugins_lineendings_README_md}{}\doxysection{Introduction}\label{md_src_plugins_lineendings_README_src_plugins_lineendings_README_md}
The plugin provides validation for the line endings of a file.\hypertarget{md_src_plugins_lineendings_README_autotoc_md318}{}\doxysection{Installation}\label{md_src_plugins_lineendings_README_autotoc_md318}
See \mbox{\hyperlink{doc_INSTALL_md}{installation}}. The package is called {\ttfamily libelektra5-\/extra}.\hypertarget{md_src_plugins_lineendings_README_autotoc_md319}{}\doxysection{Usage}\label{md_src_plugins_lineendings_README_autotoc_md319}
The plugin checks the line endings of a file. It validates the line endings against consistency and if the key {\ttfamily /valid} is present also against the specified line ending. Inconsistent line endings or line endings that don\textquotesingle{}t match {\ttfamily /valid} yield an error in case of {\ttfamily kdb\+Set}. In the case of {\ttfamily kdb\+Get} the plugin yields a warning instead.\hypertarget{md_src_plugins_lineendings_README_autotoc_md320}{}\doxysection{Configuration}\label{md_src_plugins_lineendings_README_autotoc_md320}
The key {\ttfamily /valid} tells the plugin to reject all line endings other than specified and can have the following options\+:


\begin{DoxyItemize}
\item {\ttfamily CRLF}\+: Carriage return followed by a line feed
\item {\ttfamily LFCR}\+: Line feed followed by a carriage return
\item {\ttfamily CR}\+: Carriage return only
\item {\ttfamily LF}\+: Line feed only
\end{DoxyItemize}

If the key doesn\textquotesingle{}t exist only inconsistent line endings are rejected. 