Sonarqube 如何解决;添加或更新此文件的标题。”;声纳中的代码气味?

Sonarqube 如何解决;添加或更新此文件的标题。”;声纳中的代码气味?,sonarqube,Sonarqube,我甚至尝试过“合规解决方案”,给出: /* * SonarQube, open source software quality management tool. * Copyright (C) 2008-2013 SonarSource * mailto:contact AT sonarsource DOT com * * SonarQube is free software; you can redistribute it and/or * modify it under the

我甚至尝试过“合规解决方案”,给出:

/*
 * SonarQube, open source software quality management tool.
 * Copyright (C) 2008-2013 SonarSource
 * mailto:contact AT sonarsource DOT com
 *
 * SonarQube 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.
 *
 * SonarQube 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 program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

但这并不能解决代码的问题。你能给我一个最简单的例子来解决这个问题吗?

当这个规则被添加到应用于你的项目的概要文件中时,它将被配置为预期的标题。您不应该检查“兼容解决方案”,而应该检查该配置,以查看预期的结果

请注意,标头可以配置为正则表达式。通常,这用于处理版权年的变化,但您应该仔细检查它是否也被用作正则表达式