You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/06/08 11:19:33 UTC

[maven-checkstyle-plugin] branch MCHECKSTYLE-54 updated: [MCHECKSTYLE-54] Ensure files EOL matches Systems lineseparator (must also apply when downloading source-release.zip, this is not a git issue)

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MCHECKSTYLE-54
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git


The following commit(s) were added to refs/heads/MCHECKSTYLE-54 by this push:
     new cc1b620  [MCHECKSTYLE-54] Ensure files EOL matches Systems lineseparator (must also apply when downloading source-release.zip, this is not a git issue)
cc1b620 is described below

commit cc1b6202ed4afec07004711ae7138848bc35ba41
Author: rfscholte <rf...@apache.org>
AuthorDate: Sat Jun 8 13:19:24 2019 +0200

    [MCHECKSTYLE-54] Ensure files EOL matches Systems lineseparator (must also apply when downloading source-release.zip, this is not a git issue)
---
 .gitattributes                     |  2 --
 src/it/MCHECKSTYLE-54/setup.groovy | 24 ++++++++++++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 09bc62c..0000000
--- a/.gitattributes
+++ /dev/null
@@ -1,2 +0,0 @@
-# Set the default behavior, in case people don't have core.autocrlf set.
-* text=auto
\ No newline at end of file
diff --git a/src/it/MCHECKSTYLE-54/setup.groovy b/src/it/MCHECKSTYLE-54/setup.groovy
new file mode 100644
index 0000000..0528749
--- /dev/null
+++ b/src/it/MCHECKSTYLE-54/setup.groovy
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+def srcFile = new File(basedir, 'src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/Mcheckstyle54.java')
+
+srcFile.text = srcFile.text.replaceAll( ~ /(\r\n|\r|\n)/, System.lineSeparator() )
+
+return true;
\ No newline at end of file