Files @ r28050:7462e0a9ad17
Branch filter:

Location: cpp/openttd-patchpack/source/.github/codeql/codeql-config.yml

Peter Nelson
Add: Debug tool to draw widget outlines. (#11401)

This is considered a developer tool and is controlled from the help menu (or default hotkey Ctrl-O).

This draws a white dashed outline around widgets. NWidgetSpacer and (unused) WWT_EMPTY widgets are also filled with check pattern to highlight them, as they usually indicate a design issue.
name: openttd
queries:
- uses: security-and-quality
query-filters:
- exclude:
    id:
    # Only feasible way is to move away from fopen; fopen_s is optional C11 and not implemented on most platforms.
    - cpp/world-writable-file-creation
    # Basically OpenTTD's coding style for adding things like ..._INVALID to enumerations
    - cpp/irregular-enum-init
    # Our GUI code tends to use switches for OnClick handlers, DrawWidget, and UpdateWidgetSize. Sometimes GUIs just don't have many elements, but we want to keep consistency.
    - cpp/trivial-switch