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

move more validation for special targets to linter warnings #181

Open
mcandre opened this issue Apr 27, 2023 · 0 comments
Open

move more validation for special targets to linter warnings #181

mcandre opened this issue Apr 27, 2023 · 0 comments

Comments

@mcandre
Copy link
Owner

mcandre commented Apr 27, 2023

  • Use of special targets as prerequisites (except .WAIT)
  • Use of prerequisites in inappropriate special target rules
  • Use of commands in inappropriate special target rules

This provides clearer error messages.

This somewhat simplifies the grammar.

However, any special targets which reject commands, cannot be linted so easily for use of the blank/reset semicolon (;) syntax. We could extend the AST with a boolean to indicate whether an inline command was used.

@mcandre mcandre changed the title move target/prerequisite validation for special targets to linter warnings move more validation for special targets to linter warnings Apr 27, 2023
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

No branches or pull requests

1 participant