Whitespaces in Portfile
Ryan Schmidt
ryandesign at macports.org
Wed Jul 16 14:40:28 PDT 2008
On Jul 16, 2008, at 16:08, Uwe Schwartz wrote:
> Rainer Müller schrieb:
>
>> Uwe Schwartz wrote:
>>
>>> are there any conventions about tabs and whitespaces in Portfile?
>>> I couldn't find any hints in the wiki or in the guide.
>>
>> http://guide.macports.org/#development.practices.portstyle
>>
>> Additionally, watch out for trailing whitespace - especially when the
>> line should end with a backslash. Use 'port lint', it prints a
>> warning
>> for this.
>
> 'port lint' is much more convenient than 'portindex'
Some whitespace warnings that port lint currently prints will be
removed or will only appear when using a switch:
http://trac.macports.org/ticket/14799
port lint does not currently warn if you use tabs in your portfile,
though spaces are preferred instead of tabs.
More information about the macports-dev
mailing list