Add test for line format

- No trailing whitespace
- Only one space after comma and colon
- No space before comma and colon
- No space inside brackets