Skip to content

Conversation

@yutaro-sakamoto
Copy link
Contributor

This pull request removes the edit-code-command feature from the codebase. The changes clean up related code, tests, and documentation, simplifying the project by eliminating unused functionality.
This PR improves the code coverage. See #662.

Removal of edit-code-command functionality:

  • cobj/cobj.c: Removed the edit-code-command option from the command-line options and associated variables and logic. (
  • cobj/cobj.h: Deleted the declarations of edit_code_command and edit_code_command_is_set.
  • cobj/codegen.c: Removed the joutput_edit_code_command function and all calls to it, along with related conditional logic.

Test cleanup:

@yutaro-sakamoto yutaro-sakamoto marked this pull request as ready for review June 12, 2025 03:15
@Copilot Copilot AI review requested due to automatic review settings June 12, 2025 03:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request removes the unused --edit-code-command feature, thereby simplifying the codebase. The changes include:

  • Removing the edit-code-command option, its variables, and related logic from the core source files.
  • Deleting the associated test file and updating relevant Makefiles and test harness files.
  • Cleaning up command-line parsing logic and output generation in the code.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/command-line-options.src/edit-code-command.at Deleted test file for the removed edit-code-command feature
tests/command-line-options.at Commented out the inclusion of the edit-code-command test file
tests/Makefile.in Removed the reference to the edit-code-command test file
tests/Makefile.am Removed the reference to the edit-code-command test file
cobj/codegen.c Removed the joutput_edit_code_command function and its call sites; simplified class header generation
cobj/cobj.h Deleted the declarations for edit_code_command and edit_code_command_is_set
cobj/cobj.c Removed command-line case handling and variable declarations for edit-code-command

@yutaro-sakamoto yutaro-sakamoto merged commit 2794a5e into opensourcecobol:develop Jun 12, 2025
139 checks passed
@yutaro-sakamoto yutaro-sakamoto mentioned this pull request Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants