从 8.2 升级到 8.23 后,我<p>
在许可证标头中的 URL 之前和之后遇到缺少标签的违规行为
/**
* 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.
*/
package bla;
import blu;
public class Bli {
无需更改代码。
我不确定违规是否正确,即规则是否应该应用于上面的文本package
或者它是否是一个错误。
如果这不是一个错误,我打算建议并选择允许更轻松地打开此检查。
我通过 Maven 3.6.0 使用 checkstyle 和maven-checkstyle-plugin
3.1.0。
最简单的方法是在许可证标题中更改/** */
为/* */
,但我不想为工具版本升级提出并进行更改。