Skip to content

Commit 3d40617

Browse files
committed
chore: docs updates and linting fixes
1 parent 8fa0110 commit 3d40617

File tree

85 files changed

+5429
-1047
lines changed

Some content is hidden

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

85 files changed

+5429
-1047
lines changed

.task/languages/csharp.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,20 @@ tasks:
8181
- dotnet test Kreuzberg.Tests/Kreuzberg.Tests.csproj -c Release --verbosity detailed
8282

8383
lint:
84-
desc: Lint C# code for style violations with auto-fix (dotnet format)
85-
dir: packages/csharp
84+
desc: Lint all C# code for style violations with auto-fix (dotnet format)
8685
cmds:
87-
- dotnet format Kreuzberg.slnx
86+
- cmd: bash scripts/task/csharp-lint.sh fix
87+
platforms: [linux, darwin]
88+
- cmd: cd packages/csharp && dotnet format Kreuzberg.slnx
89+
platforms: [windows]
8890

8991
lint:check:
90-
desc: Check C# code style violations without modifications (dotnet format verify)
91-
dir: packages/csharp
92+
desc: Check all C# code style violations without modifications (dotnet format verify)
9293
cmds:
93-
- dotnet restore Kreuzberg.slnx
94-
- dotnet format Kreuzberg.slnx --verify-no-changes
94+
- cmd: bash scripts/task/csharp-lint.sh check
95+
platforms: [linux, darwin]
96+
- cmd: cd packages/csharp && dotnet restore Kreuzberg.slnx && dotnet format Kreuzberg.slnx --verify-no-changes
97+
platforms: [windows]
9598

9699
format:
97100
desc: Format C# code with automatic style corrections (dotnet format)
@@ -124,9 +127,18 @@ tasks:
124127
- dotnet list Kreuzberg.slnx package --outdated || true
125128

126129
e2e:generate:
127-
desc: Generate C# E2E tests from fixtures
130+
desc: Generate and format C# E2E tests from fixtures
128131
cmds:
129132
- cargo run -p kreuzberg-e2e-generator -- generate --lang csharp --fixtures fixtures --output e2e
133+
- task: e2e:format
134+
135+
e2e:format:
136+
desc: Format C# E2E code
137+
cmds:
138+
- cmd: bash -c "cd e2e/csharp && dotnet format Kreuzberg.E2E.csproj"
139+
platforms: [linux, darwin]
140+
- cmd: cd e2e/csharp && dotnet format Kreuzberg.E2E.csproj
141+
platforms: [windows]
130142

131143
e2e:lint:
132144
desc: Lint C# E2E code

.task/languages/elixir.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ tasks:
6767
- mix test --warnings-as-errors --exclude ocr
6868

6969
lint:
70-
desc: Lint Elixir code with Credo
71-
dir: packages/elixir
70+
desc: Lint all Elixir code with auto-fix (format + credo)
7271
cmds:
73-
- mix credo suggest --all --strict
72+
- cmd: bash scripts/task/elixir-lint.sh fix
73+
platforms: [linux, darwin]
7474

7575
lint:check:
76-
desc: Check Elixir code with Credo (no fixes)
77-
dir: packages/elixir
76+
desc: Check all Elixir code linting without modifications
7877
cmds:
79-
- mix credo --strict
78+
- cmd: bash scripts/task/elixir-lint.sh check
79+
platforms: [linux, darwin]
8080

8181
format:
8282
desc: Format Elixir code
@@ -121,12 +121,20 @@ tasks:
121121
- mix docs
122122

123123
e2e:generate:
124-
desc: Generate Elixir E2E tests from fixtures
124+
desc: Generate and format Elixir E2E tests from fixtures
125125
cmds:
126126
- cmd: bash scripts/task/e2e-generate.sh elixir
127127
platforms: [linux, darwin]
128128
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
129129
platforms: [windows]
130+
- task: e2e:format
131+
132+
e2e:format:
133+
desc: Format Elixir E2E code
134+
dir: e2e/elixir
135+
cmds:
136+
- mix deps.get --quiet
137+
- mix format
130138

131139
e2e:test:
132140
desc: Run generated Elixir E2E tests

.task/languages/go.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,15 @@ tasks:
149149
platforms: [windows]
150150

