Skip to content

Commit

Permalink
Issue checkstyle#60: added custom header for project
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach authored and tsjensen committed Mar 21, 2019
1 parent 6edc150 commit afb4466
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkstyle-sonar-plugin/config/checkstyle.properties
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions checkstyle-sonar-plugin/config/java.header
Original file line number Diff line number Diff line change
@@ -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
////////////////////////////////////////////////////////////////////////////////
18 changes: 18 additions & 0 deletions checkstyle-sonar-plugin/config/java_regexp.header
Original file line number Diff line number Diff line change
@@ -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}$

0 comments on commit afb4466

Please sign in to comment.