Skip to content
Snippets Groups Projects
Commit 1b3be32b authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[ivette] rename checkdir -> checkcase

parent 5b0f5efe
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ DOME_CUSTOM_ENTRIES= yes ...@@ -31,7 +31,7 @@ DOME_CUSTOM_ENTRIES= yes
COPYRIGHT=CEA LIST / LSL COPYRIGHT=CEA LIST / LSL
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
.PHONY: all app dev pkg doc serve dist lint fixlint checkdirs .PHONY: all app dev pkg doc serve dist lint fixlint checkcase
all: pkg lint app all: pkg lint app
...@@ -39,13 +39,15 @@ app: dome-app ...@@ -39,13 +39,15 @@ app: dome-app
dev: dome-dev dev: dome-dev
dist: dome-dist dist: dome-dist
lint: dome-pkg dome-templ checkdirs lint: dome-pkg dome-templ checkcase
@echo "[Ivette] running typechecker & linter" @echo "[Ivette] running typechecker & linter"
yarn run typecheck yarn run typecheck
yarn run lint yarn run lint
checkdirs: # In case-insensitive filesystems (macOS/Windows), import statements and
@echo "[Ivette] check imported filenames" # filenames can have issues due to case differences
checkcase:
@echo "[Ivette] check case issues in imported filenames"
@err=0 ; for f in `find src | sed -E 's/(.ts|.tsx|.js|.jsx|.css|.json)$$//' | sort -f | uniq -di` ;\ @err=0 ; for f in `find src | sed -E 's/(.ts|.tsx|.js|.jsx|.css|.json)$$//' | sort -f | uniq -di` ;\
do \ do \
err=1; \ err=1; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment