Skip to content

Commit 1395dc0

Browse files
committed
Add missing license headers
1 parent 23c3731 commit 1395dc0

File tree

10 files changed

+111
-3
lines changed

10 files changed

+111
-3
lines changed

python/core/additions/qgsfeature.py

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# -*- coding: utf-8 -*-
2+
3+
"""
4+
***************************************************************************
5+
qgsfeature.py
6+
---------------------
7+
Date : May 2018
8+
Copyright : (C) 2018 by Denis Rouzaud
9+
Email : denis@opengis.ch
10+
***************************************************************************
11+
* *
12+
* This program is free software; you can redistribute it and/or modify *
13+
* it under the terms of the GNU General Public License as published by *
14+
* the Free Software Foundation; either version 2 of the License, or *
15+
* (at your option) any later version. *
16+
* *
17+
***************************************************************************
18+
"""
19+
20+
121
def mapping_feature(feature):
222
geom = feature.geometry()
323
fields = [field.name() for field in feature.fields()]

python/core/auto_generated/geometry/qgslinesegment.sip.in

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99

1010

11+
12+
1113
class QgsLineSegment2D
1214
{
1315
%Docstring

python/plugins/processing/script/ScriptTemplate.py

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# -*- coding: utf-8 -*-
22

3+
"""
4+
***************************************************************************
5+
* *
6+
* This program is free software; you can redistribute it and/or modify *
7+
* it under the terms of the GNU General Public License as published by *
8+
* the Free Software Foundation; either version 2 of the License, or *
9+
* (at your option) any later version. *
10+
* *
11+
***************************************************************************
12+
"""
13+
314
from PyQt5.QtCore import QCoreApplication
415
from qgis.core import (QgsProcessing,
516
QgsFeatureSink,

src/core/geometry/qgslinesegment.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
email : nyall dot dawson at gmail dot com
77
***************************************************************************/
88

9+
/***************************************************************************
10+
* *
11+
* This program is free software; you can redistribute it and/or modify *
12+
* it under the terms of the GNU General Public License as published by *
13+
* the Free Software Foundation; either version 2 of the License, or *
14+
* (at your option) any later version. *
15+
* *
16+
***************************************************************************/
17+
918
#include "qgslinesegment.h"
1019
#include "qgsgeometryutils.h"
1120

src/core/geometry/qgslinesegment.h

+10
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
copyright : (C) 2018 by Nyall Dawson
66
email : nyall dot dawson at gmail dot com
77
***************************************************************************/
8+
9+
/***************************************************************************
10+
* *
11+
* This program is free software; you can redistribute it and/or modify *
12+
* it under the terms of the GNU General Public License as published by *
13+
* the Free Software Foundation; either version 2 of the License, or *
14+
* (at your option) any later version. *
15+
* *
16+
***************************************************************************/
17+
818
#ifndef QGSLINESEGMENT_H
919
#define QGSLINESEGMENT_H
1020

src/providers/postgres/qgspostgresprojectstorage.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
qgspostgresprojectstorage.cpp
3+
---------------------
4+
begin : April 2018
5+
copyright : (C) 2018 by Martin Dobias
6+
email : wonder dot sk at gmail dot com
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#include "qgspostgresprojectstorage.h"
216

317
#include "qgspostgresconn.h"

src/providers/postgres/qgspostgresprojectstorage.h

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
qgspostgresprojectstorage.h
3+
---------------------
4+
begin : April 2018
5+
copyright : (C) 2018 by Martin Dobias
6+
email : wonder dot sk at gmail dot com
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#ifndef QGSPOSTGRESPROJECTSTORAGE_H
216
#define QGSPOSTGRESPROJECTSTORAGE_H
317

src/providers/postgres/qgspostgresprojectstoragedialog.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
qgspostgresprojectstoragedialog.cpp
3+
---------------------
4+
begin : April 2018
5+
copyright : (C) 2018 by Martin Dobias
6+
email : wonder dot sk at gmail dot com
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#include "qgspostgresprojectstoragedialog.h"
216

317
#include "qgspostgresconn.h"

src/providers/postgres/qgspostgresprojectstoragedialog.h

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/***************************************************************************
2+
qgspostgresprojectstoragedialog.h
3+
---------------------
4+
begin : April 2018
5+
copyright : (C) 2018 by Martin Dobias
6+
email : wonder dot sk at gmail dot com
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
115
#ifndef QGSPOSTGRESPROJECTSTORAGEDIALOG_H
216
#define QGSPOSTGRESPROJECTSTORAGEDIALOG_H
317

tests/code_layout/test_licenses.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# This test checks that all source files correctly have license headers
44

55
INCLUDE_EXTENSIONS="h|cpp|hpp|py|c"
6-
EXCLUDE_LIST="(.*\\/(qtermwidget)\\/|ui_defaults\\.h|CREDITS|TODO|README|URI|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
6+
EXCLUDE_LIST="(.*\\/(qtermwidget)\\/|.*\\/(auto_additions)\\/|ui_defaults\\.h|qgspluginmanager_texts\\.cpp|src\\/analysis\\/vector\\/mersenne-twister\\.|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
77
LICENSE_CHECK="external/licensecheck/licensecheck.pl"
88

99
DIR=$(git rev-parse --show-toplevel)
1010

11-
pushd "${DIR}" || exit > /dev/null
11+
pushd "${DIR}" > /dev/null || exit
1212
missing=$(! { "$LICENSE_CHECK" -r -i "$EXCLUDE_LIST" src & "$LICENSE_CHECK" -r -i "$EXCLUDE_LIST" python; } | grep UNKNOWN)
1313

14-
popd || exit > /dev/null
14+
popd > /dev/null || exit
1515

1616
if [[ $missing ]]; then
1717
echo " *** Found source files without valid license headers"

0 commit comments

Comments
 (0)