Commits on Source 4

  • Qinusty's avatar
    _project.py: Add fatal-warnings configuration item · 16b92edd
    Qinusty authored and Qinusty's avatar Qinusty committed
    This allows for users to configure fatal-warnings to be either a list of
    warnings or simply True to trigger all configurable warnings as errors.
    
    This commit deprecates the use of fail-on-overlap within project.conf,
    this will now use the fatal-warnings configuration item.
    
    plugin.py: get_warnings() is now available for plugins to override and
    return their configurable warnings.
    
    tests: This modifys the tests/frontend/overlaps.py tests to support the
    new fatal-warnings configuration. Backwards compatibility is also
    tested for `fail-on-overlap`
    
    _versions.py: BST_FORMAT_VERSION bumped to 12 for fatal-warnings
    
    Fixes: #526
    16b92edd
  • Qinusty's avatar
    git.py: Add configurable warning for inconsistent-submodule · c943fa2d
    Qinusty authored and Qinusty's avatar Qinusty committed
    This follows the implementation of configurable warnings.
    c943fa2d
  • Qinusty's avatar
    docs: Add documentation for Configurable Warnings · c93fbd7f
    Qinusty authored and Qinusty's avatar Qinusty committed
    This includes detailing the use of `fatal-warnings` within project.conf
    
    This also adds a deprecation notice to the fail on overlaps section.
    c93fbd7f
  • Qinusty's avatar
    tests: Add tests for configurable warnings · b73e003c
    Qinusty authored and Qinusty's avatar Qinusty committed
    This adds multiple tests for custom plugin warnings and core warnings,
    providing checks for both cases which should cause warnings and errors
    when configured as fatal.
    b73e003c
Loading
Loading