From b121a840831e892c82e480f96db4ac045ac86bbe Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 21 Sep 2018 01:31:49 +0200 Subject: [PATCH] Exclude examples from lgtm analysis --- .lgtm.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .lgtm.yml diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 000000000000..b48a4f003db0 --- /dev/null +++ b/.lgtm.yml @@ -0,0 +1,14 @@ +path_classifiers: + examples: + # Exclude example files from analysis by tagging them. + # We intentionally use multiple imports and unused variables in the + # examples to make them more explicit. These generate a lot of alerts. + # Since lgtm does not yet support suppressing selected alerts per + # file, we currently deactivate analysis completely here. May be + # reactivated when we can selectively suppress + # - py/import-and-import-from + # - py/repeated-import + # - py/unused-local-variable + # - py/multiple-definition + - examples + - tutorials