Skip to content

Commit eb3ad8d

Browse files
authored
Merge pull request #24 from shift-editor/kostya/deslop
kostya/deslop
2 parents d1ea859 + d50e558 commit eb3ad8d

234 files changed

Lines changed: 8779 additions & 15931 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"hooks": {
3+
"Stop": [
4+
{
5+
"matcher": "",
6+
"hooks": [
7+
{
8+
"type": "command",
9+
"command": "git diff --name-only --diff-filter=ACMR HEAD | grep -E '\\.(ts|tsx|json|md|css)$' | xargs pnpm prettier --write --ignore-unknown 2>/dev/null; true"
10+
}
11+
]
12+
}
13+
]
14+
}
15+
}

.claude/skills/add-manager/SKILL.md

Lines changed: 0 additions & 165 deletions
This file was deleted.

.claude/skills/geometry-boundaries/SKILL.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.claude/skills/wire-rust/SKILL.md

Lines changed: 0 additions & 109 deletions
This file was deleted.

.features/SMALL.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999

100100
- run: pnpm install --frozen-lockfile --prefer-offline
101101
- name: Typecheck
102-
run: pnpm test:typecheck
102+
run: pnpm typecheck
103103

104104
unit-test:
105105
name: Unit Tests
@@ -120,6 +120,10 @@ jobs:
120120
cache: pnpm
121121

122122
- run: pnpm install --frozen-lockfile --prefer-offline
123+
124+
- name: Build native module
125+
run: pnpm build:native
126+
123127
- name: Run unit tests
124128
run: pnpm test:unit
125129

@@ -191,7 +195,7 @@ jobs:
191195
run: cargo clippy --workspace --all-targets -- -D warnings
192196

193197
- name: Run tests
194-
run: cargo test --workspace
198+
run: cargo test --workspace --exclude shift-node
195199

196200
integration:
197201
name: Integration Tests

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,38 @@ repos:
99
- id: check-added-large-files
1010
- id: check-merge-conflict
1111

12+
# Slop detection
13+
- repo: local
14+
hooks:
15+
- id: no-empty-files
16+
name: no empty files
17+
entry: "bash -c 'for f in \"$@\"; do if [ -f \"$f\" ] && [ ! -s \"$f\" ]; then echo \"Empty file: $f\"; exit 1; fi; done'"
18+
language: system
19+
types_or: [javascript, jsx, ts, tsx, rust, css, json]
20+
21+
- id: no-console-log
22+
name: no console.log in production code
23+
entry: "bash -c 'for f in \"$@\"; do case \"$f\" in *.test.*|*/testing/*) continue;; esac; if grep -n \"^\\s*console\\.log\\b\" \"$f\" >/dev/null 2>&1; then echo \"$f has console.log:\"; grep -n \"^\\s*console\\.log\\b\" \"$f\"; exit 1; fi; done'"
24+
language: system
25+
types_or: [javascript, jsx, ts, tsx]
26+
1227
# Rust hooks
1328
- repo: local
1429
hooks:
30+
- id: napi-dead-methods
31+
name: napi dead methods
32+
entry: ./scripts/check-napi-dead-methods.sh
33+
language: system
34+
types: [rust]
35+
pass_filenames: false
36+
37+
- id: cargo-check-tests
38+
name: cargo check (including tests)
39+
entry: bash -c 'cargo check --package shift-node --tests'
40+
language: system
41+
types: [rust]
42+
pass_filenames: false
43+
1544
- id: cargo-fmt
1645
name: cargo fmt
1746
entry: cargo fmt --all --

0 commit comments

Comments
 (0)