[Bro-Dev] Coding style enforcement

Robin Sommer robin at icir.org
Wed Mar 16 09:26:40 PDT 2016

As I had mentioned to Matthias already, I don't have strong feelings
regarding Broker coding style. Changing that to match CAF sounds
reasonable to me, as a lot of the code's structure is driven by CAF as
well. Jon is the one most invested into the style, so as long as he's
ok with it, I don't see a problem.

(For the record, for Bro itself my preference remains staying with the
current style. Ideally somebody will be able to teach that to
clang-format eventually.).

Regrading commit messages, these are our current guidelines:

I wouldn't want to be too religious about that, but having a succinct
first line certainly makes sense. Not sure I'd remember not to put a
period at the end though. :-)


On Fri, Mar 11, 2016 at 14:58 -0800, you wrote:

> While porting Broker to the latest CAF version, I am realizing that the
> current pre C++11 coding style is not very conducive. Since the
> introduction of lambdas, and in particular with CAF's asynchronous and
> template-heavy programming model, the Whitesmiths style isn't very
> practical.
> Once can consider Broker a separate project, and perhaps a style change
> wouldn't be as complicated as in the main Bro code, I still wanted to
> check in with you whether anyone would object to changing the style. In
> particular, I'm planning to use CAF's coding style [1], which provides a
> unified style for meta programming as well as "regular" programming.
> There exists also a clang-format style file for this [2], which makes it
> really easy to enforce this style globally. Unfortunately, clang-format
> currently doesn't support the Whitesmiths style, so using this tool for
> Bro is not (yet) an option. (There exists an unmerged patch that needs
> some cleanup [3], if anyone wants to go for it.)
> On a related note: I'd also like to see stricter git commit message
> guidelines, at least putting strict rules on the first line [4]. Would
> you be in favor of such rules on commit messages? 
>     Matthias
> [1] https://github.com/actor-framework/actor-framework/blob/master/CONTRIBUTING.md
> [2] https://github.com/actor-framework/actor-framework/blob/master/.clang-format
> [3] http://reviews.llvm.org/D6833
> [4] https://github.com/agis-/git-style-guide#messages
> _______________________________________________
> bro-dev mailing list
> bro-dev at bro.org
> http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Robin Sommer * ICSI/LBNL * robin at icir.org * www.icir.org/robin

More information about the bro-dev mailing list