Skip to content

Commit

Permalink
new: vscode settings (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus authored Jun 9, 2024
1 parent 37cfaa5 commit 830cf39
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"rust-analyzer.rustfmt.extraArgs": [
"+nightly"
],
"coverage-gutters.coverageBaseDir": "target",
"coverage-gutters.coverageFileNames": [
"lcov.info"
],
}
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ SCREENSHOT_SAMPLE = prometheus.log
# Exported variables
export RUST_BACKTRACE=1

# The list of files that are intentionally ignored while being tracked
ignored-tracked-files = .vscode/settings.json

## Print help
help:
@echo "$$(tput setaf 2)Usage$$(tput sgr0)";sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## /---/;td" -e"s/:.*//;G;s/\\n## /===/;s/\\n//g;p;}" ${MAKEFILE_LIST}|awk -F === -v n=$$(tput cols) -v i=4 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf" '$$(tput setaf 2)make$$(tput sgr0)' %s%s%s\t",a,$$1,z;m=split($$2,w,"---");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;}printf"%*s%s\n",-i," ",w[j];}}' | column -ts $$'\t'
Expand Down Expand Up @@ -97,6 +100,16 @@ coverage:
@build/ci/coverage.sh
.PHONY: coverage

## Skip ignored tracked files
skip-ignored:
@git update-index --skip-worktree $(ignored-tracked-files)
.PHONY: skip-ignored

## Undo skip-ignored
no-skip-ignored:
@git update-index --no-skip-worktree $(ignored-tracked-files)
.PHONY: no-skip-ignored

contrib-build:
@contrib/bin/setup.sh build
.PHONY: contrib-build
Expand Down

0 comments on commit 830cf39

Please sign in to comment.