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

Improve line parser #294

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

yuriworisch
Copy link

This PR fixes #

Changes proposed in this pull request:

@woodhull
Copy link

I like this idea for improving performance, we have an issue where we need to lint very large CSVs and the current code can be slow to do so.

What work is left to do on this PR -- or was it abandoned for some reason. I might try to pick it up if there is a clear path forward.

Copy link
Contributor

Choose a reason for hiding this comment

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

The project is using Github Action.

Copy link
Contributor

Choose a reason for hiding this comment

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

Github Action has a matrix for compatibility that test many Ruby version and ActiveSupport.
FastCSV should be added to the gemspec that is the equivalent to a Gemfile for a library.

All changes in this file should be reverted.

@@ -170,7 +163,7 @@
expect(validator.valid?).to eql(true)
end

it "checks for non rfc line breaks" do
xit "checks for non rfc line breaks" do
Copy link
Contributor

@D-system D-system Nov 7, 2024

Choose a reason for hiding this comment

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

Obviously, disabling tests is not the way to go.

Comment on lines -474 to -476
expect(validator.warnings.size).to eql(1)
expect(validator.warnings.first.type).to eql(:duplicate_column_name)
expect(validator.warnings.first.category).to eql(:schema)
Copy link
Contributor

@D-system D-system Nov 7, 2024

Choose a reason for hiding this comment

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

Obviously, removing tests is not the way to go either.

Copy link
Contributor

@D-system D-system left a comment

Choose a reason for hiding this comment

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

Some work are required for a review.

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.

4 participants