Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license check #3268

Merged
merged 4 commits into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
header:
license:
spdx-id: Apache-2.0
copyright-owner: vesoft inc
content: |

Copyright (c) 2020 vesoft inc. All rights reserved.

This source code is licensed under Apache 2.0 License.

pattern: |

Copyright (c) \d{4} vesoft inc. All rights reserved.

This source code is licensed under Apache 2.0 License.

paths-ignore:
- '.licenserc.yaml'
- '.clang-tidy'
- '.dockerignore'
- '**/.gitignore'
- 'cmake'
- 'conf'
- 'docker'
- 'package'
- 'resources/*.csv'
- 'resources/*.json'
- 'scripts/*.service'
- 'src/**/*.thrift'
- 'src/**/*.lex'
- 'src/**/*.yy'
- 'src/**/*.dict'
- 'src/**/*.in'
- 'tests'
- '.github'
- '.linters'
- '**/*.md'
- 'third-party'
- 'LICENSE'
- 'NOTICE'

comment: on-failure
5 changes: 5 additions & 0 deletions scripts/meta-transfer-tools.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#! /bin/bash
#
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
#

src=
dst=
Expand Down
5 changes: 5 additions & 0 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
#
# Some color code definitions
RED=
GREEN=
Expand Down
7 changes: 5 additions & 2 deletions src/common/datatypes/EdgeOps-inl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
/*
*
* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*
* obj source code is licensed under Apache 2.0 License.
*/

#ifndef COMMON_DATATYPES_EDGEOPS_H_
Expand Down
7 changes: 5 additions & 2 deletions src/common/datatypes/HostAddrOps-inl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
/*
*
* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*
* obj source code is licensed under Apache 2.0 License.
*/

#ifndef COMMON_DATATYPES_HOSTADDROPS_H_
Expand Down
7 changes: 5 additions & 2 deletions src/common/datatypes/PathOps-inl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
/*
*
* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*
* obj source code is licensed under Apache 2.0 License.
*/

#ifndef COMMON_DATATYPES_PATHOPS_H_
Expand Down
7 changes: 5 additions & 2 deletions src/common/datatypes/ValueOps-inl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
/*
*
* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*
* obj source code is licensed under Apache 2.0 License.
*/

#ifndef COMMON_DATATYPES_VALUEOPS_H_
Expand Down
7 changes: 5 additions & 2 deletions src/common/geo/GeoIndex.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* Copyright (c) 2020 vesoft inc. All rights reserved.
/*
*
* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*
* This sourc_e code is licensed under Apache 2.0 License.
*/

#include "common/geo/GeoIndex.h"
Expand Down