Commit 2532970b authored by Xavier Guimard's avatar Xavier Guimard

Fix perltidy conf

parent 9cfef329
# -*- conf -*-
#
# Default options for perltidy for proper Perl code reformatting.
#
# This file is based on the one from the rra-c-util package,
# which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
--nobreak-before-all-operators
--blanks-before-comments
--nocuddled-else
--maximum-line-length=79
--paren-tightness=1
--square-bracket-tightness=1
--space-for-semicolon
--noopening-brace-on-new-line
--stack-opening-tokens
--nostack-closing-tokens
--format-skipping
......@@ -1098,7 +1098,7 @@ test-diff:
done
tidy: clean
find lemon*/ -type f \( -name '*.pm' -or -name '*.pl' -or -name '*.fcgi' -or -name '*.t' \) -print -exec perltidy -b {} \;
find lemon*/ -type f \( -name '*.pm' -or -name '*.pl' -or -name '*.fcgi' -or -name '*.t' \) -print -exec perltidy -se -b {} \;
find lemon*/ -name '*.bak' -delete
$(MAKE) json
......
  • This breaks perltidy on Debian stable (9.6) :

    coudot@llng-site:~/lemonldap-ng$ perltidy -b lemonldap-ng-common/lib/Lemonldap/NG/Common.pm 
    Unknown option: nostack-closing-tokens
    Error in this config file: .perltidyrc  
    Use -npro to ignore this file, -h for help'
    coudot@llng-site:~/lemonldap-ng$ perltidy -v
    This is perltidy, v20140328 
    
    Copyright 2000-2014, Steve Hancock
    
    Perltidy is free software and may be copied under the terms of the GNU
    General Public License, which is included in the distribution files.
    
    Complete documentation for perltidy can be found using 'man perltidy'
    or on the internet at http://perltidy.sourceforge.net.

    Could we remove the nostack-closing-tokens option?

    Edited by Clément OUDOT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment