Skip to content

Commit

Permalink
Fix reuse. Introduce dep5 file and uniform copyright headers (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleGallone committed Mar 8, 2022
1 parent 9b198e2 commit 7d6950d
Show file tree
Hide file tree
Showing 25 changed files with 58 additions and 60 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Open Networking Foundation
# Copyright 2022-present Open Networking Foundation

name: golangci-lint
on: [push, pull_request]
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Open Networking Foundation
# Copyright 2022-present Open Networking Foundation

name: Publish pfcpsim
on: [pull_request, push]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright 2022-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022-present Open Networking Foundation

name: REUSE

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/run-unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022-present Open Networking Foundation

name: Unit tests

on: [push, pull_request]
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Open Networking Foundation
# Copyright 2022-present Open Networking Foundation

# golangci-lint configuration used for CI
run:
Expand Down
12 changes: 12 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pfcpsim
Upstream-Contact: OMEC Developers <omec-dev@opennetworking.org>
Source: https://github.com/omec-project/pfcpsim

Files: api/**/*.pb.go
Copyright: 2022-present Open Networking Foundation
License: Apache-2.0

Files: VERSION README.md go.mod go.sum docs/images/schema.svg
Copyright: 2022-present Open Networking Foundation
License: Apache-2.0
28 changes: 2 additions & 26 deletions LICENSE → LICENSES/Apache-2.0.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down Expand Up @@ -173,29 +174,4 @@
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
END OF TERMS AND CONDITIONS
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test: .coverage
go test -race -coverprofile=.coverage/coverage-unit.txt -covermode=atomic -v ./...

reuse-lint:
docker run --rm -v ${CURRENT_DIR}:/up4 -w /up4 omecproject/reuse-verify:latest reuse lint
docker run --rm -v $(CURDIR):/pfcpsim -w /pfcpsim omecproject/reuse-verify:latest reuse lint

build-proto:
@echo "Compiling proto files..."
Expand Down
2 changes: 1 addition & 1 deletion api/pfcpsim.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/pfcpsim.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
//Copyright 2022-present Open Networking Foundation
// Copyright 2022-present Open Networking Foundation

syntax = "proto3";
package api;
Expand Down
2 changes: 1 addition & 1 deletion cmd/pfcpctl/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022 Open Networking Foundation
// Copyright 2022-present Open Networking Foundation

package main

Expand Down
6 changes: 2 additions & 4 deletions cmd/pfcpsim/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2022 Open Networking Foundation
*/
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package main

Expand Down
6 changes: 2 additions & 4 deletions internal/pfcpsim/helpers.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2022 Open Networking Foundation
*/
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package pfcpsim

Expand Down
6 changes: 2 additions & 4 deletions internal/pfcpsim/server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2022 Open Networking Foundation
*/
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package pfcpsim

Expand Down
6 changes: 2 additions & 4 deletions internal/pfcpsim/state.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2022 Open Networking Foundation
*/
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package pfcpsim

Expand Down
3 changes: 3 additions & 0 deletions pkg/pfcpsim/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package pfcpsim

import (
Expand Down
2 changes: 1 addition & 1 deletion pkg/pfcpsim/pfcpsim.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022 Open Networking Foundation
// Copyright 2022-present Open Networking Foundation

package pfcpsim

Expand Down
3 changes: 3 additions & 0 deletions pkg/pfcpsim/session.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package pfcpsim

type PFCPSession struct {
Expand Down
3 changes: 3 additions & 0 deletions pkg/pfcpsim/session/far_builder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package session

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/pfcpsim/session/far_builder_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package session

import (
Expand Down
2 changes: 1 addition & 1 deletion pkg/pfcpsim/session/ies.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022 Open Networking Foundation
// Copyright 2022-present Open Networking Foundation

package session

Expand Down
3 changes: 3 additions & 0 deletions pkg/pfcpsim/session/pdr_builder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package session

import (
Expand Down
6 changes: 2 additions & 4 deletions pkg/pfcpsim/session/pdr_builder_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2022 Open Networking Foundation
*/
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package session

Expand Down
3 changes: 3 additions & 0 deletions pkg/pfcpsim/session/qer_builder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package session

import "github.com/wmnsk/go-pfcp/ie"
Expand Down
6 changes: 2 additions & 4 deletions pkg/pfcpsim/session/qer_builder_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2022 Open Networking Foundation
*/
// SPDX-License-Identifier: Apache-2.0
// Copyright 2022-present Open Networking Foundation

package session

Expand Down

0 comments on commit 7d6950d

Please sign in to comment.