daml/compiler/lsp-tests/BUILD.bazel
Shayne Fletcher dcd20ace8a Daml hlint integration (#2115)
* Get draft rule in

* Hlint is now firing

* First hlint unit test

* This gets hlint working in the ide

* Select hlint.yaml contextually. Wip

* Fix prod path

* Switch between prod and test versions of hlint.yaml

* Format

* Ignore hlint hints in the language tests

* Add some debugging stuff. LSP stress test is broken

* Update compiler/damlc/daml-ide-core/src/Development/IDE/Core/Rules/Daml.hs

Co-Authored-By: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Tidy up some details

* Simplify settings (remove unused parseFlags)

* Fix LSP stress tests

* ./fmt.sh

* Collapse to one hlint.yaml, provide options

* Fix location of hlint runfiles

* Disable hlint by default; enable for shake-ide tests

* lint (ironic)

* Remove filtering of lints from integration test

* ./fmt.sh

* Respect the flag

* Silence opininated lint

* Update compiler/damlc/daml-opts/daml-opts-types/DA/Daml/Options/Types.hs

Co-Authored-By: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* Update compiler/damlc/lib/DA/Cli/Damlc.hs

Co-Authored-By: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

* I really did mean optHlintEnable here

* Move hlint enabled check to ofInterest like shouldRunScenarios

* Rename variable

* Cache settings

* Missed a merge conflict

* lift liftIO

* Remove the hlint-testing POC

* use useNoFile_
2019-07-12 16:17:06 +00:00

43 lines
1.1 KiB
Python

# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load("//bazel_tools:haskell.bzl", "da_haskell_binary", "da_haskell_test")
load("@os_info//:os_info.bzl", "is_windows")
da_haskell_test(
name = "lsp-tests",
srcs = glob(["src/**/*.hs"]),
data = [
"//compiler/damlc",
],
# For some reason this test sometimes seems to time out on Windows.
# It hits the Bazel timeout rather than the timeout in lsp-tests
# so it looks like it locks up somehow.
flaky = is_windows,
hazel_deps = [
"aeson",
"base",
"containers",
"extra",
"directory",
"filepath",
"haskell-lsp",
"haskell-lsp-types",
"lens",
"lsp-test",
"mtl",
"network-uri",
"parser-combinators",
"tasty",
"tasty-hunit",
"text",
],
visibility = ["//visibility:public"],
deps = [
"//compiler/damlc/daml-ide-core",
"//compiler/hie-core",
"//libs-haskell/bazel-runfiles",
"//libs-haskell/test-utils",
],
)