license-maven-plugin
license-maven-plugin copied to clipboard
maven-chekstyle-plugin complains about trailing spaces
Maven-chekstyle-plugin complains about trailing spaces:
C:\myproject\src\main\java\mypackage\MyClass.java:13: Line has trailing spaces. [RegexpSingleline]
C:\myproject\src\main\java\mypackage\MyClass.java:18: Line has trailing spaces. [RegexpSingleline]
The problem is the space after the *
in the blank line that separates paragraphs.
package mypackage;
/*-
* #%L
* my-project
* %%
* Copyright (C) 2019 My Company
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
public MyClass {
Best regards, Tarin
These trailing spaces are also a problem for us.
The auto-format tool of our IDE is removing them.
This means that each first commit on a file with a license will include a trailing spaces removal.