Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xlint: check for multiline variable set #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
Contributor

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