mcandre / unmake

a makefile linter
Other
83 stars 3 forks source link

test multiple command prefixes, but warn when specifying the same prefix multiple times #222

Closed mcandre closed 1 year ago

mcandre commented 1 year ago

Makefile command lines can have one or more of the following prefixes: a ('-'), an at-sign ('@'), or a ('+').

The current grammar has no notion one way or the other about the standard plus, minus, or at command prefixes. It behaves as a pass-through system.

We can add some tests to ensure that the grammar supports this.

We can define a policy to report more kinds of redundant prefixes, namely when plus, minus, or at appears more than once before a non-plus, non-minus, non-at character.

mcandre commented 1 year ago

Relates to #80.