151151
e2e:generate:
152-
desc: Generate Go E2E tests from fixtures
152+
desc: Generate and format Go E2E tests from fixtures
153153
cmds:
154154
- cmd: bash scripts/task/e2e-generate.sh go
155155
platforms: [linux, darwin]
156156
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
157157
platforms: [windows]
158158
- cmd: bash scripts/e2e/go/format.sh
159159
platforms: [linux, darwin]
160+
- task: e2e:lint
160161

161162
e2e:lint:
162163
desc: Lint Go E2E code

.task/languages/java.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -95,44 +95,28 @@ tasks:
9595
platforms: [windows]
9696

9797
lint:
98-
desc: Lint Java code for code quality issues (checkstyle + PMD static analysis)
99-
dir: packages/java
98+
desc: Lint all Java code with auto-fix (spotless + checkstyle + PMD)
10099
cmds:
101-
- cmd: bash -c 'if [ -f ~/.sdkman/bin/sdkman-init.sh ]; then source ~/.sdkman/bin/sdkman-init.sh && sdk use java 25.0.1-tem && sdk use maven 3.9.11; fi && mvn checkstyle:check && mvn pmd:check pmd:cpd-check'
100+
- cmd: bash scripts/task/java-lint.sh fix
102101
platforms: [linux, darwin]
103-
- cmd: |
104-
mvn checkstyle:check
105-
mvn pmd:check pmd:cpd-check
106-
platforms: [windows]
107102

108103
lint:check:
109-
desc: Check Java code quality without modifications (checkstyle + PMD analysis)
110-
dir: packages/java
104+
desc: Check all Java code linting without modifications
111105
cmds:
112-
- cmd: bash -c 'if [ -f ~/.sdkman/bin/sdkman-init.sh ]; then source ~/.sdkman/bin/sdkman-init.sh && sdk use java 25.0.1-tem && sdk use maven 3.9.11; fi && mvn checkstyle:check && mvn pmd:check pmd:cpd-check'
106+
- cmd: bash scripts/task/java-lint.sh check
113107
platforms: [linux, darwin]
114-
- cmd: |
115-
mvn checkstyle:check
116-
mvn pmd:check pmd:cpd-check
117-
platforms: [windows]
118108

119109
format:
120-
desc: Format Java code with automatic style corrections (spotless)
121-
dir: packages/java
110+
desc: Format all Java code (spotless)
122111
cmds:
123-
- cmd: bash -c 'if [ -f ~/.sdkman/bin/sdkman-init.sh ]; then source ~/.sdkman/bin/sdkman-init.sh && sdk use java 25.0.1-tem && sdk use maven 3.9.11; fi && mvn spotless:apply'
112+
- cmd: bash scripts/task/java-lint.sh fix
124113
platforms: [linux, darwin]
125-
- cmd: mvn spotless:apply
126-
platforms: [windows]
127114

128115
format:check:
129-
desc: Check Java code formatting without modifications (spotless)
130-
dir: packages/java
116+
desc: Check all Java code formatting (spotless)
131117
cmds:
132-
- cmd: bash -c 'if [ -f ~/.sdkman/bin/sdkman-init.sh ]; then source ~/.sdkman/bin/sdkman-init.sh && sdk use java 25.0.1-tem && sdk use maven 3.9.11; fi && mvn spotless:check'
118+
- cmd: bash scripts/task/java-lint.sh check
133119
platforms: [linux, darwin]
134-
- cmd: mvn spotless:check
135-
platforms: [windows]
136120

137121
clean:
138122
desc: Clean Java build artifacts
@@ -161,12 +145,20 @@ tasks:
161145
platforms: [windows]
162146
163147
e2e:generate:
164-
desc: Generate Java E2E tests from fixtures
148+
desc: Generate and format Java E2E tests from fixtures
165149
cmds:
166150
- cmd: bash scripts/task/e2e-generate.sh java
167151
platforms: [linux, darwin]
168152
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
169153
platforms: [windows]
154+
- task: e2e:format
155+
156+
e2e:format:
157+
desc: Format Java E2E code
158+
dir: e2e/java
159+
cmds:
160+
- cmd: bash -c 'if [ -f ~/.sdkman/bin/sdkman-init.sh ]; then source ~/.sdkman/bin/sdkman-init.sh && sdk use java 25.0.1-tem && sdk use maven 3.9.11; fi && if grep -q spotless-maven-plugin pom.xml; then mvn -q spotless:apply; fi'
161+
platforms: [linux, darwin]
170162

