diff --git a/checkstyle-sonar-plugin/config/checkstyle.properties b/checkstyle-sonar-plugin/config/checkstyle.properties index 17b19cad..92c6b104 100644 --- a/checkstyle-sonar-plugin/config/checkstyle.properties +++ b/checkstyle-sonar-plugin/config/checkstyle.properties @@ -1,4 +1,4 @@ checkstyle.suppressions.file=checkstyle-sonar-plugin/config/suppressions.xml -checkstyle.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java.header -checkstyle.regexp.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java_regexp.header +checkstyle.header.file=checkstyle-sonar-plugin/config/java.header +checkstyle.regexp.header.file=checkstyle-sonar-plugin/config/java_regexp.header checkstyle.importcontrol.file=checkstyle-sonar-plugin/config/import-control.xml diff --git a/checkstyle-sonar-plugin/config/java.header b/checkstyle-sonar-plugin/config/java.header new file mode 100644 index 00000000..6380d2f7 --- /dev/null +++ b/checkstyle-sonar-plugin/config/java.header @@ -0,0 +1,18 @@ +//////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code for adherence to a set of rules. +// Copyright (C) 2001-2017 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 3 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +//////////////////////////////////////////////////////////////////////////////// diff --git a/checkstyle-sonar-plugin/config/java_regexp.header b/checkstyle-sonar-plugin/config/java_regexp.header new file mode 100644 index 00000000..a3da791d --- /dev/null +++ b/checkstyle-sonar-plugin/config/java_regexp.header @@ -0,0 +1,18 @@ +^/{80}$ +^/{2} checkstyle: Checks Java source code for adherence to a set of rules.$ +^/{2} Copyright \(C\) \d\d\d\d-\d\d\d\d the original author or authors.$ +^/{2}$ +^/{2} This library is free software; you can redistribute it and/or$ +^/{2} modify it under the terms of the GNU Lesser General Public$ +^/{2} License as published by the Free Software Foundation; either$ +^/{2} version \d of the License, or \(at your option\) any later version.$ +^/{2}$ +^/{2} This library is distributed in the hope that it will be useful,$ +^/{2} but WITHOUT ANY WARRANTY; without even the implied warranty of$ +^/{2} MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU$ +^/{2} Lesser General Public License for more details.$ +^/{2}$ +^/{2} You should have received a copy of the GNU Lesser General Public$ +^/{2} License along with this library; if not, write to the Free Software$ +^/{2} Foundation, Inc., \d\d Temple Place, Suite \d\d\d, Boston, MA \d\d\d\d\d-\d\d\d\d USA$ +^/{80}$