Skip to content
Anton Novojilov edited this page Jan 3, 2020 · 9 revisions

Description

Checks full spec data for lines longer than 80 symbols.

Problematic code

./configure --prefix=%{_sysconfdir}/%{name} --sbin-path=%{_sbindir}/%{name} --modules-path=%{_libdir}/%{name}/modules --conf-path=%{_sysconfdir}/%{name}/%{name}.conf --error-log-path=%{_logdir}/%{name}/error.log --http-log-path=%{_logdir}/%{name}/access.log

Correct code

./configure \
    --prefix=%{_sysconfdir}/%{name} \
    --sbin-path=%{_sbindir}/%{name} \
    --modules-path=%{_libdir}/%{name}/modules \
    --conf-path=%{_sysconfdir}/%{name}/%{name}.conf \
    --error-log-path=%{_logdir}/%{name}/error.log \
    --http-log-path=%{_logdir}/%{name}/access.log

Rationale

80 symbols are optimal line length for reading and editing spec code in terminal code editors (like vim or nano).

Clone this wiki locally