From 3d7374054ca65edf81e2392dbfd29d7807cb7368 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Wed, 3 Feb 2016 11:21:55 -0500 Subject: [PATCH] Opt some files out of 140 character line length If elasticsearch merges https://github.com/elastic/elasticsearch/pull/16413 then the build will fail catastrophically without this. The goal here is to opt these files out of the line length checks while they don't pass and we can get them passing as time permits and opt them back in. In the mean time all files that pass the line length check will have the check enforced. This also gives you a spot to add x-plugins opt outs for core's checkstyle rules in case you have generated files or something like that. Original commit: elastic/x-pack-elasticsearch@63a1ad2f79658cb973a2dee555cba488c61432a4 --- elasticsearch/build.gradle | 9 + elasticsearch/checkstyle_suppressions.xml | 463 ++++++++++++++++++++++ 2 files changed, 472 insertions(+) create mode 100644 elasticsearch/checkstyle_suppressions.xml diff --git a/elasticsearch/build.gradle b/elasticsearch/build.gradle index e69de29bb2d..5a6df6d4b50 100644 --- a/elasticsearch/build.gradle +++ b/elasticsearch/build.gradle @@ -0,0 +1,9 @@ +File checkstyleSuppressions = file('checkstyle_suppressions.xml') +subprojects { + tasks.withType(Checkstyle) { + // Use x-pack specific suppressions file rather than the open source one. + configProperties = [ + suppressions: checkstyleSuppressions + ] + } +} diff --git a/elasticsearch/checkstyle_suppressions.xml b/elasticsearch/checkstyle_suppressions.xml new file mode 100644 index 00000000000..01b07b35c9e --- /dev/null +++ b/elasticsearch/checkstyle_suppressions.xml @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +