Skip to content

db/structure.sql got skipped #287

@mohammed-bamatraf

Description

@mohammed-bamatraf

In PreCommit::Utils::StagedFiles#filter_files db/structure.sql skipped as it's not a source file nor binary

is this a misconfiguration on my side? or an issue

update

I found the issue in this check, as filesize exceeded 1_000_000

def appears_binary?(filename)
  size = File.size(filename)
  size > 1_000_000 || (size > 20 && binary?(filename))
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions