File tree Expand file tree Collapse file tree
main/java/org/sonar/java/checks
test/java/org/sonar/java/checks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131@ Rule (key = "S1451" )
3232public class FileHeaderCheck extends IssuableSubscriptionVisitor {
3333
34- private static final String DEFAULT_HEADER_FORMAT = """
35- /*
36- * <Your-Product-Name>
37- * Copyright (c) <Year-From>-<Year-To> <Your-Company-Name>
38- *
39- * Please configure this header in your SonarCloud/SonarQube quality profile.
40- */""" ;
34+ private static final String DEFAULT_HEADER_FORMAT = "" ;
4135 private static final String MESSAGE = "Add or update the header of this file." ;
4236
4337 @ RuleProperty (
Original file line number Diff line number Diff line change @@ -100,14 +100,12 @@ void test() {
100100 .verifyNoIssues ();
101101
102102 check = new FileHeaderCheck ();
103- check .headerFormat = "" ;
104103 CheckVerifier .newVerifier ()
105104 .onFile (mainCodeSourcesPath ("checks/FileHeaderCheck/ClassBlankLine.java" ))
106105 .withCheck (check )
107106 .verifyNoIssues ();
108107
109108 check = new FileHeaderCheck ();
110- check .headerFormat = "" ;
111109 CheckVerifier .newVerifier ()
112110 .onFile (mainCodeSourcesPath ("checks/FileHeaderCheck/ClassNoBlankLine.java" ))
113111 .withCheck (check )
You can’t perform that action at this time.
0 commit comments