pi-usereq 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.g.conf +20 -0
- package/.github/workflows/release-npm.yml +131 -0
- package/.gitignore +270 -0
- package/CHANGELOG.md +221 -0
- package/LICENSE +674 -0
- package/README.md +260 -0
- package/TODO.md +20 -0
- package/docs/pi.dev/agent-document-manifest.json +6399 -0
- package/docs/pi.dev/coding-agent-docs/compaction.md +394 -0
- package/docs/pi.dev/coding-agent-docs/custom-provider.md +596 -0
- package/docs/pi.dev/coding-agent-docs/development.md +71 -0
- package/docs/pi.dev/coding-agent-docs/extensions.md +2262 -0
- package/docs/pi.dev/coding-agent-docs/images/doom-extension.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/exy.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/interactive-mode.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/tree-view.png +0 -0
- package/docs/pi.dev/coding-agent-docs/json.md +82 -0
- package/docs/pi.dev/coding-agent-docs/keybindings.md +175 -0
- package/docs/pi.dev/coding-agent-docs/models.md +392 -0
- package/docs/pi.dev/coding-agent-docs/packages.md +218 -0
- package/docs/pi.dev/coding-agent-docs/prompt-templates.md +67 -0
- package/docs/pi.dev/coding-agent-docs/providers.md +195 -0
- package/docs/pi.dev/coding-agent-docs/rpc.md +1377 -0
- package/docs/pi.dev/coding-agent-docs/sdk.md +1124 -0
- package/docs/pi.dev/coding-agent-docs/session.md +412 -0
- package/docs/pi.dev/coding-agent-docs/settings.md +247 -0
- package/docs/pi.dev/coding-agent-docs/shell-aliases.md +13 -0
- package/docs/pi.dev/coding-agent-docs/skills.md +232 -0
- package/docs/pi.dev/coding-agent-docs/terminal-setup.md +106 -0
- package/docs/pi.dev/coding-agent-docs/termux.md +127 -0
- package/docs/pi.dev/coding-agent-docs/themes.md +295 -0
- package/docs/pi.dev/coding-agent-docs/tmux.md +61 -0
- package/docs/pi.dev/coding-agent-docs/tree.md +231 -0
- package/docs/pi.dev/coding-agent-docs/tui.md +887 -0
- package/docs/pi.dev/coding-agent-docs/windows.md +17 -0
- package/docs/pi.dev/mom-docs/artifacts-server.md +475 -0
- package/docs/pi.dev/mom-docs/events.md +307 -0
- package/docs/pi.dev/mom-docs/new.md +970 -0
- package/docs/pi.dev/mom-docs/sandbox.md +153 -0
- package/docs/pi.dev/mom-docs/slack-bot-minimal-guide.md +399 -0
- package/docs/pi.dev/mom-docs/v86.md +319 -0
- package/docs/pi.dev/pods-docs/gml-4.5.md +189 -0
- package/docs/pi.dev/pods-docs/gpt-oss.md +233 -0
- package/docs/pi.dev/pods-docs/implementation-plan.md +183 -0
- package/docs/pi.dev/pods-docs/kimi-k2.md +197 -0
- package/docs/pi.dev/pods-docs/models.md +116 -0
- package/docs/pi.dev/pods-docs/plan.md +166 -0
- package/docs/pi.dev/pods-docs/qwen3-coder.md +132 -0
- package/images/flowchart-bw.png +0 -0
- package/images/flowchart-bw.svg +102 -0
- package/images/flowchart.md +100 -0
- package/images/flowchart.png +0 -0
- package/images/flowchart.svg +3 -0
- package/package.json +46 -0
- package/req/docs/REFERENCES.md +4554 -0
- package/req/docs/REQUIREMENTS.md +475 -0
- package/req/docs/WORKFLOW.md +1059 -0
- package/scripts/debug-extension.ts +497 -0
- package/scripts/lib/extension-debug-harness.ts +450 -0
- package/scripts/lib/recording-extension-api.ts +786 -0
- package/scripts/lib/sdk-smoke.ts +503 -0
- package/scripts/pi-usereq-debug.sh +330 -0
- package/scripts/tool-args-to-params.ts +208 -0
- package/src/cli.ts +349 -0
- package/src/core/agent-tool-json.ts +621 -0
- package/src/core/compress-files.ts +72 -0
- package/src/core/compress-payload.ts +648 -0
- package/src/core/compress.ts +464 -0
- package/src/core/config.ts +272 -0
- package/src/core/doxygen-parser.ts +318 -0
- package/src/core/errors.ts +31 -0
- package/src/core/extension-status.ts +660 -0
- package/src/core/find-constructs.ts +319 -0
- package/src/core/find-payload.ts +915 -0
- package/src/core/generate-markdown.ts +120 -0
- package/src/core/path-context.ts +196 -0
- package/src/core/pi-notify.ts +430 -0
- package/src/core/pi-usereq-tools.ts +140 -0
- package/src/core/prompts.ts +184 -0
- package/src/core/reference-payload.ts +818 -0
- package/src/core/resources.ts +63 -0
- package/src/core/runtime-project-paths.ts +99 -0
- package/src/core/settings-menu.ts +233 -0
- package/src/core/source-analyzer.ts +1721 -0
- package/src/core/static-check.ts +674 -0
- package/src/core/token-counter.ts +729 -0
- package/src/core/tool-runner.ts +717 -0
- package/src/core/utils.ts +185 -0
- package/src/index.ts +2209 -0
- package/src/resources/guidelines/Google_C++_Style_Guide.md +3711 -0
- package/src/resources/guidelines/Google_Python_Style_Guide.md +3709 -0
- package/src/resources/prompts/analyze.md +130 -0
- package/src/resources/prompts/change.md +227 -0
- package/src/resources/prompts/check.md +139 -0
- package/src/resources/prompts/cover.md +219 -0
- package/src/resources/prompts/create.md +104 -0
- package/src/resources/prompts/fix.md +221 -0
- package/src/resources/prompts/flowchart.md +220 -0
- package/src/resources/prompts/implement.md +163 -0
- package/src/resources/prompts/new.md +226 -0
- package/src/resources/prompts/readme.md +182 -0
- package/src/resources/prompts/recreate.md +213 -0
- package/src/resources/prompts/refactor.md +213 -0
- package/src/resources/prompts/references.md +100 -0
- package/src/resources/prompts/renumber.md +119 -0
- package/src/resources/prompts/workflow.md +202 -0
- package/src/resources/prompts/write.md +99 -0
- package/src/resources/sounds/Machine-alert-beep-sound-effect.mp3 +0 -0
- package/src/resources/sounds/Soft-high-tech-notification-sound-effect.mp3 +0 -0
- package/src/resources/templates/Document_Source_Code_in_Doxygen_Style.md +130 -0
- package/src/resources/templates/HDT_Test_Authoring_Guide.md +318 -0
- package/src/resources/templates/Requirements_Template.md +78 -0
- package/tests/attended-results-scenarios.ts +758 -0
- package/tests/attended-results.test.ts +39 -0
- package/tests/cli-command-option-parity.test.ts +815 -0
- package/tests/debug-extension-harness.test.ts +463 -0
- package/tests/extension-registration.test.ts +2006 -0
- package/tests/fixtures/fixture_c.c +361 -0
- package/tests/fixtures/fixture_cpp.cpp +407 -0
- package/tests/fixtures/fixture_csharp.cs +411 -0
- package/tests/fixtures/fixture_elixir.ex +409 -0
- package/tests/fixtures/fixture_go.go +341 -0
- package/tests/fixtures/fixture_haskell.hs +250 -0
- package/tests/fixtures/fixture_java.java +430 -0
- package/tests/fixtures/fixture_javascript.js +383 -0
- package/tests/fixtures/fixture_kotlin.kt +451 -0
- package/tests/fixtures/fixture_lua.lua +276 -0
- package/tests/fixtures/fixture_perl.pl +310 -0
- package/tests/fixtures/fixture_php.php +433 -0
- package/tests/fixtures/fixture_python.py +502 -0
- package/tests/fixtures/fixture_ruby.rb +345 -0
- package/tests/fixtures/fixture_rust.rs +380 -0
- package/tests/fixtures/fixture_scala.scala +398 -0
- package/tests/fixtures/fixture_shell.sh +276 -0
- package/tests/fixtures/fixture_swift.swift +397 -0
- package/tests/fixtures/fixture_typescript.ts +434 -0
- package/tests/fixtures/fixture_zig.zig +295 -0
- package/tests/fixtures_attended_results/project/compress-line-numbers.json +5 -0
- package/tests/fixtures_attended_results/project/compress.json +5 -0
- package/tests/fixtures_attended_results/project/enable-static-check-invalid-command.json +5 -0
- package/tests/fixtures_attended_results/project/enable-static-check-valid.json +5 -0
- package/tests/fixtures_attended_results/project/files-static-check.json +5 -0
- package/tests/fixtures_attended_results/project/find-line-numbers.json +5 -0
- package/tests/fixtures_attended_results/project/find.json +5 -0
- package/tests/fixtures_attended_results/project/get-base-path.json +5 -0
- package/tests/fixtures_attended_results/project/git-check-clean.json +5 -0
- package/tests/fixtures_attended_results/project/git-check-dirty.json +5 -0
- package/tests/fixtures_attended_results/project/git-path.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-create-invalid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-create-valid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-delete-nonexistent.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-delete-valid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-name.json +5 -0
- package/tests/fixtures_attended_results/project/references.json +5 -0
- package/tests/fixtures_attended_results/project/static-check.json +5 -0
- package/tests/fixtures_attended_results/project/tokens.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_zig.zig.json +5 -0
- package/tests/helpers.ts +204 -0
- package/tests/oracle-project.test.ts +63 -0
- package/tests/oracle-standalone.test.ts +48 -0
- package/tests/prompt-rendering.test.ts +66 -0
- package/tests/release-workflow.test.ts +133 -0
package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_ruby.rb.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"code": 1,
|
|
3
|
+
"stdout": "# Static-Check(Ruff): <ROOT>/tests/fixtures/fixture_ruby.rb\nResult: FAIL\nEvidence:\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:6:1\n |\n4 | # mixins, eigenclass, refinements, define_method, and rescue/ensure.\n5 | # Single line comment\n6 | =begin\n | ^\n7 | Multi-line\n8 | comment\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:9:1\n |\n 7 | Multi-line\n 8 | comment\n 9 | =end\n | ^\n10 | require 'json'\n11 | require 'set'\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:10:9\n |\n 8 | comment\n 9 | =end\n10 | require 'json'\n | ^^^^^^\n11 | require 'set'\n12 | require_relative 'helper'\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:11:9\n |\n 9 | =end\n10 | require 'json'\n11 | require 'set'\n | ^^^^^\n12 | require_relative 'helper'\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:12:18\n |\n10 | require 'json'\n11 | require 'set'\n12 | require_relative 'helper'\n | ^^^^^^^^\n13 |\n14 | # @brief Maximum retry attempts for transient failures.\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:20:20\n |\n18 | DEFAULT_ENCODING = 'utf-8'.freeze\n19 |\n20 | attr_accessor :name, :age\n | ^\n21 |\n22 | # ── Concern module for shared behavior ─────────────────────────────────\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:20:22\n |\n18 | DEFAULT_ENCODING = 'utf-8'.freeze\n19 |\n20 | attr_accessor :name, :age\n | ^\n21 |\n22 | # ── Concern module for shared behavior ─────────────────────────────────\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:26:8\n |\n24 | # @module Loggable\n25 | # @brief Mixin providing logging capabilities to including classes.\n26 | module Loggable\n | ^^^^^^^^\n27 | # @brief Log a message to stdout with the class name prefix.\n28 | # @param message [String] The message to log.\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:29:1\n |\n27 | # @brief Log a message to stdout with the class name prefix.\n28 | # @param message [String] The message to log.\n29 | def log(message)\n | ^^\n30 | puts \"[#{self.class.name}] #{message}\"\n31 | end\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:29:19\n |\n27 | # @brief Log a message to stdout with the class name prefix.\n28 | # @param message [String] The message to log.\n29 | def log(message)\n | ^\n30 | puts \"[#{self.class.name}] #{message}\"\n31 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:30:10\n |\n28 | # @param message [String] The message to log.\n29 | def log(message)\n30 | puts \"[#{self.class.name}] #{message}\"\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n31 | end\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:35:23\n |\n33 | # @brief Log an error with backtrace information.\n34 | # @param error [Exception] The exception to log.\n35 | def log_error(error)\n | ^\n36 | puts \"[ERROR] #{error.message}\"\n37 | puts error.backtrace.first(5).join(\"\\n\") if error.backtrace\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:36:10\n |\n34 | # @param error [Exception] The exception to log.\n35 | def log_error(error)\n36 | puts \"[ERROR] #{error.message}\"\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n37 | puts error.backtrace.first(5).join(\"\\n\") if error.backtrace\n38 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:37:10\n |\n35 | def log_error(error)\n36 | puts \"[ERROR] #{error.message}\"\n37 | puts error.backtrace.first(5).join(\"\\n\") if error.backtrace\n | ^^^^^\n38 | end\n39 | end\n |\n\ninvalid-syntax: Expected `else`, found newline\n --> tests/fixtures/fixture_ruby.rb:37:64\n |\n35 | def log_error(error)\n36 | puts \"[ERROR] #{error.message}\"\n37 | puts error.backtrace.first(5).join(\"\\n\") if error.backtrace\n | ^\n38 | end\n39 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:39:1\n |\n37 | puts error.backtrace.first(5).join(\"\\n\") if error.backtrace\n38 | end\n39 | end\n | ^\n40 |\n41 | # ── Main class with nested constructs ──────────────────────────────────\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:47:14\n |\n45 | # @details Includes initializer, class methods, predicate methods,\n46 | # operator overloading, and dynamic method generation.\n47 | class MyClass\n | ^\n48 | include Loggable\n49 | include Comparable\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:48:11\n |\n46 | # operator overloading, and dynamic method generation.\n47 | class MyClass\n48 | include Loggable\n | ^^^^^^^^\n49 | include Comparable\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:49:11\n |\n47 | class MyClass\n48 | include Loggable\n49 | include Comparable\n | ^^^^^^^^^^\n50 |\n51 | # @brief Read/write accessor for the instance name.\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:60:34\n |\n58 | # @param name [String] The instance identifier.\n59 | # @param options [Hash] Optional configuration hash.\n60 | def initialize(name, **options)\n | ^\n61 | @name = name\n62 | @options = options\n |\n\ninvalid-syntax: Expected newline, found `=`\n --> tests/fixtures/fixture_ruby.rb:61:11\n |\n59 | # @param options [Hash] Optional configuration hash.\n60 | def initialize(name, **options)\n61 | @name = name\n | ^\n62 | @options = options\n63 | @created_at = Time.now\n |\n\ninvalid-syntax: Expected newline, found `=`\n --> tests/fixtures/fixture_ruby.rb:62:14\n |\n60 | def initialize(name, **options)\n61 | @name = name\n62 | @options = options\n | ^\n63 | @created_at = Time.now\n64 | # Set defaults for missing options\n |\n\ninvalid-syntax: Expected newline, found `=`\n --> tests/fixtures/fixture_ruby.rb:63:17\n |\n61 | @name = name\n62 | @options = options\n63 | @created_at = Time.now\n | ^\n64 | # Set defaults for missing options\n65 | @options[:retries] ||= MAX_RETRIES\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:65:25\n |\n63 | @created_at = Time.now\n64 | # Set defaults for missing options\n65 | @options[:retries] ||= MAX_RETRIES\n | ^^\n66 | end\n |\n\ninvalid-syntax: Expected `(`, found `.`\n --> tests/fixtures/fixture_ruby.rb:71:11\n |\n69 | # @param attrs [Hash] Attribute hash with :name key required.\n70 | # @return [MyClass] A new instance populated from attrs.\n71 | def self.create(attrs)\n | ^\n72 | new(attrs[:name], **attrs.except(:name))\n73 | end\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:71:18\n |\n69 | # @param attrs [Hash] Attribute hash with :name key required.\n70 | # @return [MyClass] A new instance populated from attrs.\n71 | def self.create(attrs)\n | ^\n72 | new(attrs[:name], **attrs.except(:name))\n73 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:72:1\n |\n70 | # @return [MyClass] A new instance populated from attrs.\n71 | def self.create(attrs)\n72 | new(attrs[:name], **attrs.except(:name))\n | ^^^^\n73 | end\n |\n\ninvalid-syntax: Expected an identifier, but found a keyword `except` that cannot be used here\n --> tests/fixtures/fixture_ruby.rb:72:31\n |\n70 | # @return [MyClass] A new instance populated from attrs.\n71 | def self.create(attrs)\n72 | new(attrs[:name], **attrs.except(:name))\n | ^^^^^^\n73 | end\n |\n\ninvalid-syntax: Expected an expression or a ')'\n --> tests/fixtures/fixture_ruby.rb:72:38\n |\n70 | # @return [MyClass] A new instance populated from attrs.\n71 | def self.create(attrs)\n72 | new(attrs[:name], **attrs.except(:name))\n | ^\n73 | end\n |\n\ninvalid-syntax: Expected `(`, found `.`\n --> tests/fixtures/fixture_ruby.rb:78:11\n |\n76 | # @param names [Array<String>] Names to create instances for.\n77 | # @return [Array<MyClass>] Array of new instances.\n78 | def self.bulk_create(names)\n | ^\n79 | names.map { |n| new(n) }\n80 | end\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:78:23\n |\n76 | # @param names [Array<String>] Names to create instances for.\n77 | # @return [Array<MyClass>] Array of new instances.\n78 | def self.bulk_create(names)\n | ^\n79 | names.map { |n| new(n) }\n80 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:79:1\n |\n77 | # @return [Array<MyClass>] Array of new instances.\n78 | def self.bulk_create(names)\n79 | names.map { |n| new(n) }\n | ^^^^\n80 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:79:15\n |\n77 | # @return [Array<MyClass>] Array of new instances.\n78 | def self.bulk_create(names)\n79 | names.map { |n| new(n) }\n | ^\n80 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:79:17\n |\n77 | # @return [Array<MyClass>] Array of new instances.\n78 | def self.bulk_create(names)\n79 | names.map { |n| new(n) }\n | ^\n80 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:80:3\n |\n78 | def self.bulk_create(names)\n79 | names.map { |n| new(n) }\n80 | end\n | ^\n81 |\n82 | # @brief Predicate checking if the instance is valid.\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:84:12\n |\n82 | # @brief Predicate checking if the instance is valid.\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n | ^\n85 | !@name.nil? && !@name.empty?\n86 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:84:13\n |\n82 | # @brief Predicate checking if the instance is valid.\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n | ^\n85 | !@name.nil? && !@name.empty?\n86 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:85:1\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^^^^\n86 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:85:5\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Expected `)`, found `@`\n --> tests/fixtures/fixture_ruby.rb:85:6\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:85:15\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:85:17\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:85:18\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:85:20\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:85:32\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:85:33\n |\n83 | # @return [Boolean] True if name is non-empty.\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n | ^\n86 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:86:3\n |\n84 | def valid?\n85 | !@name.nil? && !@name.empty?\n86 | end\n | ^\n87 |\n88 | # @brief Check if name matches a pattern.\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:91:14\n |\n89 | # @param pattern [Regexp] Regular expression to test against.\n90 | # @return [Boolean] True if name matches the pattern.\n91 | def matches?(pattern)\n | ^\n92 | return false if @name.nil?\n93 | pattern.match?(@name)\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:91:15\n |\n89 | # @param pattern [Regexp] Regular expression to test against.\n90 | # @return [Boolean] True if name matches the pattern.\n91 | def matches?(pattern)\n | ^\n92 | return false if @name.nil?\n93 | pattern.match?(@name)\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:92:1\n |\n90 | # @return [Boolean] True if name matches the pattern.\n91 | def matches?(pattern)\n92 | return false if @name.nil?\n | ^^^^\n93 | pattern.match?(@name)\n94 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:92:21\n |\n90 | # @return [Boolean] True if name matches the pattern.\n91 | def matches?(pattern)\n92 | return false if @name.nil?\n | ^\n93 | pattern.match?(@name)\n94 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:92:30\n |\n90 | # @return [Boolean] True if name matches the pattern.\n91 | def matches?(pattern)\n92 | return false if @name.nil?\n | ^\n93 | pattern.match?(@name)\n94 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:92:31\n |\n90 | # @return [Boolean] True if name matches the pattern.\n91 | def matches?(pattern)\n92 | return false if @name.nil?\n | ^\n93 | pattern.match?(@name)\n94 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:93:18\n |\n91 | def matches?(pattern)\n92 | return false if @name.nil?\n93 | pattern.match?(@name)\n | ^\n94 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:93:20\n |\n91 | def matches?(pattern)\n92 | return false if @name.nil?\n93 | pattern.match?(@name)\n | ^\n94 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:94:3\n |\n92 | return false if @name.nil?\n93 | pattern.match?(@name)\n94 | end\n | ^\n95 |\n96 | # @brief Spaceship operator for Comparable mixin.\n |\n\ninvalid-syntax: Expected an identifier\n --> tests/fixtures/fixture_ruby.rb:99:7\n |\n 97 | # @param other [MyClass] Instance to compare with.\n 98 | # @return [Integer] -1, 0, or 1 based on name comparison.\n 99 | def <=>(other)\n | ^^\n100 | @name <=> other.name\n101 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:99:9\n |\n 97 | # @param other [MyClass] Instance to compare with.\n 98 | # @return [Integer] -1, 0, or 1 based on name comparison.\n 99 | def <=>(other)\n | ^\n100 | @name <=> other.name\n101 | end\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:99:10\n |\n 97 | # @param other [MyClass] Instance to compare with.\n 98 | # @return [Integer] -1, 0, or 1 based on name comparison.\n 99 | def <=>(other)\n | ^\n100 | @name <=> other.name\n101 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:100:1\n |\n 98 | # @return [Integer] -1, 0, or 1 based on name comparison.\n 99 | def <=>(other)\n100 | @name <=> other.name\n | ^^^^\n101 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:100:13\n |\n 98 | # @return [Integer] -1, 0, or 1 based on name comparison.\n 99 | def <=>(other)\n100 | @name <=> other.name\n | ^\n101 | end\n |\n\ninvalid-syntax: Expected class, function definition or async function definition after decorator\n --> tests/fixtures/fixture_ruby.rb:101:3\n |\n 99 | def <=>(other)\n100 | @name <=> other.name\n101 | end\n | ^\n102 |\n103 | # @brief Concatenate two instances into a new one.\n |\n\ninvalid-syntax: Expected an identifier\n --> tests/fixtures/fixture_ruby.rb:106:7\n |\n104 | # @param other [MyClass] Instance to merge with.\n105 | # @return [MyClass] New instance with combined name.\n106 | def +(other)\n | ^\n107 | self.class.new(\"#{@name}+#{other.name}\")\n108 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:107:1\n |\n105 | # @return [MyClass] New instance with combined name.\n106 | def +(other)\n107 | self.class.new(\"#{@name}+#{other.name}\")\n | ^^^^\n108 | end\n |\n\ninvalid-syntax: Expected an identifier, but found a keyword `class` that cannot be used here\n --> tests/fixtures/fixture_ruby.rb:107:10\n |\n105 | # @return [MyClass] New instance with combined name.\n106 | def +(other)\n107 | self.class.new(\"#{@name}+#{other.name}\")\n | ^^^^^\n108 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:108:3\n |\n106 | def +(other)\n107 | self.class.new(\"#{@name}+#{other.name}\")\n108 | end\n | ^\n109 |\n110 | # @brief Convert to string representation.\n |\n\ninvalid-syntax: Expected `(`, found newline\n --> tests/fixtures/fixture_ruby.rb:112:11\n |\n110 | # @brief Convert to string representation.\n111 | # @return [String] Human-readable description.\n112 | def to_s\n | ^\n113 | \"MyClass(#{@name})\"\n114 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:113:1\n |\n111 | # @return [String] Human-readable description.\n112 | def to_s\n113 | \"MyClass(#{@name})\"\n | ^^^^\n114 | end\n |\n\ninvalid-syntax: Expected `)`, found string\n --> tests/fixtures/fixture_ruby.rb:113:5\n |\n111 | # @return [String] Human-readable description.\n112 | def to_s\n113 | \"MyClass(#{@name})\"\n | ^^^^^^^^^^^^^^^^^^^\n114 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:114:3\n |\n112 | def to_s\n113 | \"MyClass(#{@name})\"\n114 | end\n | ^\n115 |\n116 | # @brief Handle undefined method calls dynamically.\n |\n\ninvalid-syntax: Expected `,`, found `&`\n --> tests/fixtures/fixture_ruby.rb:121:37\n |\n119 | # @return [String] Description of the missing method.\n120 | # @raise [NoMethodError] If method doesn't start with 'find_by_'.\n121 | def method_missing(method, *args, &block)\n | ^\n122 | if method.to_s.start_with?('find_by_')\n123 | field = method.to_s.sub('find_by_', '')\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:121:44\n |\n119 | # @return [String] Description of the missing method.\n120 | # @raise [NoMethodError] If method doesn't start with 'find_by_'.\n121 | def method_missing(method, *args, &block)\n | ^\n122 | if method.to_s.start_with?('find_by_')\n123 | field = method.to_s.sub('find_by_', '')\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:122:30\n |\n120 | # @raise [NoMethodError] If method doesn't start with 'find_by_'.\n121 | def method_missing(method, *args, &block)\n122 | if method.to_s.start_with?('find_by_')\n | ^\n123 | field = method.to_s.sub('find_by_', '')\n124 | \"Finding by #{field}: #{args.first}\"\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:123:1\n |\n121 | def method_missing(method, *args, &block)\n122 | if method.to_s.start_with?('find_by_')\n123 | field = method.to_s.sub('find_by_', '')\n | ^^^^^^\n124 | \"Finding by #{field}: #{args.first}\"\n125 | else\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:125:5\n |\n123 | field = method.to_s.sub('find_by_', '')\n124 | \"Finding by #{field}: #{args.first}\"\n125 | else\n | ^^^^\n126 | super\n127 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:125:9\n |\n123 | field = method.to_s.sub('find_by_', '')\n124 | \"Finding by #{field}: #{args.first}\"\n125 | else\n | ^\n126 | super\n127 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:126:1\n |\n124 | \"Finding by #{field}: #{args.first}\"\n125 | else\n126 | super\n | ^^^^^^\n127 | end\n128 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:127:5\n |\n125 | else\n126 | super\n127 | end\n | ^\n128 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:128:3\n |\n126 | super\n127 | end\n128 | end\n | ^\n129 |\n130 | # @brief Declare which dynamic methods respond_to? should recognize.\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:134:25\n |\n132 | # @param include_private [Boolean] Whether to include private methods.\n133 | # @return [Boolean] True if the method is handled dynamically.\n134 | def respond_to_missing?(method, include_private = false)\n | ^\n135 | method.to_s.start_with?('find_by_') || super\n136 | end\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:134:26\n |\n132 | # @param include_private [Boolean] Whether to include private methods.\n133 | # @return [Boolean] True if the method is handled dynamically.\n134 | def respond_to_missing?(method, include_private = false)\n | ^\n135 | method.to_s.start_with?('find_by_') || super\n136 | end\n |\n\ninvalid-syntax: Expected `,`, found `=`\n --> tests/fixtures/fixture_ruby.rb:134:51\n |\n132 | # @param include_private [Boolean] Whether to include private methods.\n133 | # @return [Boolean] True if the method is handled dynamically.\n134 | def respond_to_missing?(method, include_private = false)\n | ^\n135 | method.to_s.start_with?('find_by_') || super\n136 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:135:1\n |\n133 | # @return [Boolean] True if the method is handled dynamically.\n134 | def respond_to_missing?(method, include_private = false)\n135 | method.to_s.start_with?('find_by_') || super\n | ^^^^\n136 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:135:27\n |\n133 | # @return [Boolean] True if the method is handled dynamically.\n134 | def respond_to_missing?(method, include_private = false)\n135 | method.to_s.start_with?('find_by_') || super\n | ^\n136 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:135:42\n |\n133 | # @return [Boolean] True if the method is handled dynamically.\n134 | def respond_to_missing?(method, include_private = false)\n135 | method.to_s.start_with?('find_by_') || super\n | ^\n136 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:136:3\n |\n134 | def respond_to_missing?(method, include_private = false)\n135 | method.to_s.start_with?('find_by_') || super\n136 | end\n | ^\n137 |\n138 | protected\n |\n\ninvalid-syntax: Expected `(`, found newline\n --> tests/fixtures/fixture_ruby.rb:142:22\n |\n140 | # @brief Protected helper for internal computations.\n141 | # @return [Hash] Current options hash.\n142 | def internal_config\n | ^\n143 | @options.dup\n144 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:143:1\n |\n141 | # @return [Hash] Current options hash.\n142 | def internal_config\n143 | @options.dup\n | ^^^^\n144 | end\n |\n\ninvalid-syntax: Expected `)`, found `@`\n --> tests/fixtures/fixture_ruby.rb:143:5\n |\n141 | # @return [Hash] Current options hash.\n142 | def internal_config\n143 | @options.dup\n | ^\n144 | end\n |\n\ninvalid-syntax: Expected class, function definition or async function definition after decorator\n --> tests/fixtures/fixture_ruby.rb:144:3\n |\n142 | def internal_config\n143 | @options.dup\n144 | end\n | ^\n145 |\n146 | private\n |\n\ninvalid-syntax: Expected `(`, found `!`\n --> tests/fixtures/fixture_ruby.rb:150:15\n |\n148 | # @brief Private validation running before save.\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n | ^\n151 | raise \"Invalid name\" unless valid?\n152 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:150:16\n |\n148 | # @brief Private validation running before save.\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n | ^\n151 | raise \"Invalid name\" unless valid?\n152 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:151:1\n |\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n151 | raise \"Invalid name\" unless valid?\n | ^^^^\n152 | end\n153 | end\n |\n\ninvalid-syntax: Expected `)`, found `raise`\n --> tests/fixtures/fixture_ruby.rb:151:5\n |\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n151 | raise \"Invalid name\" unless valid?\n | ^^^^^\n152 | end\n153 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:151:26\n |\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n151 | raise \"Invalid name\" unless valid?\n | ^^^^^^\n152 | end\n153 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:151:33\n |\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n151 | raise \"Invalid name\" unless valid?\n | ^^^^^\n152 | end\n153 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:151:38\n |\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n151 | raise \"Invalid name\" unless valid?\n | ^\n152 | end\n153 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:151:39\n |\n149 | # @raise [RuntimeError] If validation fails.\n150 | def validate!\n151 | raise \"Invalid name\" unless valid?\n | ^\n152 | end\n153 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:152:3\n |\n150 | def validate!\n151 | raise \"Invalid name\" unless valid?\n152 | end\n | ^\n153 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:153:1\n |\n151 | raise \"Invalid name\" unless valid?\n152 | end\n153 | end\n | ^\n154 |\n155 | # ── Subclass demonstrating inheritance ─────────────────────────────────\n |\n\ninvalid-syntax: Expected `:`, found `<`\n --> tests/fixtures/fixture_ruby.rb:160:20\n |\n158 | # @extends MyClass\n159 | # @brief Specialized subclass with additional behavior.\n160 | class SpecialClass < MyClass\n | ^\n161 | # @brief Initialize with a priority level.\n162 | # @param name [String] Instance name.\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:164:1\n |\n162 | # @param name [String] Instance name.\n163 | # @param priority [Integer] Processing priority (lower = first).\n164 | def initialize(name, priority: 0, **options)\n | ^^\n165 | super(name, **options)\n166 | @priority = priority\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:164:47\n |\n162 | # @param name [String] Instance name.\n163 | # @param priority [Integer] Processing priority (lower = first).\n164 | def initialize(name, priority: 0, **options)\n | ^\n165 | super(name, **options)\n166 | @priority = priority\n |\n\ninvalid-syntax: Expected newline, found `=`\n --> tests/fixtures/fixture_ruby.rb:166:15\n |\n164 | def initialize(name, priority: 0, **options)\n165 | super(name, **options)\n166 | @priority = priority\n | ^\n167 | end\n |\n\ninvalid-syntax: Expected `(`, found newline\n --> tests/fixtures/fixture_ruby.rb:171:11\n |\n169 | # @brief Override to_s with priority information.\n170 | # @return [String] Description including priority.\n171 | def to_s\n | ^\n172 | \"SpecialClass(#{@name}, pri=#{@priority})\"\n173 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:172:1\n |\n170 | # @return [String] Description including priority.\n171 | def to_s\n172 | \"SpecialClass(#{@name}, pri=#{@priority})\"\n | ^^^^\n173 | end\n174 | end\n |\n\ninvalid-syntax: Expected `)`, found string\n --> tests/fixtures/fixture_ruby.rb:172:5\n |\n170 | # @return [String] Description including priority.\n171 | def to_s\n172 | \"SpecialClass(#{@name}, pri=#{@priority})\"\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n173 | end\n174 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:173:3\n |\n171 | def to_s\n172 | \"SpecialClass(#{@name}, pri=#{@priority})\"\n173 | end\n | ^\n174 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:174:1\n |\n172 | \"SpecialClass(#{@name}, pri=#{@priority})\"\n173 | end\n174 | end\n | ^\n175 |\n176 | # ── Module with mixins ─────────────────────────────────────────────────\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:180:8\n |\n178 | # @module MyModule\n179 | # @brief Utility module providing helper methods.\n180 | module MyModule\n | ^^^^^^^^\n181 | # @brief Module-level helper returning a boolean.\n182 | # @return [Boolean] Always returns true.\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:183:1\n |\n181 | # @brief Module-level helper returning a boolean.\n182 | # @return [Boolean] Always returns true.\n183 | def helper\n | ^^\n184 | true\n185 | end\n |\n\ninvalid-syntax: Expected `(`, found newline\n --> tests/fixtures/fixture_ruby.rb:183:13\n |\n181 | # @brief Module-level helper returning a boolean.\n182 | # @return [Boolean] Always returns true.\n183 | def helper\n | ^\n184 | true\n185 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:184:1\n |\n182 | # @return [Boolean] Always returns true.\n183 | def helper\n184 | true\n | ^^^^\n185 | end\n |\n\ninvalid-syntax: Expected `,`, found newline\n --> tests/fixtures/fixture_ruby.rb:184:9\n |\n182 | # @return [Boolean] Always returns true.\n183 | def helper\n184 | true\n | ^\n185 | end\n |\n\ninvalid-syntax: Expected `,`, found dedent\n --> tests/fixtures/fixture_ruby.rb:185:3\n |\n183 | def helper\n184 | true\n185 | end\n | ^\n186 |\n187 | # @brief Process data with block yield pattern.\n |\n\ninvalid-syntax: Expected `,`, found newline\n --> tests/fixtures/fixture_ruby.rb:185:6\n |\n183 | def helper\n184 | true\n185 | end\n | ^\n186 |\n187 | # @brief Process data with block yield pattern.\n |\n\ninvalid-syntax: Expected `)`, found `def`\n --> tests/fixtures/fixture_ruby.rb:191:3\n |\n189 | # @yield [Object] Yields data for caller-defined processing.\n190 | # @return [Object] The block's return value or data itself.\n191 | def process_with_block(data)\n | ^^^\n192 | if block_given?\n193 | yield(data)\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:191:31\n |\n189 | # @yield [Object] Yields data for caller-defined processing.\n190 | # @return [Object] The block's return value or data itself.\n191 | def process_with_block(data)\n | ^\n192 | if block_given?\n193 | yield(data)\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:192:19\n |\n190 | # @return [Object] The block's return value or data itself.\n191 | def process_with_block(data)\n192 | if block_given?\n | ^\n193 | yield(data)\n194 | else\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:192:20\n |\n190 | # @return [Object] The block's return value or data itself.\n191 | def process_with_block(data)\n192 | if block_given?\n | ^\n193 | yield(data)\n194 | else\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:193:1\n |\n191 | def process_with_block(data)\n192 | if block_given?\n193 | yield(data)\n | ^^^^^^\n194 | else\n195 | data\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:194:5\n |\n192 | if block_given?\n193 | yield(data)\n194 | else\n | ^^^^\n195 | data\n196 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:194:9\n |\n192 | if block_given?\n193 | yield(data)\n194 | else\n | ^\n195 | data\n196 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:195:1\n |\n193 | yield(data)\n194 | else\n195 | data\n | ^^^^^^\n196 | end\n197 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:196:5\n |\n194 | else\n195 | data\n196 | end\n | ^\n197 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:197:3\n |\n195 | data\n196 | end\n197 | end\n | ^\n198 |\n199 | # ── Module function ──────────────────────────────────────────────────\n |\n\ninvalid-syntax: Expected `(`, found `.`\n --> tests/fixtures/fixture_ruby.rb:204:11\n |\n202 | # @param items [Array] Items to format.\n203 | # @return [String] Comma-separated formatted string.\n204 | def self.format_list(items)\n | ^\n205 | items.map(&:to_s).join(', ')\n206 | end\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:204:23\n |\n202 | # @param items [Array] Items to format.\n203 | # @return [String] Comma-separated formatted string.\n204 | def self.format_list(items)\n | ^\n205 | items.map(&:to_s).join(', ')\n206 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:205:1\n |\n203 | # @return [String] Comma-separated formatted string.\n204 | def self.format_list(items)\n205 | items.map(&:to_s).join(', ')\n | ^^^^\n206 | end\n207 | end\n |\n\ninvalid-syntax: Expected an expression or a ')'\n --> tests/fixtures/fixture_ruby.rb:205:15\n |\n203 | # @return [String] Comma-separated formatted string.\n204 | def self.format_list(items)\n205 | items.map(&:to_s).join(', ')\n | ^\n206 | end\n207 | end\n |\n\ninvalid-syntax: Expected an expression or a ')'\n --> tests/fixtures/fixture_ruby.rb:205:16\n |\n203 | # @return [String] Comma-separated formatted string.\n204 | def self.format_list(items)\n205 | items.map(&:to_s).join(', ')\n | ^\n206 | end\n207 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:206:3\n |\n204 | def self.format_list(items)\n205 | items.map(&:to_s).join(', ')\n206 | end\n | ^\n207 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:207:1\n |\n205 | items.map(&:to_s).join(', ')\n206 | end\n207 | end\n | ^\n208 |\n209 | # ── Struct-based class ─────────────────────────────────────────────────\n |\n\ninvalid-syntax: Expected an expression or a ')'\n --> tests/fixtures/fixture_ruby.rb:213:25\n |\n211 | # @class Coordinate\n212 | # @brief Struct-based value object for 2D coordinates.\n213 | Coordinate = Struct.new(:x, :y) do\n | ^\n214 | # @brief Compute the Euclidean distance from origin.\n215 | # @return [Float] Distance from (0, 0).\n |\n\ninvalid-syntax: Expected `,`, found `:`\n --> tests/fixtures/fixture_ruby.rb:213:29\n |\n211 | # @class Coordinate\n212 | # @brief Struct-based value object for 2D coordinates.\n213 | Coordinate = Struct.new(:x, :y) do\n | ^\n214 | # @brief Compute the Euclidean distance from origin.\n215 | # @return [Float] Distance from (0, 0).\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:213:33\n |\n211 | # @class Coordinate\n212 | # @brief Struct-based value object for 2D coordinates.\n213 | Coordinate = Struct.new(:x, :y) do\n | ^^\n214 | # @brief Compute the Euclidean distance from origin.\n215 | # @return [Float] Distance from (0, 0).\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:216:1\n |\n214 | # @brief Compute the Euclidean distance from origin.\n215 | # @return [Float] Distance from (0, 0).\n216 | def distance_from_origin\n | ^^\n217 | Math.sqrt(x**2 + y**2)\n218 | end\n |\n\ninvalid-syntax: Expected `(`, found newline\n --> tests/fixtures/fixture_ruby.rb:216:27\n |\n214 | # @brief Compute the Euclidean distance from origin.\n215 | # @return [Float] Distance from (0, 0).\n216 | def distance_from_origin\n | ^\n217 | Math.sqrt(x**2 + y**2)\n218 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:217:1\n |\n215 | # @return [Float] Distance from (0, 0).\n216 | def distance_from_origin\n217 | Math.sqrt(x**2 + y**2)\n | ^^^^\n218 | end\n219 | end\n |\n\ninvalid-syntax: Expected `,`, found `.`\n --> tests/fixtures/fixture_ruby.rb:217:9\n |\n215 | # @return [Float] Distance from (0, 0).\n216 | def distance_from_origin\n217 | Math.sqrt(x**2 + y**2)\n | ^\n218 | end\n219 | end\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:217:14\n |\n215 | # @return [Float] Distance from (0, 0).\n216 | def distance_from_origin\n217 | Math.sqrt(x**2 + y**2)\n | ^\n218 | end\n219 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:218:3\n |\n216 | def distance_from_origin\n217 | Math.sqrt(x**2 + y**2)\n218 | end\n | ^\n219 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:219:1\n |\n217 | Math.sqrt(x**2 + y**2)\n218 | end\n219 | end\n | ^\n220 |\n221 | # ── Dynamic method definition ─────────────────────────────────────────\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:225:19\n |\n223 | # @class DynamicModel\n224 | # @brief Demonstrates metaprogramming with define_method.\n225 | class DynamicModel\n | ^\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:227:3\n |\n225 | class DynamicModel\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n | ^\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n |\n\ninvalid-syntax: Expected `:`, found name\n --> tests/fixtures/fixture_ruby.rb:227:12\n |\n225 | class DynamicModel\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n | ^^^^\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n |\n\ninvalid-syntax: Expected `]`, found name\n --> tests/fixtures/fixture_ruby.rb:227:17\n |\n225 | class DynamicModel\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n | ^^^^^^\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:227:23\n |\n225 | class DynamicModel\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n | ^\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:227:24\n |\n225 | class DynamicModel\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n | ^\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:227:30\n |\n225 | class DynamicModel\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n | ^^\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:227:40\n |\n225 | class DynamicModel\n226 | # Generate getter/setter pairs for each field\n227 | %w[title body author].each do |field|\n | ^\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:229:1\n |\n227 | %w[title body author].each do |field|\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n | ^^^^\n230 | instance_variable_get(\"@#{field}\")\n231 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:229:26\n |\n227 | %w[title body author].each do |field|\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n | ^^\n230 | instance_variable_get(\"@#{field}\")\n231 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:230:1\n |\n228 | # @brief Dynamically defined getter for #{field}.\n229 | define_method(field) do\n230 | instance_variable_get(\"@#{field}\")\n | ^^^^^^\n231 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:234:32\n |\n233 | # @brief Dynamically defined setter for #{field}.\n234 | define_method(\"#{field}=\") do |value|\n | ^^\n235 | instance_variable_set(\"@#{field}\", value)\n236 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:234:42\n |\n233 | # @brief Dynamically defined setter for #{field}.\n234 | define_method(\"#{field}=\") do |value|\n | ^\n235 | instance_variable_set(\"@#{field}\", value)\n236 | end\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:235:1\n |\n233 | # @brief Dynamically defined setter for #{field}.\n234 | define_method(\"#{field}=\") do |value|\n235 | instance_variable_set(\"@#{field}\", value)\n | ^^^^^^\n236 | end\n237 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:236:5\n |\n234 | define_method(\"#{field}=\") do |value|\n235 | instance_variable_set(\"@#{field}\", value)\n236 | end\n | ^\n237 | end\n238 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:237:3\n |\n235 | instance_variable_set(\"@#{field}\", value)\n236 | end\n237 | end\n | ^\n238 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:238:1\n |\n236 | end\n237 | end\n238 | end\n | ^\n239 |\n240 | # ── Proc and Lambda ───────────────────────────────────────────────────\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:243:11\n |\n242 | # @brief Lambda for doubling a numeric value.\n243 | doubler = ->(x) { x * 2 }\n | ^^\n244 |\n245 | # @brief Proc for formatting a greeting string.\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:243:17\n |\n242 | # @brief Lambda for doubling a numeric value.\n243 | doubler = ->(x) { x * 2 }\n | ^\n244 |\n245 | # @brief Proc for formatting a greeting string.\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:246:26\n |\n245 | # @brief Proc for formatting a greeting string.\n246 | greeting_proc = Proc.new { |name| \"Hello, #{name}!\" }\n | ^\n247 |\n248 | # ── Error handling ────────────────────────────────────────────────────\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:246:28\n |\n245 | # @brief Proc for formatting a greeting string.\n246 | greeting_proc = Proc.new { |name| \"Hello, #{name}!\" }\n | ^\n247 |\n248 | # ── Error handling ────────────────────────────────────────────────────\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:255:38\n |\n253 | # @return [Object] The block's return value on success.\n254 | # @raise [RuntimeError] If all attempts fail.\n255 | def with_retry(attempts: MAX_RETRIES)\n | ^\n256 | tries = 0\n257 | begin\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:258:1\n |\n256 | tries = 0\n257 | begin\n258 | tries += 1\n | ^^^^\n259 | yield\n260 | rescue StandardError => e\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:260:10\n |\n258 | tries += 1\n259 | yield\n260 | rescue StandardError => e\n | ^^^^^^^^^^^^^\n261 | # Retry if attempts remain\n262 | retry if tries < attempts\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:260:25\n |\n258 | tries += 1\n259 | yield\n260 | rescue StandardError => e\n | ^\n261 | # Retry if attempts remain\n262 | retry if tries < attempts\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:262:1\n |\n260 | rescue StandardError => e\n261 | # Retry if attempts remain\n262 | retry if tries < attempts\n | ^^^^\n263 | raise \"Failed after #{attempts} attempts: #{e.message}\"\n264 | ensure\n |\n\ninvalid-syntax: Expected `else`, found newline\n --> tests/fixtures/fixture_ruby.rb:262:30\n |\n260 | rescue StandardError => e\n261 | # Retry if attempts remain\n262 | retry if tries < attempts\n | ^\n263 | raise \"Failed after #{attempts} attempts: #{e.message}\"\n264 | ensure\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:264:3\n |\n262 | retry if tries < attempts\n263 | raise \"Failed after #{attempts} attempts: #{e.message}\"\n264 | ensure\n | ^\n265 | # Cleanup runs regardless of outcome\n266 | puts \"Completed after #{tries} attempt(s)\"\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:266:1\n |\n264 | ensure\n265 | # Cleanup runs regardless of outcome\n266 | puts \"Completed after #{tries} attempt(s)\"\n | ^^^^\n267 | end\n268 | end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:266:10\n |\n264 | ensure\n265 | # Cleanup runs regardless of outcome\n266 | puts \"Completed after #{tries} attempt(s)\"\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n267 | end\n268 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:267:3\n |\n265 | # Cleanup runs regardless of outcome\n266 | puts \"Completed after #{tries} attempt(s)\"\n267 | end\n | ^\n268 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:268:1\n |\n266 | puts \"Completed after #{tries} attempt(s)\"\n267 | end\n268 | end\n | ^\n269 |\n270 | # ── Refinement ────────────────────────────────────────────────────────\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:274:8\n |\n272 | # @module StringExtensions\n273 | # @brief Refinement adding utility methods to String.\n274 | module StringExtensions\n | ^^^^^^^^^^^^^^^^\n275 | refine String do\n276 | # @brief Check if the string is a valid email address.\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:275:1\n |\n273 | # @brief Refinement adding utility methods to String.\n274 | module StringExtensions\n275 | refine String do\n | ^^\n276 | # @brief Check if the string is a valid email address.\n277 | # @return [Boolean] True if string matches email pattern.\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:275:10\n |\n273 | # @brief Refinement adding utility methods to String.\n274 | module StringExtensions\n275 | refine String do\n | ^^^^^^\n276 | # @brief Check if the string is a valid email address.\n277 | # @return [Boolean] True if string matches email pattern.\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:275:17\n |\n273 | # @brief Refinement adding utility methods to String.\n274 | module StringExtensions\n275 | refine String do\n | ^^\n276 | # @brief Check if the string is a valid email address.\n277 | # @return [Boolean] True if string matches email pattern.\n |\n\ninvalid-syntax: Unexpected indentation\n --> tests/fixtures/fixture_ruby.rb:278:1\n |\n276 | # @brief Check if the string is a valid email address.\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n | ^^^^\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n280 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:278:14\n |\n276 | # @brief Check if the string is a valid email address.\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n | ^\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n280 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:278:15\n |\n276 | # @brief Check if the string is a valid email address.\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n | ^\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n280 | end\n |\n\ninvalid-syntax: Expected a parameter or the end of the parameter list\n --> tests/fixtures/fixture_ruby.rb:279:1\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^^^^^^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Got unexpected token ?\n --> tests/fixtures/fixture_ruby.rb:279:12\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected `)`, found `(`\n --> tests/fixtures/fixture_ruby.rb:279:13\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:279:14\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:15\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:18\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:21\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:279:23\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected an identifier\n --> tests/fixtures/fixture_ruby.rb:279:24\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:279:26\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:31\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:33\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:279:35\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:38\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:279:39\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:44\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:46\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:279:48\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected an expression\n --> tests/fixtures/fixture_ruby.rb:279:50\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:52\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:279:53\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a newline after line continuation character\n --> tests/fixtures/fixture_ruby.rb:279:60\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:279:64\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:279:65\n |\n277 | # @return [Boolean] True if string matches email pattern.\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n | ^\n280 | end\n281 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:280:5\n |\n278 | def email?\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n280 | end\n | ^\n281 | end\n282 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:281:3\n |\n279 | match?(/\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i)\n280 | end\n281 | end\n | ^\n282 | end\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:282:1\n |\n280 | end\n281 | end\n282 | end\n | ^\n283 |\n284 | =begin\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:284:1\n |\n282 | end\n283 |\n284 | =begin\n | ^\n285 | coverage extension block\n286 | =end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:285:10\n |\n284 | =begin\n285 | coverage extension block\n | ^^^^^^^^^\n286 | =end\n287 | class ServiceObject; end # inline class comment\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:285:20\n |\n284 | =begin\n285 | coverage extension block\n | ^^^^^\n286 | =end\n287 | class ServiceObject; end # inline class comment\n |\n\ninvalid-syntax: Expected a statement\n --> tests/fixtures/fixture_ruby.rb:286:1\n |\n284 | =begin\n285 | coverage extension block\n286 | =end\n | ^\n287 | class ServiceObject; end # inline class comment\n288 | class ReportBuilder; end\n |\n\ninvalid-syntax: Expected `:`, found `;`\n --> tests/fixtures/fixture_ruby.rb:287:20\n |\n285 | coverage extension block\n286 | =end\n287 | class ServiceObject; end # inline class comment\n | ^\n288 | class ReportBuilder; end\n289 | module Metrics; end\n |\n\nE702 Multiple statements on one line (semicolon)\n --> tests/fixtures/fixture_ruby.rb:287:20\n |\n285 | coverage extension block\n286 | =end\n287 | class ServiceObject; end # inline class comment\n | ^\n288 | class ReportBuilder; end\n289 | module Metrics; end\n |\n\ninvalid-syntax: Expected `:`, found `;`\n --> tests/fixtures/fixture_ruby.rb:288:20\n |\n286 | =end\n287 | class ServiceObject; end # inline class comment\n288 | class ReportBuilder; end\n | ^\n289 | module Metrics; end\n290 | module Extras; end\n |\n\nE702 Multiple statements on one line (semicolon)\n --> tests/fixtures/fixture_ruby.rb:288:20\n |\n286 | =end\n287 | class ServiceObject; end # inline class comment\n288 | class ReportBuilder; end\n | ^\n289 | module Metrics; end\n290 | module Extras; end\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:289:8\n |\n287 | class ServiceObject; end # inline class comment\n288 | class ReportBuilder; end\n289 | module Metrics; end\n | ^^^^^^^\n290 | module Extras; end\n291 | MAX_LIMIT = 100\n |\n\nE702 Multiple statements on one line (semicolon)\n --> tests/fixtures/fixture_ruby.rb:289:15\n |\n287 | class ServiceObject; end # inline class comment\n288 | class ReportBuilder; end\n289 | module Metrics; end\n | ^\n290 | module Extras; end\n291 | MAX_LIMIT = 100\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:290:8\n |\n288 | class ReportBuilder; end\n289 | module Metrics; end\n290 | module Extras; end\n | ^^^^^^\n291 | MAX_LIMIT = 100\n292 | API_VERSION = \"v2\"\n |\n\nE702 Multiple statements on one line (semicolon)\n --> tests/fixtures/fixture_ruby.rb:290:14\n |\n288 | class ReportBuilder; end\n289 | module Metrics; end\n290 | module Extras; end\n | ^\n291 | MAX_LIMIT = 100\n292 | API_VERSION = \"v2\"\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:296:9\n |\n294 | attr_writer :token\n295 | attr_reader :state\n296 | require 'yaml'\n | ^^^^^^\n297 | require 'logger'\n |\n\ninvalid-syntax: Simple statements must be separated by newlines or semicolons\n --> tests/fixtures/fixture_ruby.rb:297:9\n |\n295 | attr_reader :state\n296 | require 'yaml'\n297 | require 'logger'\n | ^^^^^^^^\n298 |\n299 | # REQ-COVER-SRS-231 START\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:305:28\n |\n303 | # @param value Input value for helper construct 1.\n304 | # @return Output value for helper construct 1.\n305 | def req_cover_ruby_1(value)\n | ^\n306 | value + 1\n307 | end\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:314:28\n |\n312 | # @param value Input value for helper construct 2.\n313 | # @return Output value for helper construct 2.\n314 | def req_cover_ruby_2(value)\n | ^\n315 | value + 2\n316 | end\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:323:28\n |\n321 | # @param value Input value for helper construct 3.\n322 | # @return Output value for helper construct 3.\n323 | def req_cover_ruby_3(value)\n | ^\n324 | value + 3\n325 | end\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:332:28\n |\n330 | # @param value Input value for helper construct 4.\n331 | # @return Output value for helper construct 4.\n332 | def req_cover_ruby_4(value)\n | ^\n333 | value + 4\n334 | end\n |\n\ninvalid-syntax: Expected `:`, found newline\n --> tests/fixtures/fixture_ruby.rb:341:28\n |\n339 | # @param value Input value for helper construct 5.\n340 | # @return Output value for helper construct 5.\n341 | def req_cover_ruby_5(value)\n | ^\n342 | value + 5\n343 | end\n |\n\nFound 228 errors.\n\n",
|
|
4
|
+
"stderr": ""
|
|
5
|
+
}
|