171163
e2e:lint:
172164
desc: Lint Java E2E code

.task/languages/node.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ tasks:
112112
- pnpm up --latest
113113

114114
e2e:generate:
115-
desc: Generate TypeScript E2E tests
115+
desc: Generate and format TypeScript E2E tests
116116
cmds:
117117
- cmd: bash scripts/task/e2e-typescript-generate.sh
118118
platforms: [linux, darwin]
119119
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
120120
platforms: [windows]
121+
- task: e2e:lint
121122

122123
e2e:lint:
123124
desc: Lint TypeScript E2E code

.task/languages/php.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,16 @@ tasks:
8686
- composer exec -- phpunit --coverage-html=coverage
8787

8888
lint:
89-
desc: Lint PHP code with auto-fix (php-cs-fixer + phpstan)
90-
dir: packages/php
89+
desc: Lint all PHP code with auto-fix (php-cs-fixer + phpstan)
9190
cmds:
92-
- composer exec -- php-cs-fixer fix
93-
- composer exec -- phpstan analyse --memory-limit=512M
91+
- cmd: bash scripts/task/php-lint.sh fix
92+
platforms: [linux, darwin]
9493

9594
lint:check:
96-
desc: Lint PHP code in check-only mode (php-cs-fixer + phpstan, no fixes)
97-
dir: packages/php
95+
desc: Lint all PHP code in check-only mode (php-cs-fixer + phpstan, no fixes)
9896
cmds:
99-
- composer exec -- php-cs-fixer fix --dry-run --diff
100-
- composer exec -- phpstan analyse --memory-limit=512M
97+
- cmd: bash scripts/task/php-lint.sh check
98+
platforms: [linux, darwin]
10199

102100
lint:phpstan:
103101
desc: Run static analysis with PHPStan
@@ -148,13 +146,20 @@ tasks:
148146
- composer outdated
149147

150148
e2e:generate:
151-
desc: Generate PHP E2E tests from fixtures
152-
dir: packages/php
149+
desc: Generate and format PHP E2E tests from fixtures
153150
cmds:
154151
- cmd: bash scripts/task/e2e-generate.sh php
155152
platforms: [linux, darwin]
156153
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
157154
platforms: [windows]
155+
- task: e2e:format
156+
157+
e2e:format:
158+
desc: Format PHP E2E code
159+
dir: e2e/php
160+
cmds:
161+
- cmd: bash -c "../../packages/php/vendor/bin/php-cs-fixer fix --rules='@PSR12,@PHP82Migration' --path-mode=override ."
162+
platforms: [linux, darwin]
158163

159164
e2e:lint:
160165
desc: Lint PHP E2E code

.task/languages/python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ tasks:
147147
- uv pip list --outdated || true
148148

149149
e2e:generate:
150-
desc: Generate Python E2E tests from fixtures
150+
desc: Generate and format Python E2E tests from fixtures
151151
cmds:
152152
- cmd: bash scripts/task/e2e-generate.sh python
153153
platforms: [linux, darwin]
154154
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
155155
platforms: [windows]
156+
- task: e2e:lint
156157

157158
e2e:lint:
158159
desc: Lint Python E2E test code

.task/languages/r.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,19 @@ tasks:
119119
- R CMD INSTALL --no-multiarch --with-keep.source .
120120

121121
e2e:generate:
122-
desc: Generate R E2E tests from fixtures
122+
desc: Generate and format R E2E tests from fixtures
123123
cmds:
124124
- cmd: bash scripts/task/e2e-generate.sh r
125125
platforms: [linux, darwin]
126126
- cmd: echo "E2E generation not yet supported on Windows"
127127
platforms: [windows]
128+
- task: e2e:format
129+
130+
e2e:format:
131+
desc: Format R E2E code
132+
dir: e2e/r
133+
cmds:
134+
- Rscript -e "styler::style_dir('tests')"
128135

129136
e2e:test:
130137
desc: Run R E2E tests

.task/languages/ruby.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,30 +87,28 @@ tasks:
8787
- "{{.BUNDLE}} exec rspec --format documentation --color"
8888

