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

False positive .PHONY violation on variables #61

Open
dgeorge83616 opened this issue Nov 19, 2021 · 0 comments
Open

False positive .PHONY violation on variables #61

dgeorge83616 opened this issue Nov 19, 2021 · 0 comments

Comments

@dgeorge83616
Copy link

reFindSimpleVariable = regexp.MustCompile("^([a-zA-Z]+) ?:=(.*)")
reFindExpandedVariable = regexp.MustCompile("^([a-zA-Z]+) ?=(.*)")

Those regex definitions don't recognize VAR=blah or VAR:=blahand flag such lines as needing.PHONY`.

    1 ifeq ($(OS), Windows_NT)
>>  2 MKDIR:=$(shell which mkdir.exe)
    3 else
~   4 MKDIR := mkdir
    5 endif
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