Skip to content

Comments

xlint: check for multiline variable set#266

Open
tornaria wants to merge 1 commit intoleahneukirchen:masterfrom
tornaria:xlint_check_multiline
Open

xlint: check for multiline variable set#266
tornaria wants to merge 1 commit intoleahneukirchen:masterfrom
tornaria:xlint_check_multiline

Conversation

@tornaria
Copy link
Contributor

The continuation lines should start with a single space.

I wrote this months ago, but I forgot to PR.

I think it works ok, it's matching quotes (" vs '). In the continuation lines, it complains unless the line starts with a single space followed by not-a-[:space:]. In particular, as this is written, a single space in a line by itself is forbidden. In effect this means one cannot have an empty line in a multiline variable set. Let me know if that's incorrect (and if so, what's allowed for that).

@Vaelatern
Copy link
Collaborator

I think it's correct.

Empty lines in multi-line variables are confusing.

@classabbyamp
Copy link
Collaborator

have you tried running this on all srcpkgs? (find -type d srcpkgs | xargs xlint)

I found that useful to find issues with my attempt at this

The continuation lines should start with a single space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants