Skip to content

Remove v1 ForceIgnore implementation#425

Open
kjonescertinia wants to merge 1 commit intomainfrom
remove-forceignore-v1
Open

Remove v1 ForceIgnore implementation#425
kjonescertinia wants to merge 1 commit intomainfrom
remove-forceignore-v1

Conversation

@kjonescertinia
Copy link
Contributor

Summary

  • Removes the legacy v1 ForceIgnore implementation, simplifying the codebase
  • Always uses ForceIgnoreV2 (node-ignore compatible) for .forceignore handling
  • Adds a deprecation warning when forceIgnoreVersion option is set in sfdx-project.json

Changes

Deleted files:

  • ForceIgnore.scala - v1 implementation
  • ForceIgnoreVersion.scala - version enum and switching logic
  • ForceIgnoreTests.scala, IgnoreRuleTest.scala, ForceIgnoreVersionTest.scala - v1-related tests

Modified files:

  • DocumentIndex.scala - uses ForceIgnoreV2 directly (removed interface abstraction)
  • ForceIgnoreV2.scala - removed extends ForceIgnoreInterface
  • SFDXProject.scala - emits deprecation warning when forceIgnoreVersion option is present
  • Layer.scala, Workspace.scala - simplified, removed version parameters
  • DocumentIndexTest.scala, ApexConfigTest.scala - updated tests

Test plan

  • All 2476 existing tests pass
  • New deprecation warning tests verify warning is emitted when forceIgnoreVersion is set
  • No warning emitted when option is absent

Closes #383

🤖 Generated with Claude Code

Simplifies codebase by removing the legacy v1 ForceIgnore implementation
and always using ForceIgnoreV2 (node-ignore compatible).

Changes:
- Delete ForceIgnore.scala (v1 implementation) and ForceIgnoreVersion.scala
- Remove ForceIgnoreInterface trait - use ForceIgnoreV2 directly
- Update DocumentIndex, Layer, Workspace to always use V2
- Add deprecation warning when forceIgnoreVersion option is set in
  sfdx-project.json
- Remove related test files for v1 implementation
- Update tests to verify deprecation warning behavior

Closes #383
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.

Remove 'v1' force ignore handling after next release

1 participant