Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all Auto-Application Errors #1429

Merged

Conversation

olabusayoT
Copy link
Contributor

  • using scalafix
  • used scalafixAll dependency:[email protected]:scala-rewrites:0.1.5
  • fixed some false positives

DAFFODIL-2152

- using scalafix
- used `scalafixAll dependency:[email protected]:scala-rewrites:0.1.5`
- fixed some false positives

DAFFODIL-2152
@olabusayoT olabusayoT force-pushed the daf-2152-fix-all-auto-application branch from 8074e1f to 03f9c3e Compare February 11, 2025 22:45
Copy link
Member

@stevedlawrence stevedlawrence left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@jadams-tresys jadams-tresys left a comment

Choose a reason for hiding this comment

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

+1

Small note about possibly removing a line of code that isn't used anywhere in Daffodil.

@@ -101,7 +101,7 @@ class DFDLDefineVariable private (node: Node, doc: SchemaDocument)
this.SDE("Variables must have primitive type. Type was '%s'.", typeQName.toPrettyString)
)

final def createVariableInstance = variableRuntimeData.createVariableInstance
final def createVariableInstance = variableRuntimeData.createVariableInstance()
Copy link
Contributor

Choose a reason for hiding this comment

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

I was surprised to see that this didn't have test coverage, but sure enough this doesn't get used anywhere and this line can be completely removed. Don't know if we want to do it in this pull request or not though.

Copy link
Member

Choose a reason for hiding this comment

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

I think somewhere else is was commented that we should avoid making changes that aren't related to the 2.13 conversion. Various cleanups and removing dead code probably want to wait until everything is done.

@olabusayoT olabusayoT merged commit 2eb3fe8 into apache:main Feb 12, 2025
12 checks passed
@olabusayoT olabusayoT deleted the daf-2152-fix-all-auto-application branch February 12, 2025 16:17
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.

3 participants