Skip to content

Commit

Permalink
Enforce copyright header
Browse files Browse the repository at this point in the history
  • Loading branch information
rprospero committed Jun 18, 2024
1 parent 026354d commit 0ac3aa1
Show file tree
Hide file tree
Showing 21 changed files with 72 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/qc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,16 @@ runs:
git diff
git diff --quiet
# - name: Copyright Year
# condition: eq(0,1)
# shell: bash
# run: |
# set -ex
#
# # Find all occurances of "YYYY Team QuickPlot and contributors" and replace YYYY with the current year
# find . -type f -not -path '.git/*' -exec sed -i "s/[0-9]{4} \(Team QuickPlot and contributors\)/$(date +%Y) \1/g" {} +
#
# # Show the diff to give an indication of the issues in the CI log
# git diff
#
# # Run quiet diff to fail the job if any changes were made (see man git-diff)
# git diff --quiet
- name: Copyright Year
shell: bash
run: |
set -ex
# Find all occurances of "YYYY Team QuickPlot and contributors" and replace YYYY with the current year
find . -type f -not -path '.git/*' -exec sed -i "s/[0-9]{4} \(Team QuickPlot and contributors\)/$(date +%Y) \1/g" {} +
# Show the diff to give an indication of the issues in the CI log
git diff
# Run quiet diff to fail the job if any changes were made (see man git-diff)
git diff --quiet
2 changes: 2 additions & 0 deletions .github/workflows/qc/copyright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors
3 changes: 3 additions & 0 deletions src/AxisModel.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

import QtQuick
import QtQuick3D
import com.projectdissolve
Expand Down
3 changes: 3 additions & 0 deletions src/LineModel.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

import QtQuick
import QtQuick3D
import com.projectdissolve
Expand Down
3 changes: 3 additions & 0 deletions src/ScatterModel.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

import QtQuick
import QtQuick3D
import com.projectdissolve
Expand Down
3 changes: 3 additions & 0 deletions src/axis.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "axis.h"
#include <algorithm>

Expand Down
3 changes: 3 additions & 0 deletions src/axis.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#pragma once

#include "axisTickLabels.h"
Expand Down
3 changes: 3 additions & 0 deletions src/axisTickLabels.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "axisTickLabels.h"
#include "axis.h"
#include <iostream>
Expand Down
3 changes: 3 additions & 0 deletions src/axisTickLabels.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#pragma once

#include <QAbstractListModel>
Expand Down
3 changes: 3 additions & 0 deletions src/lineGeometry.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "lineGeometry.h"
#include "triangle.h"
#include <algorithm>
Expand Down
3 changes: 3 additions & 0 deletions src/lineGeometry.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#pragma once

#include "axis.h"
Expand Down
3 changes: 3 additions & 0 deletions src/logAxis.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "logAxis.h"
#include <algorithm>

Expand Down
3 changes: 3 additions & 0 deletions src/logAxis.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#pragma once

#include "axis.h"
Expand Down
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "lineGeometry.h"
#include <QApplication>
#include <QQmlApplicationEngine>
Expand Down
3 changes: 3 additions & 0 deletions src/main.qml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

import QtQuick
import QtQuick.Controls
import QtQuick.Dialogs
Expand Down
3 changes: 3 additions & 0 deletions src/plotGeometry.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "plotGeometry.h"

PlotGeometry::PlotGeometry() : xAxis_(nullptr), yAxis_(nullptr)
Expand Down
3 changes: 3 additions & 0 deletions src/plotGeometry.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#pragma once

#include "axis.h"
Expand Down
3 changes: 3 additions & 0 deletions src/scatterGeometry.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "scatterGeometry.h"
#include "triangle.h"
#include <algorithm>
Expand Down
3 changes: 3 additions & 0 deletions src/scatterGeometry.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#pragma once

#include "axis.h"
Expand Down
3 changes: 3 additions & 0 deletions src/triangle.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#include "triangle.h"

Point::Point(float a, float b, float c) : x(a), y(b), z(c) {}
Expand Down
3 changes: 3 additions & 0 deletions src/triangle.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2024 Team Dissolve and contributors

#pragma once

class Point
Expand Down

0 comments on commit 0ac3aa1

Please sign in to comment.