pre-commit icon indicating copy to clipboard operation
pre-commit copied to clipboard

db/structure.sql got skipped

Open mohammed-bamatraf opened this issue 1 year ago • 0 comments

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

mohammed-bamatraf avatar Jan 23 '25 11:01 mohammed-bamatraf