Pre-submission compliance scanner for the Apple App Store. Fixes: - Implement antiPatternsGlobal two-pass scanning (rules like missing-att, social-login-no-apple now correctly check anti-patterns across all project files instead of only the current file) - Remove dead printFooter() in scan.go (handled by report.go) - Remove no-op checkAppIconExists() (icon checks handled by app.json parser) - Fix all go vet warnings (redundant newlines in Println calls) Adds MIT license, CI workflow, and updated .gitignore. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
762 B
Makefile
31 lines
762 B
Makefile
BINARY_NAME=greenlight
|
|
VERSION?=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
|
|
LDFLAGS=-ldflags "-X main.version=$(VERSION)"
|
|
|
|
.PHONY: build clean test lint install
|
|
|
|
build:
|
|
go build $(LDFLAGS) -o build/$(BINARY_NAME) ./cmd/greenlight
|
|
|
|
install:
|
|
go install $(LDFLAGS) ./cmd/greenlight
|
|
|
|
clean:
|
|
rm -rf build/
|
|
|
|
test:
|
|
go test ./... -v
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
# Cross-compile for release
|
|
release:
|
|
GOOS=darwin GOARCH=arm64 go build $(LDFLAGS) -o build/$(BINARY_NAME)-darwin-arm64 ./cmd/greenlight
|
|
GOOS=darwin GOARCH=amd64 go build $(LDFLAGS) -o build/$(BINARY_NAME)-darwin-amd64 ./cmd/greenlight
|
|
GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -o build/$(BINARY_NAME)-linux-amd64 ./cmd/greenlight
|
|
|
|
deps:
|
|
go mod tidy
|
|
go mod download
|