File: test-bazel.el

package info (click to toggle)
flycheck 36.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,600 kB
  • sloc: lisp: 16,210; python: 718; makefile: 219; cpp: 24; ruby: 23; perl: 21; ada: 17; f90: 16; haskell: 15; javascript: 15; sh: 14; erlang: 14; xml: 14; ansic: 12; php: 9; tcl: 8; fortran: 3; vhdl: 2; awk: 1; sql: 1
file content (47 lines) | stat: -rw-r--r-- 2,611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
;;; test-bazel.el --- Flycheck Specs: Bazel -*- lexical-binding: t; -*-
;;; Code:
(require 'flycheck-buttercup)
(require 'test-helpers)

(describe "Language Bazel"
  (flycheck-buttercup-def-checker-test bazel-build-buildifier bazel error
    (flycheck-buttercup-should-syntax-check
     "language/bazel/BUILD.bazel-error" 'bazel-build-mode
     '(1 11 error "syntax error near !" :checker bazel-build-buildifier)))

  (flycheck-buttercup-def-checker-test bazel-build-buildifier bazel nil
    (flycheck-buttercup-should-syntax-check
     "language/bazel/BUILD.bazel-warning" 'bazel-build-mode
     '(1 nil warning "Variable \"foo\" is unused. Please remove it. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#unused-variable)" :id "unused-variable" :checker bazel-build-buildifier)))

  (flycheck-buttercup-def-checker-test bazel-module-buildifier bazel error
    (flycheck-buttercup-should-syntax-check
     "language/bazel/MODULE.bazel-error" 'bazel-module-mode
     '(1 11 error "syntax error near !" :checker bazel-module-buildifier)))

  (flycheck-buttercup-def-checker-test bazel-module-buildifier bazel nil
    (flycheck-buttercup-should-syntax-check
     "language/bazel/MODULE.bazel-warning" 'bazel-module-mode
     '(1 nil warning "The file has no module docstring." :id "module-docstring" :checker bazel-module-buildifier)))

  (flycheck-buttercup-def-checker-test bazel-starlark-buildifier bazel error
    (flycheck-buttercup-should-syntax-check
     "language/bazel/rules.bzl-error" 'bazel-starlark-mode
     '(1 11 error "syntax error near !" :checker bazel-starlark-buildifier)))

  (flycheck-buttercup-def-checker-test bazel-starlark-buildifier bazel nil
    (flycheck-buttercup-should-syntax-check
     "language/bazel/rules.bzl-warning" 'bazel-starlark-mode
     '(1 nil warning "The file has no module docstring." :id "module-docstring" :checker bazel-starlark-buildifier)))

  (flycheck-buttercup-def-checker-test bazel-workspace-buildifier bazel error
    (flycheck-buttercup-should-syntax-check
     "language/bazel/WORKSPACE.bazel-error" 'bazel-workspace-mode
     '(1 11 error "syntax error near !" :checker bazel-workspace-buildifier)))

  (flycheck-buttercup-def-checker-test bazel-workspace-buildifier bazel nil
    (flycheck-buttercup-should-syntax-check
     "language/bazel/WORKSPACE.bazel-warning" 'bazel-workspace-mode
     '(1 nil warning "Variable \"foo\" is unused. Please remove it. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#unused-variable)" :id "unused-variable" :checker bazel-workspace-buildifier))))

;;; test-bazel.el ends here