def _format_message(
    message: str, file: str, line: int, github_format: bool = False
) -> str:
    """
    Format message with source file and line number.
    """
    if github_format:
        return f"::warning file={file},line={line}::{message}"
    return f"{message} (defined in {file}:{line})"

    Format message with source file and line number.
    
buildroot-external/scripts/check-dotconfig.py