I don’t have any mail address for the project that’s why I don’t want to add mailto
line. It will be a public repository and I want to scan it with sonarqube before publishing it. But I always get this code smell issue go:S1451 “Add or update the header of this file”. So how to succeed on this issue without adding mailto
line. Is there any way to make it?
This is my license reference and each go files contain it to refer actual license file.:
/*
* Copyright (c) 2021 Athena
* Distributed under the MIT software license, see the accompanying
* file COPYING or http://www.opensource.org/licenses/mit-license.php.
*/
Official Compliant Solution:
/*
* 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.
*/
PS: sonarqube 8.9.2 and not available to manipulate the rules.