feat: autodetect buck2 file names#1380
Conversation
This interprets BXL files as bzl, which they basically are. It also interprets BUCK files as BUILD, which they also are. Ref: https://buck2.build/docs/bxl/
|
I dunno how to write a meaningful test for this change. |
|
There is an existing test in Please also add non-trivial combinations such as |
|
Do you want to fix the formatting or the warnings? This change will cause all Bazel-specific warnings (that are normally applied only to BUILD/.bzl files) to be applied to the Buck files as well. If you only want to fix the formatting, then you don't need to do anything to bxl files (all unknown files are formatted as bzl), and create another filetype for BUCK files (maybe call it |
This interprets BXL files as bzl, which they basically are. It also interprets BUCK files as BUILD, which they also are.
Ref: https://buck2.build/docs/bxl/