You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ja...@apache.org on 2019/02/21 05:57:11 UTC
[incubator-pinot] branch master updated: Add header definition for
rst files (#3860)
This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new a745087 Add header definition for rst files (#3860)
a745087 is described below
commit a7450878f5fa3c594438708fa9d30a7e909f7f0d
Author: Xiaotian (Jackie) Jiang <17...@users.noreply.github.com>
AuthorDate: Wed Feb 20 21:57:06 2019 -0800
Add header definition for rst files (#3860)
Allow mvn license:check and license:format to work on rst files
---
pom.xml | 9 ++++-----
rstheaderdefinition.xml | 33 +++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 3a4cc7a..d36887d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1064,16 +1064,14 @@
<version>2.8</version>
<configuration>
<header>${pinot.root}/HEADER</header>
+ <headerDefinitions>
+ <headerDefinition>${pinot.root}/rstheaderdefinition.xml</headerDefinition>
+ </headerDefinitions>
<excludes>
<!-- Exclude build files for docs -->
<exclude>docs/_build/**</exclude>
<exlude>docs/Makefile</exlude>
- <!-- Exclude .rst files from license-maven-plugin since there is no easy way to check license on rst files.
- rst files will be checked via RAT.
- -->
- <exclude>docs/*.rst</exclude>
-
<!-- Text and log files -->
<exclude>**/*.txt</exclude>
<exclude>**/*.log</exclude>
@@ -1122,6 +1120,7 @@
<mapping>
<thrift>JAVADOC_STYLE</thrift>
<g4>JAVADOC_STYLE</g4>
+ <rst>RST_STYLE</rst>
</mapping>
</configuration>
<executions>
diff --git a/rstheaderdefinition.xml b/rstheaderdefinition.xml
new file mode 100644
index 0000000..309cf00
--- /dev/null
+++ b/rstheaderdefinition.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<additionalHeaders>
+ <rst_style>
+ <firstLine>..</firstLine>
+ <beforeEachLine>.. </beforeEachLine>
+ <endLine>..EOL</endLine>
+ <firstLineDetectionPattern>..</firstLineDetectionPattern>
+ <lastLineDetectionPattern>..EOL</lastLineDetectionPattern>
+ <allowBlankLines>false</allowBlankLines>
+ <isMultiline>true</isMultiline>
+ <padLines>false</padLines>
+ </rst_style>
+</additionalHeaders>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org