<commit_before># # Some interesting links on Makefiles:
# https://danishpraka.sh/2019/12/07/using-makefiles-for-go.html
# https://tech.davis-hansson.com/p/make/

MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
SHELL := bash

## install: compile the code and installs in binary in $GOPATH/bin
install:
	@go install
.PHONY: install

## run: start the cozy-stack for local development
run:
	@go run . serve --mailhog
.PHONY: run

## instance: create an instance for cozy.tools:8080
instance:
	@cozy-stack instances add cozy.tools:8080 --passphrase <PASSWORD> --apps home,store,drive,photos,settings,contacts,notes --email <EMAIL> --locale fr --public-name Claude --context-name dev

## lint: enforce a consistent code style and detect code smells
lint: bin/golangci-lint
	@bin/golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace -E exportloopref -D unused --max-same-issues 10
.PHONY: lint

bin/golangci-lint: Makefile
	@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.32.0

## jslint: enforce a consistent code style for Js code
jslint: ./node_modules/.bin/eslint
	@./node_modules/.bin/eslint "assets/scripts/**" tests/integration/konnector/*.js
.PHONY: jslint

./node_modules/.bin/eslint: Makefile
	@npm install prettier@2.1.2 eslint-plugin-prettier@3.1.4 eslint-config-cozy-app@2.0.0<commit_msg>Update golangci-lint to v1.34.1 (#2828)<commit_after># # Some interesting links on Makefiles:
# https://danishpraka.sh/2019/12/07/using-makefiles-for-go.html
# https://tech.davis-hansson.com/p/make/

MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
SHELL := bash

## install: compile the code and installs in binary in $GOPATH/bin
install:
	@go install
.PHONY: install

## run: start the cozy-stack for local development
run:
	@go run . serve --mailhog
.PHONY: run

## instance: create an instance for cozy.tools:8080
instance:
	@cozy-stack instances add cozy.tools:8080 --passphrase <PASSWORD> --apps home,store,drive,photos,settings,contacts,notes --email <EMAIL> --locale fr --public-name Claude --context-name dev

## lint: enforce a consistent code style and detect code smells
lint: bin/golangci-lint
	@bin/golangci-lint run -E gofmt -E unconvert -E misspell -E whitespace -E exportloopref -D unused --max-same-issues 10
.PHONY: lint

bin/golangci-lint: Makefile
	@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.34.1

## jslint: enforce a consistent code style for Js code
jslint: ./node_modules/.bin/eslint
	@./node_modules/.bin/eslint "assets/scripts/**" tests/integration/konnector/*.js
.PHONY: jslint

./node_modules/.bin/eslint: Makefile
	@npm install prettier@2.1.2 eslint-plugin-prettier@3.1.4 eslint-config-cozy-app@2.0.0
{'fraction_non_alphanumeric': 0.136986301369863, 'fraction_numerical': 0.025234318673395817, 'mean_word_length': 4.082417582417582, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '688834', 'n_tokens_mistral': 1055, 'n_tokens_neox': 979, 'n_words': 257}