on master help sign in
Enforce consistent formatting of BUILD files. (#412)

* Add buildifier targets. The tool allows to check and format BUILD files in the repo. To check if files are well formatted, run: bazel run //:buildifier To fix badly-formatted files run: bazel run //:buildifier-fix * Cleanup dade-copyright-headers formatting. * Fix dade-copyright-headers on files with just the copyright. * Run buildifier automatically on CI via 'fmt.sh'. * Reformat all BUILD files with buildifier. Excludes autogenerated Bazel files.

commitbbdcbddec80eb38b566db220c054ab5e4da8f281 authorgleber <34243031+gleber-da@users.noreply.github.com> dateFri 12 Apr 2019, 13:10 (8 years ago) parentfffd3dd
1 file changed+34−34
BUILD.bazel+34−34
BUILD.bazel+34−34
@@ -4,38 +4,38 @@
44load("//bazel_tools:haskell.bzl", "da_haskell_library")
55
66da_haskell_library(
7− name = "haskell-ide-core"
8− , srcs = glob(["src/**/*.hs"])
9− , src_strip_prefix = "src"
10− , deps = [
11− "//libs-haskell/prettyprinter-syntax",
12− ]
13− , hazel_deps = [
14− "aeson",
15− "base",
16− "binary",
17− "bytestring",
18− "containers",
19− "deepseq",
20− "directory",
21− "either",
22− "extra",
23− "filepath",
24− "ghc-lib",
25− "ghc-lib-parser",
26− "hashable",
27− "mtl",
28− "pretty",
29− "safe-exceptions",
30− "shake",
31− "stm",
32− "syb",
33− "text",
34− "time",
35− "transformers",
36− "uniplate",
37− "unordered-containers",
38− "uri-encode",
39− ]
40− , visibility = ["//visibility:public"]
7+ name = "haskell-ide-core",
8+ srcs = glob(["src/**/*.hs"]),
9+ hazel_deps = [
10+ "aeson",
11+ "base",
12+ "binary",
13+ "bytestring",
14+ "containers",
15+ "deepseq",
16+ "directory",
17+ "either",
18+ "extra",
19+ "filepath",
20+ "ghc-lib",
21+ "ghc-lib-parser",
22+ "hashable",
23+ "mtl",
24+ "pretty",
25+ "safe-exceptions",
26+ "shake",
27+ "stm",
28+ "syb",
29+ "text",
30+ "time",
31+ "transformers",
32+ "uniplate",
33+ "unordered-containers",
34+ "uri-encode",
35+ ],
36+ src_strip_prefix = "src",
37+ visibility = ["//visibility:public"],
38+ deps = [
39+ "//libs-haskell/prettyprinter-syntax",
40+ ],
4141)