8989
lint:
90-
desc: Auto-fix Ruby code linting (rubocop + steep)
91-
dir: packages/ruby
90+
desc: Lint all Ruby code with auto-fix (rubocop + steep across all directories)
9291
cmds:
93-
- "{{.BUNDLE}} exec rubocop --config .rubocop.yml --autocorrect-all"
94-
- "{{.BUNDLE}} exec steep check"
92+
- cmd: bash scripts/task/ruby-lint.sh fix
93+
platforms: [linux, darwin]
9594

9695
lint:check:
97-
desc: Check Ruby code linting without modifications (rubocop + steep, no fixes)
98-
dir: packages/ruby
96+
desc: Check all Ruby code linting without modifications (rubocop + steep)
9997
cmds:
100-
- "{{.BUNDLE}} exec rubocop --config .rubocop.yml"
101-
- "{{.BUNDLE}} exec steep check"
98+
- cmd: bash scripts/task/ruby-lint.sh check
99+
platforms: [linux, darwin]
102100

103101
format:
104-
desc: Format Ruby code with modifications (rubocop)
105-
dir: packages/ruby
102+
desc: Format all Ruby code with modifications (rubocop across all directories)
106103
cmds:
107-
- "{{.BUNDLE}} exec rubocop --config .rubocop.yml --autocorrect-all"
104+
- cmd: bash scripts/task/ruby-lint.sh fix
105+
platforms: [linux, darwin]
108106

109107
format:check:
110-
desc: Check Ruby code formatting without modifications (rubocop)
111-
dir: packages/ruby
108+
desc: Check all Ruby code formatting without modifications (rubocop)
112109
cmds:
113-
- "{{.BUNDLE}} exec rubocop --config .rubocop.yml"
110+
- cmd: bash scripts/task/ruby-lint.sh check
111+
platforms: [linux, darwin]
114112

115113
typecheck:
116114
desc: Run steep type checking
@@ -141,12 +139,13 @@ tasks:
141139
- "{{.BUNDLE}} outdated || true"
142140

143141
e2e:generate:
144-
desc: Generate Ruby E2E tests from fixtures
142+
desc: Generate and auto-fix Ruby E2E tests from fixtures
145143
cmds:
146144
- cmd: bash scripts/task/e2e-generate.sh ruby
147145
platforms: [linux, darwin]
148146
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
149147
platforms: [windows]
148+
- task: e2e:format
150149

151150
e2e:test:
152151
desc: Run Ruby E2E tests
@@ -155,11 +154,16 @@ tasks:
155154
- BUNDLE_GEMFILE="../../packages/ruby/Gemfile" {{.BUNDLE}} exec rspec
156155

157156
e2e:lint:
158-
desc: Lint Ruby E2E code
157+
desc: Lint Ruby E2E code (check only)
158+
dir: e2e/ruby
159+
cmds:
160+
- "{{.BUNDLE}} exec rubocop --config .rubocop.yaml"
161+
162+
e2e:format:
163+
desc: Auto-fix Ruby E2E code formatting
159164
dir: e2e/ruby
160165
cmds:
161-
- BUNDLE_GEMFILE="../../packages/ruby/Gemfile" {{.BUNDLE}} exec rubocop --config .rubocop.yml
162-
- BUNDLE_GEMFILE="../../packages/ruby/Gemfile" {{.BUNDLE}} exec steep check
166+
- "{{.BUNDLE}} exec rubocop --config .rubocop.yaml --autocorrect-all"
163167

164168
e2e:verify:
165169
desc: Regenerate and validate Ruby E2E suite (generate + lint + test)

.task/languages/rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,14 @@ tasks:
284284
- cargo update --manifest-path tests/test_apps/rust/Cargo.toml
285285

286286
e2e:generate:
287-
desc: Generate Rust E2E tests from fixtures
287+
desc: Generate and format Rust E2E tests from fixtures
288288
cmds:
289289
- cmd: bash scripts/task/e2e-generate.sh rust
290290
platforms: [linux, darwin]
291291
- cmd: echo "E2E generation not yet supported on Windows - use WSL or CI"
292292
platforms: [windows]
293+
- task: e2e:format
294+
- task: e2e:lint
293295

294296
e2e:format:
295297
desc: Format generated Rust E2E sources

0 commit comments

Comments
 (0)