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

Match against files *.sql suffix #354

Closed
ysmilda opened this issue Jan 17, 2023 · 1 comment · Fixed by #355
Closed

Match against files *.sql suffix #354

ysmilda opened this issue Jan 17, 2023 · 1 comment · Fixed by #355

Comments

@ysmilda
Copy link
Contributor

ysmilda commented Jan 17, 2023

Describe the bug
Currently the CLI matches against files ending on the .sql and .sql.jinja suffix. In our product we have various files that are suffixed .{something}.sql, these can currently not be formatted by fmtsql.

To Reproduce
Rename file to have a suffix of .{something}.sql.

Expected behavior
It would be nice if the cli could check against *.sql as a suffix to be able to format these kind of files.

Additional context
sqlfmt, version 0.14.3

@tconbeer
Copy link
Owner

I'm ok with this. Also looks like one of our benchmark projects (http archive) has a bunch of files with extra dots in the filename, like 19_01.type_of_content_encoding.sql.

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 a pull request may close this issue.

2 participants