Variable: bazel--magic-comment-regexp

bazel--magic-comment-regexp is a variable defined in bazel.el.

Value

"keep sorted\\|do not sort\\|@unused\\|@unsorted-dict-items\\|buildifier: leave-alone\\|\\(?:build\\(?:\\(?:ifi\\|oz\\)er\\)\\): disable=[A-Za-z-]+"

Documentation

Regular expression identifying magic comments known to Buildifier.

Many of these are documented at URL https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md.

The magic comments "keep sorted", "do not sort", and
"buildifier: leave-alone" don't look to be documented, but are
mentioned in the Buildifier source code at URL https://git.io/JOuVL and have tests.

Source Code

;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
;;;; ‘bazel-mode’ and child modes

(defconst bazel--magic-comment-regexp
  (rx (or "keep sorted"
          "do not sort"
          "@unused"
          "@unsorted-dict-items"
          "buildifier: leave-alone"
          (seq (or "buildifier" "buildozer") ": "
               "disable=" (+ (any "A-Za-z-")))))
  "Regular expression identifying magic comments known to Buildifier.

Many of these are documented at
URL `https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md'.

The magic comments \"keep sorted\", \"do not sort\", and
\"buildifier: leave-alone\" don't look to be documented, but are
mentioned in the Buildifier source code at URL
`https://git.io/JOuVL' and have tests.")