Skip to content

feat!: drop deprecated scan_code parameter - #802

Merged
AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:scan_code
Sep 3, 2026
Merged

feat!: drop deprecated scan_code parameter#802
AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:scan_code

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

this is simplification only, and some new tests which thanksfully pass

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The deprecated API is removed consistently and the replacement path has focused integration coverage.

Pull request overview

Removes the deprecated scan_code API and standardizes source-link generation on code_targets.

Changes:

  • Simplifies bundle source-link handling to one generated JSON target.
  • Removes deprecated API documentation.
  • Adds integration coverage for source links across nested bundles.
File summaries
File Description
docs.bzl Removes scan_code and simplifies source-link targets.
bzl/bundle_rules.bzl Replaces the link list attribute with one optional file.
docs/reference/bazel_macros.rst Updates public macro documentation.
docs/how-to/source_to_doc_links.rst Removes deprecated parameter guidance.
src/extensions/docs/source_code_linker.md Documents code_targets as the supported mechanism.
src/tests/docs_bzl/test_reference_integration.py Tests nested source-link generation and rendering.
src/tests/docs_bzl/scenarios/reference_integration/BUILD Documents the expanded integration scenario.
src/tests/docs_bzl/scenarios/reference_integration/legacy_module/BUILD Scopes legacy module test sources.
src/tests/docs_bzl/scenarios/reference_integration/modern_module/BUILD Scopes modern module test sources.
src/tests/docs_bzl/scenarios/reference_integration/legacy_module/docs/components/component/BUILD Adds legacy component code scanning.
src/tests/docs_bzl/scenarios/reference_integration/modern_module/docs/components/component/BUILD Adds modern component code scanning.
src/tests/docs_bzl/scenarios/reference_integration/legacy_module/docs/components/component/index.rst Adds a legacy traceable requirement.
src/tests/docs_bzl/scenarios/reference_integration/modern_module/docs/components/component/index.rst Adds a modern traceable requirement.
src/tests/docs_bzl/scenarios/reference_integration/legacy_module/docs/components/component/implementation.py Adds legacy traceability fixture code.
src/tests/docs_bzl/scenarios/reference_integration/modern_module/docs/components/component/implementation.py Adds modern traceability fixture code.
Review details
  • Files reviewed: 15/15 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-802: https://eclipse-score.github.io/docs-as-code/pr-802/

project = "S-CORE Modern Module",
project_url = "https://example.invalid/score-modern-module",
source_dir = "docs",
test_sources = ["src/tests/docs_bzl/scenarios/reference_integration"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work as just a folder not a bazel target?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_sources is a list of repo-relative paths. I was not even aware we have test_sources

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked, it has 0 users. Next candidate for removal.

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question but looks simple enough I would say.

@MaximilianSoerenPollak

Copy link
Copy Markdown
Contributor

We need to fix module_template though if we want to merge this as well.

@AlexanderLanin
AlexanderLanin merged commit 22d5d7d into eclipse-score:main Sep 3, 2026
18 of 20 checks passed
@AlexanderLanin
AlexanderLanin deleted the scan_code branch September 3, 2026 18:08
@AlexanderLanin

Copy link
Copy Markdown
Member Author

We need to fix module_template though if we want to merge this as well.

coincidentally already addressed in https://github.com/eclipse-score/module_template/pull/169/changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants