Implement a class TrailingSpaceValidator that wraps yamllint.linter.run to detect trailing whitespace…
Implement a class TrailingSpaceValidator that wraps yamllint.linter.run to detect trailing whitespace…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Example Input: yaml id: "test " Example Output: A list with one LintProblem object where rule='trailing-spaces' and line=1 .
The task
Example Input: ```yaml id: "test " ``` Example Output: A list with one `LintProblem` object where `rule='trailing-spaces'` and `line=1`.
Part of Essacheez/r2e-code-instruct-qwen3.5.