Skip to content

Commit 7ddc19c

Browse files
committed
[Java] Add checkstyle rule for copyright.
1 parent fadf63d commit 7ddc19c

File tree

9 files changed

+27
-2
lines changed

9 files changed

+27
-2
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<property name="ignorePattern" value="^[ \t]*\*.*@.*$"/>
2323
</module>
2424

25+
<module name="Header">
26+
<property name="header" value="/*\n * Copyright 2013-2021 Real Logic Limited."/>
27+
<property name="fileExtensions" value="java"/>
28+
</module>
29+
2530
<module name="TreeWalker">
2631
<property name="tabWidth" value="4"/>
2732
<property name="severity" value="error"/>

config/checkstyle/suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
"https://checkstyle.org/dtds/suppressions_1_0.dtd">
55
<suppressions>
66
<suppress files=".*generated-src.*" checks="."/>
7+
<suppress files=".*generated.*" checks="."/>
78
</suppressions>

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright 2013-2021 Real Logic Limited.
23
* Copyright 2017 MarketFactory Inc
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/GolangGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright 2013-2021 Real Logic Limited.
23
* Copyright (C) 2016 MarketFactory, Inc
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/GolangOutputManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright 2013-2021 Real Logic Limited.
23
* Copyright (C) 2016 MarketFactory, Inc
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/GolangUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright 2013-2021 Real Logic Limited.
23
* Copyright (C) 2016 MarketFactory, Inc
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");

sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/IrGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright 2013-2021 Real Logic Limited.
1+
/*
2+
* Copyright 2013-2021 Real Logic Limited.
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/ParserOptions.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* -*- mode: java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- */
21
/*
32
* Copyright 2013-2021 Real Logic Limited.
43
*

sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/csharp/Issue567GroupSizeTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2013-2021 Real Logic Limited.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package uk.co.real_logic.sbe.generation.csharp;
217

318
import org.agrona.generation.StringWriterOutputManager;

0 commit comments

Comments
 (0)