[RFC] Multi-glob rules && cmd_rules

Ian Clatworthy ian.clatworthy at internode.on.net
Thu Jan 15 23:07:42 GMT 2009


Marius Kruger wrote:

> I've always suspected but finally decided that I NEED rules to properly
> configure my text checker plugin.
> here is an example of what I'd like to configure:
> ==
> [name *.py, *.java, NEWS, README]
> trailing_whitespace=fail
> leading_tabs=warn
> newline_at_eof=warn
> long_line_length=80
> long_lines=ask
> ==
> 
> As you can see I'd like to specify the same bunch of rules for multiple
> globs.

I like this suggestion. My only comment is that I think space-separation
is enough (with the usual "" wrapper for patterns containing spaces).
I think it would make RULES files both more compact and more readable.

Ian C.



More information about the bazaar mailing list