Diff configuration

Swarm's Diffs feature can be customized via the following config items:

ignore_whitespace_default

Normally, Swarm diffs do not ignore whitespace by default. The user can toggle ignore whitespace off and on. However, whenever a review is reloaded in your browser (or you visit another review), the default is in effect.

If you and your users prefer that ignore whitespace is enabled by default, set the ignore_whitespace_default config item to true in the SWARM_ROOT/data/config.php file. For example:

<?php
    // this block should be a peer of 'p4'
    'diffs' => array(
        'ignore_whitespace_default' => true,
    ),