-
Type:
Finding Detection
-
Status: Active
-
Resolution: Unresolved
-
Labels:None
-
Message:Add or update the header of this file.
-
List of parameters:
-
Default Severity:Blocker
-
Impact:High
-
Likelihood:High
-
Legacy Key:COBOL.HeaderCheck
-
Targeted languages:ABAP, PL/I, Python, VB6
-
Covered Languages:APEX, C#, C, C++, Cobol, Flex, Go, HTML, Java, JavaScript, Kotlin, Objective-C, PHP, PL/SQL, RPG, Ruby, Scala, Swift, T-SQL, TypeScript, VB.Net
-
Irrelevant for Languages:XML
-
Remediation Function:Constant/Issue
-
Constant Cost:5min
-
Analysis Level:Syntactic Analysis
-
Analysis Scope:Main Sources, Test Sources
-
Common Rule:Yes
-
Checkstyle:Header, RegexpHeader
-
SwiftLint:file_header
-
TSLint:file-header
Each source file should start with a header stating file ownership and the license which must be used to distribute the application.
This rule must be fed with the header text that is expected at the beginning of every file.
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. */
- is implemented by
-
SONARABAP-354 Rule: Track lack of copyright and license headers
-
- Open
-
-
SONARPLI-172 Rule: Track lack of copyright and license headers
-
- Open
-
-
SONARPY-272 Rule: Track lack of copyright and license headers
-
- Open
-
-
SONARVBSIX-253 Rule: Track lack of copyright and license headers
-
- Open
-
-
CPP-602 Rule: Copyright and license headers should be defined
-
- Closed
-
-
SLVS-1117 Rule S1451 - Track lack of copyright and license headers
-
- Closed
-
-
SONARHTML-67 Rule: Track lack of copyright and license headers
-
- Closed
-
-
SONARPLSQL-680 Rule S1451: Track lack of copyright and license headers
-
- Closed
-
-
SONARRPG-29 Rule: "Copyright and license headers should be defined"
-
- Closed
-
-
SONARSLANG-59 Rule: Track lack of copyright and license headers
-
- Closed
-
-
SONARSLANG-194 [Scala] Enable Rule: S1451 Track lack of copyright and license headers
-
- Closed
-
-
SONARSLANG-262 [Apex] Enable Rule: S1451 Track lack of copyright and license headers
-
- Closed
-
-
SONARSWIFT-78 Rule: Copyright and license headers should be defined
-
- Closed
-
-
SONARTSQL-108 Rule S1451: Track lack of copyright and license headers
-
- Closed
-
-
SONARVB-290 Rule S1451: Track lack of copyright and license headers
-
- Closed
-
-
CPP-707 Create Objective-C rules repository containing targeted rules
-
- Closed
-
- is related to
-
SONARHTML-36 Rule (HeaderCheck) support parameter "isRegularExpression"
-
- Closed
-
- links to
1.
|
RPG | RSPEC-2021 |
|
Active | Unassigned | |
2.
|
HTML | RSPEC-3245 |
|
Active | Unassigned | |
3.
|
Cobol | RSPEC-3721 |
|
Active | Unassigned | |
4.
|
C# | RSPEC-3961 |
|
Active | Unassigned | |
5.
|
Ruby | RSPEC-4744 |
|
Active | Unassigned | |
6.
|
T-SQL | RSPEC-4816 |
|
Active | Unassigned | |
7.
|
VB.NET | RSPEC-4874 |
|
Active | Unassigned | |
8.
|
PL/SQL | RSPEC-5210 |
|
Active | Unassigned |