Skip to content

Commit 508121c

Browse files
committed
address comments
1 parent 2b2cdac commit 508121c

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.github/workflows/code_health.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,7 @@ jobs:
5353
run: |
5454
npm ci
5555
- run: |
56-
npm run reformat
57-
- name: Check for uncommitted files
58-
run: |
59-
export FILES=
60-
FILES=$(git ls-files -o -m --directory --exclude-standard --no-empty-directory)
61-
export LINES=
62-
LINES=$(echo "$FILES" | awk 'NF' | wc -l)
63-
if [ "$LINES" -ne 0 ]; then
64-
echo "Detected files that need to be committed:"
65-
echo "${FILES}"
66-
echo ""
67-
echo "Try running: npm run reformat"
68-
exit 1
69-
fi
56+
npm run check:format
7057
eslint:
7158
runs-on: ubuntu-latest
7259
steps:
@@ -83,4 +70,4 @@ jobs:
8370
run: |
8471
npm ci
8572
- run: |
86-
npm run lint
73+
npm run check:lint

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
"build": "npm run build:clean && npm run build:compile && npm run build:addshebang && npm run build:chmod",
1313
"inspect": "npm run build && npx @modelcontextprotocol/inspector -- dist/index.js",
1414
"prettier": "prettier",
15-
"lint": "npx eslint .",
16-
"reformat": "npm run prettier -- --write ."
15+
"check": "npm run check:lint && npm run check:format",
16+
"check:lint": "npx eslint .",
17+
"check:format": "npx prettier -c .",
18+
"reformat": "npx prettier -- --write ."
1719
},
1820
"license": "Apache-2.0",
1921
"devDependencies": {

0 commit comments

Comments
 (0)