From faf5c153a535cf58ca75996c6276f1da80ac76a5 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 15 Sep 2021 22:13:36 -0700 Subject: [PATCH] Allow use of code under later versions of GPL The license type of Arduino Lint is hereby changed from "GPL-3.0-only" to "GPL-3.0-or-later", for the reason explained here: https://www.gnu.org/licenses/gpl-faq.html#VersionThreeOrLater Arduino Lint's GPL 3.0 license itself provides for either type, but the "or later" exception is only available if it is explicitly stated: > If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" > applies to it, you have the option of following the terms and conditions either of that numbered version or of any > later version published by the Free Software Foundation. This was not previously done in the Arduino Lint code base, meaning that it could not be used by code licensed under some later version of GPL. The previous use of the "GPL-3.0-only" license type was not a conscious decision, but simply the result of copy/pasting the license header from another project which happened to be "GPL-3.0-only". I simply copy/pasted the license from Arduino CLI, which is also "GPL-3.0-only". Since Arduino has complete ownership of all code subject to this change, no external permission must be obtained to make this change. --- ...arduino-boards-txt-definitions-schema.json | 1 + .../arduino-boards-txt-permissive-schema.json | 2 +- etc/schemas/arduino-boards-txt-schema.json | 2 +- .../arduino-boards-txt-strict-schema.json | 2 +- ...library-properties-definitions-schema.json | 1 + ...-library-properties-permissive-schema.json | 2 +- .../arduino-library-properties-schema.json | 2 +- ...uino-library-properties-strict-schema.json | 2 +- ...uino-package-index-definitions-schema.json | 1 + ...duino-package-index-permissive-schema.json | 1 + etc/schemas/arduino-package-index-schema.json | 1 + .../arduino-package-index-strict-schema.json | 1 + ...duino-platform-txt-definitions-schema.json | 1 + ...rduino-platform-txt-permissive-schema.json | 2 +- etc/schemas/arduino-platform-txt-schema.json | 2 +- .../arduino-platform-txt-strict-schema.json | 2 +- ...no-programmers-txt-definitions-schema.json | 1 + ...ino-programmers-txt-permissive-schema.json | 2 +- .../arduino-programmers-txt-schema.json | 2 +- ...arduino-programmers-txt-strict-schema.json | 2 +- etc/schemas/general-definitions-schema.json | 1 + internal/cli/cli.go | 5 +-- internal/command/command.go | 5 +-- internal/configuration/configuration.go | 5 +-- internal/configuration/configuration_test.go | 5 +-- internal/configuration/defaults.go | 5 +-- internal/configuration/rulemode/rulemode.go | 5 +-- .../configuration/rulemode/rulemode_test.go | 5 +-- internal/project/general/general.go | 5 +-- internal/project/general/general_test.go | 5 +-- internal/project/library/library.go | 5 +-- internal/project/library/library_test.go | 5 +-- .../libraryproperties/libraryproperties.go | 5 +-- .../librarypropertiesschemas_test.go | 5 +-- internal/project/packageindex/packageindex.go | 5 +-- .../project/packageindex/packageindex_test.go | 5 +-- .../packageindex/packageindexschemas_test.go | 5 +-- .../project/platform/boardstxt/boardstxt.go | 5 +-- .../platform/boardstxt/boardstxt_test.go | 5 +-- .../boardstxt/boardstxtschema_test.go | 5 +-- internal/project/platform/platform.go | 5 +-- internal/project/platform/platform_test.go | 5 +-- .../platform/platformtxt/platformtxt.go | 5 +-- .../platform/platformtxt/platformtxt_test.go | 5 +-- .../platformtxt/platformtxtschema_test.go | 5 +-- .../platform/programmerstxt/programmerstxt.go | 5 +-- .../programmerstxt/programmerstxt_test.go | 5 +-- .../programmerstxtschema_test.go | 5 +-- internal/project/project.go | 5 +-- internal/project/project_test.go | 5 +-- internal/project/projectdata/library.go | 5 +-- internal/project/projectdata/packageindex.go | 5 +-- .../project/projectdata/packageindex_test.go | 5 +-- internal/project/projectdata/platform.go | 5 +-- internal/project/projectdata/platform_test.go | 5 +-- internal/project/projectdata/projectdata.go | 5 +-- internal/project/projectdata/sketch.go | 5 +-- internal/project/projecttype/projecttype.go | 5 +-- .../project/projecttype/projecttype_test.go | 5 +-- internal/project/sketch/sketch.go | 5 +-- internal/project/sketch/sketch_test.go | 5 +-- internal/result/feedback/feedback.go | 5 +-- internal/result/outputformat/outputformat.go | 5 +-- .../result/outputformat/outputformat_test.go | 5 +-- internal/result/result.go | 5 +-- internal/result/result_test.go | 5 +-- internal/rule/rule.go | 5 +-- internal/rule/rule_test.go | 5 +-- .../ruleconfiguration/ruleconfiguration.go | 5 +-- .../ruleconfiguration_test.go | 5 +-- internal/rule/rulefunction/library.go | 5 +-- internal/rule/rulefunction/library_test.go | 5 +-- internal/rule/rulefunction/packageindex.go | 5 +-- .../rule/rulefunction/packageindex_test.go | 5 +-- internal/rule/rulefunction/platform.go | 5 +-- internal/rule/rulefunction/platform_test.go | 5 +-- internal/rule/rulefunction/rulefunction.go | 5 +-- .../rule/rulefunction/rulefunction_test.go | 5 +-- internal/rule/rulefunction/sketch.go | 5 +-- internal/rule/rulefunction/sketch_test.go | 5 +-- internal/rule/rulelevel/rulelevel.go | 5 +-- internal/rule/rulelevel/rulelevel_test.go | 5 +-- internal/rule/ruleresult/ruleresult.go | 5 +-- .../schema/compliancelevel/compliancelevel.go | 5 +-- internal/rule/schema/parsevalidationresult.go | 5 +-- internal/rule/schema/schema.go | 5 +-- internal/rule/schema/schema_test.go | 5 +-- internal/rule/schema/schemadata/bindata.go | 33 ++++++++++++------- internal/util/test/test.go | 5 +-- main.go | 5 +-- ruledocsgen/main.go | 16 +++++++++ ruledocsgen/main_test.go | 5 +-- 92 files changed, 265 insertions(+), 162 deletions(-) diff --git a/etc/schemas/arduino-boards-txt-definitions-schema.json b/etc/schemas/arduino-boards-txt-definitions-schema.json index e3144e51..69b8970a 100644 --- a/etc/schemas/arduino-boards-txt-definitions-schema.json +++ b/etc/schemas/arduino-boards-txt-definitions-schema.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-definitions-schema.json", "title": "Shared definitions for the Arduino boards.txt schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "propertiesObjects": { "menu": { diff --git a/etc/schemas/arduino-boards-txt-permissive-schema.json b/etc/schemas/arduino-boards-txt-permissive-schema.json index e9709c45..c0febd70 100644 --- a/etc/schemas/arduino-boards-txt-permissive-schema.json +++ b/etc/schemas/arduino-boards-txt-permissive-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-permissive-schema.json", "title": "Arduino boards.txt JSON permissive schema", "description": "boards.txt contains the boards definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt", - "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "menu": { diff --git a/etc/schemas/arduino-boards-txt-schema.json b/etc/schemas/arduino-boards-txt-schema.json index 74fca4f2..2cfe312c 100644 --- a/etc/schemas/arduino-boards-txt-schema.json +++ b/etc/schemas/arduino-boards-txt-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-schema.json", "title": "Arduino boards.txt JSON schema", "description": "boards.txt contains the boards definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt", - "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "menu": { diff --git a/etc/schemas/arduino-boards-txt-strict-schema.json b/etc/schemas/arduino-boards-txt-strict-schema.json index 4603c4e1..9507f84e 100644 --- a/etc/schemas/arduino-boards-txt-strict-schema.json +++ b/etc/schemas/arduino-boards-txt-strict-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-strict-schema.json", "title": "Arduino boards.txt JSON strict schema", "description": "boards.txt contains the boards definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt", - "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "menu": { diff --git a/etc/schemas/arduino-library-properties-definitions-schema.json b/etc/schemas/arduino-library-properties-definitions-schema.json index a8630aa1..3510e6a7 100644 --- a/etc/schemas/arduino-library-properties-definitions-schema.json +++ b/etc/schemas/arduino-library-properties-definitions-schema.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-definitions-schema.json", "title": "Shared definitions for the Arduino library.properties schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "definitions": { "general": { diff --git a/etc/schemas/arduino-library-properties-permissive-schema.json b/etc/schemas/arduino-library-properties-permissive-schema.json index 9bf33b10..7b9a7a5a 100644 --- a/etc/schemas/arduino-library-properties-permissive-schema.json +++ b/etc/schemas/arduino-library-properties-permissive-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-permissive-schema.json", "title": "Arduino library.properties JSON permissive schema", "description": "library.properties is the metadata file for Arduino libraries. This schema defines the minimum requirements for this file. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata", - "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { diff --git a/etc/schemas/arduino-library-properties-schema.json b/etc/schemas/arduino-library-properties-schema.json index ab1cadda..6f24cb06 100644 --- a/etc/schemas/arduino-library-properties-schema.json +++ b/etc/schemas/arduino-library-properties-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-schema.json", "title": "Arduino library.properties JSON schema", "description": "library.properties is the metadata file for Arduino libraries. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata", - "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { diff --git a/etc/schemas/arduino-library-properties-strict-schema.json b/etc/schemas/arduino-library-properties-strict-schema.json index dc708edc..2c34f5ec 100644 --- a/etc/schemas/arduino-library-properties-strict-schema.json +++ b/etc/schemas/arduino-library-properties-strict-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-strict-schema.json", "title": "Arduino library.properties strict JSON schema", "description": "library.properties is the metadata file for Arduino libraries. This schema defines the recommended format. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata", - "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { diff --git a/etc/schemas/arduino-package-index-definitions-schema.json b/etc/schemas/arduino-package-index-definitions-schema.json index 262e6897..cd618b45 100644 --- a/etc/schemas/arduino-package-index-definitions-schema.json +++ b/etc/schemas/arduino-package-index-definitions-schema.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-definitions-schema.json", "title": "Shared definitions for the Arduino Package Index schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "root": { "base": { diff --git a/etc/schemas/arduino-package-index-permissive-schema.json b/etc/schemas/arduino-package-index-permissive-schema.json index 97ddfa0b..b6c2abf6 100644 --- a/etc/schemas/arduino-package-index-permissive-schema.json +++ b/etc/schemas/arduino-package-index-permissive-schema.json @@ -3,6 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-permissive-schema.json", "title": "Arduino Package Index JSON permissive schema", "description": "Package indexes define Arduino hardware packages. See: https://arduino.github.io/arduino-cli/latest/package_index_json-specification/. This schema defines the minimum accepted data format.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "allOf": [ { "$ref": "arduino-package-index-definitions-schema.json#/definitions/root/permissive/object" diff --git a/etc/schemas/arduino-package-index-schema.json b/etc/schemas/arduino-package-index-schema.json index e5a948ef..1c203654 100644 --- a/etc/schemas/arduino-package-index-schema.json +++ b/etc/schemas/arduino-package-index-schema.json @@ -3,6 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-schema.json", "title": "Arduino Package Index JSON schema", "description": "Package indexes define Arduino hardware packages. See: https://arduino.github.io/arduino-cli/latest/package_index_json-specification/. This schema defines the data format per the specification.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "allOf": [ { "$ref": "arduino-package-index-definitions-schema.json#/definitions/root/specification/object" diff --git a/etc/schemas/arduino-package-index-strict-schema.json b/etc/schemas/arduino-package-index-strict-schema.json index 3008876b..5adc2f24 100644 --- a/etc/schemas/arduino-package-index-strict-schema.json +++ b/etc/schemas/arduino-package-index-strict-schema.json @@ -3,6 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-strict-schema.json", "title": "Arduino Package Index JSON strict schema", "description": "Package indexes define Arduino hardware packages. See: https://arduino.github.io/arduino-cli/latest/package_index_json-specification/. This schema defines the best practices for the data format, above and beyond the specification.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "allOf": [ { "$ref": "arduino-package-index-definitions-schema.json#/definitions/root/strict/object" diff --git a/etc/schemas/arduino-platform-txt-definitions-schema.json b/etc/schemas/arduino-platform-txt-definitions-schema.json index 57ce303e..7938c5a0 100644 --- a/etc/schemas/arduino-platform-txt-definitions-schema.json +++ b/etc/schemas/arduino-platform-txt-definitions-schema.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-definitions-schema.json", "title": "Shared definitions for the Arduino platform.txt schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "propertiesObjects": { "name": { diff --git a/etc/schemas/arduino-platform-txt-permissive-schema.json b/etc/schemas/arduino-platform-txt-permissive-schema.json index af541a7a..d7c376da 100644 --- a/etc/schemas/arduino-platform-txt-permissive-schema.json +++ b/etc/schemas/arduino-platform-txt-permissive-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-permissive-schema.json", "title": "Arduino platform.txt JSON permissive schema", "description": "platform.txt contains the platform definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#platformtxt", - "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { diff --git a/etc/schemas/arduino-platform-txt-schema.json b/etc/schemas/arduino-platform-txt-schema.json index fc299a13..f63f9ad6 100644 --- a/etc/schemas/arduino-platform-txt-schema.json +++ b/etc/schemas/arduino-platform-txt-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-schema.json", "title": "Arduino platform.txt JSON schema", "description": "platform.txt contains the platform definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#platformtxt", - "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { diff --git a/etc/schemas/arduino-platform-txt-strict-schema.json b/etc/schemas/arduino-platform-txt-strict-schema.json index 05f71286..59028505 100644 --- a/etc/schemas/arduino-platform-txt-strict-schema.json +++ b/etc/schemas/arduino-platform-txt-strict-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-strict-schema.json", "title": "Arduino platform.txt JSON strict schema", "description": "platform.txt contains the platform definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#platformtxt", - "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { diff --git a/etc/schemas/arduino-programmers-txt-definitions-schema.json b/etc/schemas/arduino-programmers-txt-definitions-schema.json index d59967dc..06652732 100644 --- a/etc/schemas/arduino-programmers-txt-definitions-schema.json +++ b/etc/schemas/arduino-programmers-txt-definitions-schema.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-definitions-schema.json", "title": "Shared definitions for the Arduino programmers.txt schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "propertiesObjects": { "programmerID": { diff --git a/etc/schemas/arduino-programmers-txt-permissive-schema.json b/etc/schemas/arduino-programmers-txt-permissive-schema.json index 7a1cd446..8848dcb6 100644 --- a/etc/schemas/arduino-programmers-txt-permissive-schema.json +++ b/etc/schemas/arduino-programmers-txt-permissive-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-permissive-schema.json", "title": "Arduino programmers.txt JSON permissive schema", "description": "programmers.txt contains the definitions of Arduino hardware programmers. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#programmerstxt", - "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "patternProperties": { ".+": { diff --git a/etc/schemas/arduino-programmers-txt-schema.json b/etc/schemas/arduino-programmers-txt-schema.json index fd101f23..88ac942c 100644 --- a/etc/schemas/arduino-programmers-txt-schema.json +++ b/etc/schemas/arduino-programmers-txt-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-schema.json", "title": "Arduino programmers.txt JSON schema", "description": "programmers.txt contains the definitions of Arduino hardware programmers. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#programmerstxt", - "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "patternProperties": { ".+": { diff --git a/etc/schemas/arduino-programmers-txt-strict-schema.json b/etc/schemas/arduino-programmers-txt-strict-schema.json index 6f8c45da..8e7146e0 100644 --- a/etc/schemas/arduino-programmers-txt-strict-schema.json +++ b/etc/schemas/arduino-programmers-txt-strict-schema.json @@ -3,7 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-strict-schema.json", "title": "Arduino programmers.txt JSON strict schema", "description": "programmers.txt contains the definitions of Arduino hardware programmers. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#programmerstxt", - "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "patternProperties": { ".+": { diff --git a/etc/schemas/general-definitions-schema.json b/etc/schemas/general-definitions-schema.json index 7e0ab5c2..b0e6f3f8 100644 --- a/etc/schemas/general-definitions-schema.json +++ b/etc/schemas/general-definitions-schema.json @@ -3,6 +3,7 @@ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/general-definitions-schema.json", "title": "Shared definitions", "description": "Definitions for use in schemas.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "definitions": { "patternObjects": { diff --git a/internal/cli/cli.go b/internal/cli/cli.go index a2b07530..c78b2b98 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/command/command.go b/internal/command/command.go index 7af0aaf9..c9728592 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/configuration/configuration.go b/internal/configuration/configuration.go index c74f11be..612ab522 100644 --- a/internal/configuration/configuration.go +++ b/internal/configuration/configuration.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/configuration/configuration_test.go b/internal/configuration/configuration_test.go index c6c5d5c2..0b09b0ae 100644 --- a/internal/configuration/configuration_test.go +++ b/internal/configuration/configuration_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/configuration/defaults.go b/internal/configuration/defaults.go index cefbead4..92944623 100644 --- a/internal/configuration/defaults.go +++ b/internal/configuration/defaults.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/configuration/rulemode/rulemode.go b/internal/configuration/rulemode/rulemode.go index 06addc7c..6d1f7c90 100644 --- a/internal/configuration/rulemode/rulemode.go +++ b/internal/configuration/rulemode/rulemode.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/configuration/rulemode/rulemode_test.go b/internal/configuration/rulemode/rulemode_test.go index 7c44461f..d08d01ca 100644 --- a/internal/configuration/rulemode/rulemode_test.go +++ b/internal/configuration/rulemode/rulemode_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/general/general.go b/internal/project/general/general.go index c2e28446..e8616354 100644 --- a/internal/project/general/general.go +++ b/internal/project/general/general.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/general/general_test.go b/internal/project/general/general_test.go index 58226e79..9452bdfd 100644 --- a/internal/project/general/general_test.go +++ b/internal/project/general/general_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/library/library.go b/internal/project/library/library.go index e0e4e407..f296f600 100644 --- a/internal/project/library/library.go +++ b/internal/project/library/library.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/library/library_test.go b/internal/project/library/library_test.go index 83d9dc88..404bffcf 100644 --- a/internal/project/library/library_test.go +++ b/internal/project/library/library_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/library/libraryproperties/libraryproperties.go b/internal/project/library/libraryproperties/libraryproperties.go index ad363a0a..2087ac2d 100644 --- a/internal/project/library/libraryproperties/libraryproperties.go +++ b/internal/project/library/libraryproperties/libraryproperties.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/library/libraryproperties/librarypropertiesschemas_test.go b/internal/project/library/libraryproperties/librarypropertiesschemas_test.go index 01634f25..d6d7aaa4 100644 --- a/internal/project/library/libraryproperties/librarypropertiesschemas_test.go +++ b/internal/project/library/libraryproperties/librarypropertiesschemas_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/packageindex/packageindex.go b/internal/project/packageindex/packageindex.go index a96d0bdc..0559bc09 100644 --- a/internal/project/packageindex/packageindex.go +++ b/internal/project/packageindex/packageindex.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/packageindex/packageindex_test.go b/internal/project/packageindex/packageindex_test.go index 5fdadd28..f218a6bb 100644 --- a/internal/project/packageindex/packageindex_test.go +++ b/internal/project/packageindex/packageindex_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/packageindex/packageindexschemas_test.go b/internal/project/packageindex/packageindexschemas_test.go index eea78538..44422da8 100644 --- a/internal/project/packageindex/packageindexschemas_test.go +++ b/internal/project/packageindex/packageindexschemas_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/boardstxt/boardstxt.go b/internal/project/platform/boardstxt/boardstxt.go index 59492400..9b75a84e 100644 --- a/internal/project/platform/boardstxt/boardstxt.go +++ b/internal/project/platform/boardstxt/boardstxt.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/boardstxt/boardstxt_test.go b/internal/project/platform/boardstxt/boardstxt_test.go index f77acb5e..5e8525d6 100644 --- a/internal/project/platform/boardstxt/boardstxt_test.go +++ b/internal/project/platform/boardstxt/boardstxt_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/boardstxt/boardstxtschema_test.go b/internal/project/platform/boardstxt/boardstxtschema_test.go index ac71f537..54296722 100644 --- a/internal/project/platform/boardstxt/boardstxtschema_test.go +++ b/internal/project/platform/boardstxt/boardstxtschema_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/platform.go b/internal/project/platform/platform.go index f210036a..9f839c61 100644 --- a/internal/project/platform/platform.go +++ b/internal/project/platform/platform.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/platform_test.go b/internal/project/platform/platform_test.go index b483fc6a..51fe1b3c 100644 --- a/internal/project/platform/platform_test.go +++ b/internal/project/platform/platform_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/platformtxt/platformtxt.go b/internal/project/platform/platformtxt/platformtxt.go index aa5f4541..705bcf8b 100644 --- a/internal/project/platform/platformtxt/platformtxt.go +++ b/internal/project/platform/platformtxt/platformtxt.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/platformtxt/platformtxt_test.go b/internal/project/platform/platformtxt/platformtxt_test.go index 7a108ff5..5a76680d 100644 --- a/internal/project/platform/platformtxt/platformtxt_test.go +++ b/internal/project/platform/platformtxt/platformtxt_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/platformtxt/platformtxtschema_test.go b/internal/project/platform/platformtxt/platformtxtschema_test.go index c687949c..ab17751a 100644 --- a/internal/project/platform/platformtxt/platformtxtschema_test.go +++ b/internal/project/platform/platformtxt/platformtxtschema_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/programmerstxt/programmerstxt.go b/internal/project/platform/programmerstxt/programmerstxt.go index 501a6fa7..8811ef1d 100644 --- a/internal/project/platform/programmerstxt/programmerstxt.go +++ b/internal/project/platform/programmerstxt/programmerstxt.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/programmerstxt/programmerstxt_test.go b/internal/project/platform/programmerstxt/programmerstxt_test.go index 3ec39526..6b5bcc28 100644 --- a/internal/project/platform/programmerstxt/programmerstxt_test.go +++ b/internal/project/platform/programmerstxt/programmerstxt_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/platform/programmerstxt/programmerstxtschema_test.go b/internal/project/platform/programmerstxt/programmerstxtschema_test.go index cb57ba24..a4568116 100644 --- a/internal/project/platform/programmerstxt/programmerstxtschema_test.go +++ b/internal/project/platform/programmerstxt/programmerstxtschema_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/project.go b/internal/project/project.go index b5728533..3adaaa6e 100644 --- a/internal/project/project.go +++ b/internal/project/project.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/project_test.go b/internal/project/project_test.go index 25a1a31e..067cd249 100644 --- a/internal/project/project_test.go +++ b/internal/project/project_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projectdata/library.go b/internal/project/projectdata/library.go index 02346a8a..816f8f26 100644 --- a/internal/project/projectdata/library.go +++ b/internal/project/projectdata/library.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projectdata/packageindex.go b/internal/project/projectdata/packageindex.go index 2ff6538f..9a77ba28 100644 --- a/internal/project/projectdata/packageindex.go +++ b/internal/project/projectdata/packageindex.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projectdata/packageindex_test.go b/internal/project/projectdata/packageindex_test.go index 93a89f02..cc416740 100644 --- a/internal/project/projectdata/packageindex_test.go +++ b/internal/project/projectdata/packageindex_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projectdata/platform.go b/internal/project/projectdata/platform.go index aa4da58a..eff5e4c4 100644 --- a/internal/project/projectdata/platform.go +++ b/internal/project/projectdata/platform.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projectdata/platform_test.go b/internal/project/projectdata/platform_test.go index 5f8e0ae6..e4333ab0 100644 --- a/internal/project/projectdata/platform_test.go +++ b/internal/project/projectdata/platform_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projectdata/projectdata.go b/internal/project/projectdata/projectdata.go index 6b3021ed..b3463860 100644 --- a/internal/project/projectdata/projectdata.go +++ b/internal/project/projectdata/projectdata.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projectdata/sketch.go b/internal/project/projectdata/sketch.go index 8b028f4a..6b8b8b6d 100644 --- a/internal/project/projectdata/sketch.go +++ b/internal/project/projectdata/sketch.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projecttype/projecttype.go b/internal/project/projecttype/projecttype.go index 9f8f30c9..171c7487 100644 --- a/internal/project/projecttype/projecttype.go +++ b/internal/project/projecttype/projecttype.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/projecttype/projecttype_test.go b/internal/project/projecttype/projecttype_test.go index 5b3945cc..92538229 100644 --- a/internal/project/projecttype/projecttype_test.go +++ b/internal/project/projecttype/projecttype_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/sketch/sketch.go b/internal/project/sketch/sketch.go index 6712c887..2927b114 100644 --- a/internal/project/sketch/sketch.go +++ b/internal/project/sketch/sketch.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/project/sketch/sketch_test.go b/internal/project/sketch/sketch_test.go index dc007be9..c8c611eb 100644 --- a/internal/project/sketch/sketch_test.go +++ b/internal/project/sketch/sketch_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/result/feedback/feedback.go b/internal/result/feedback/feedback.go index 2bd63118..939e1bed 100644 --- a/internal/result/feedback/feedback.go +++ b/internal/result/feedback/feedback.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/result/outputformat/outputformat.go b/internal/result/outputformat/outputformat.go index db1734b7..ee4fe479 100644 --- a/internal/result/outputformat/outputformat.go +++ b/internal/result/outputformat/outputformat.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/result/outputformat/outputformat_test.go b/internal/result/outputformat/outputformat_test.go index 711c20b1..2e704394 100644 --- a/internal/result/outputformat/outputformat_test.go +++ b/internal/result/outputformat/outputformat_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/result/result.go b/internal/result/result.go index 327fed8a..f504b7fc 100644 --- a/internal/result/result.go +++ b/internal/result/result.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/result/result_test.go b/internal/result/result_test.go index d0ee7543..7dcab52d 100644 --- a/internal/result/result_test.go +++ b/internal/result/result_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rule.go b/internal/rule/rule.go index 2bd6271a..df15c6a1 100644 --- a/internal/rule/rule.go +++ b/internal/rule/rule.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rule_test.go b/internal/rule/rule_test.go index 83627c07..0df8d46e 100644 --- a/internal/rule/rule_test.go +++ b/internal/rule/rule_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/ruleconfiguration/ruleconfiguration.go b/internal/rule/ruleconfiguration/ruleconfiguration.go index 89721672..5c861f77 100644 --- a/internal/rule/ruleconfiguration/ruleconfiguration.go +++ b/internal/rule/ruleconfiguration/ruleconfiguration.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/ruleconfiguration/ruleconfiguration_test.go b/internal/rule/ruleconfiguration/ruleconfiguration_test.go index 1b015011..fe1e7615 100644 --- a/internal/rule/ruleconfiguration/ruleconfiguration_test.go +++ b/internal/rule/ruleconfiguration/ruleconfiguration_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/library.go b/internal/rule/rulefunction/library.go index f75b0d8e..6c9beff9 100644 --- a/internal/rule/rulefunction/library.go +++ b/internal/rule/rulefunction/library.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/library_test.go b/internal/rule/rulefunction/library_test.go index 1178e557..b4199004 100644 --- a/internal/rule/rulefunction/library_test.go +++ b/internal/rule/rulefunction/library_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/packageindex.go b/internal/rule/rulefunction/packageindex.go index c18e083d..f3f24c5b 100644 --- a/internal/rule/rulefunction/packageindex.go +++ b/internal/rule/rulefunction/packageindex.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/packageindex_test.go b/internal/rule/rulefunction/packageindex_test.go index a2100947..f396516a 100644 --- a/internal/rule/rulefunction/packageindex_test.go +++ b/internal/rule/rulefunction/packageindex_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/platform.go b/internal/rule/rulefunction/platform.go index bbdee73d..fd22ae12 100644 --- a/internal/rule/rulefunction/platform.go +++ b/internal/rule/rulefunction/platform.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/platform_test.go b/internal/rule/rulefunction/platform_test.go index da7aca93..6a5eed07 100644 --- a/internal/rule/rulefunction/platform_test.go +++ b/internal/rule/rulefunction/platform_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/rulefunction.go b/internal/rule/rulefunction/rulefunction.go index 9e3c0c4b..9659b78e 100644 --- a/internal/rule/rulefunction/rulefunction.go +++ b/internal/rule/rulefunction/rulefunction.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/rulefunction_test.go b/internal/rule/rulefunction/rulefunction_test.go index 60e98281..939448b9 100644 --- a/internal/rule/rulefunction/rulefunction_test.go +++ b/internal/rule/rulefunction/rulefunction_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/sketch.go b/internal/rule/rulefunction/sketch.go index bb16a12b..fa5e48b2 100644 --- a/internal/rule/rulefunction/sketch.go +++ b/internal/rule/rulefunction/sketch.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulefunction/sketch_test.go b/internal/rule/rulefunction/sketch_test.go index 0a856534..fa910d13 100644 --- a/internal/rule/rulefunction/sketch_test.go +++ b/internal/rule/rulefunction/sketch_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulelevel/rulelevel.go b/internal/rule/rulelevel/rulelevel.go index fe87f290..44037b0f 100644 --- a/internal/rule/rulelevel/rulelevel.go +++ b/internal/rule/rulelevel/rulelevel.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/rulelevel/rulelevel_test.go b/internal/rule/rulelevel/rulelevel_test.go index e418edab..d441224f 100644 --- a/internal/rule/rulelevel/rulelevel_test.go +++ b/internal/rule/rulelevel/rulelevel_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/ruleresult/ruleresult.go b/internal/rule/ruleresult/ruleresult.go index 5c1e523e..b03396a6 100644 --- a/internal/rule/ruleresult/ruleresult.go +++ b/internal/rule/ruleresult/ruleresult.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/schema/compliancelevel/compliancelevel.go b/internal/rule/schema/compliancelevel/compliancelevel.go index 22ab61fe..430f5709 100644 --- a/internal/rule/schema/compliancelevel/compliancelevel.go +++ b/internal/rule/schema/compliancelevel/compliancelevel.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/schema/parsevalidationresult.go b/internal/rule/schema/parsevalidationresult.go index 0395ac6b..1404b0c4 100644 --- a/internal/rule/schema/parsevalidationresult.go +++ b/internal/rule/schema/parsevalidationresult.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/schema/schema.go b/internal/rule/schema/schema.go index 09469c32..7aeb737f 100644 --- a/internal/rule/schema/schema.go +++ b/internal/rule/schema/schema.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/schema/schema_test.go b/internal/rule/schema/schema_test.go index 8a6e780a..38de3cc3 100644 --- a/internal/rule/schema/schema_test.go +++ b/internal/rule/schema/schema_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/internal/rule/schema/schemadata/bindata.go b/internal/rule/schema/schemadata/bindata.go index d007d082..9172a85f 100644 --- a/internal/rule/schema/schemadata/bindata.go +++ b/internal/rule/schema/schemadata/bindata.go @@ -77,6 +77,7 @@ var _arduinoBoardsTxtDefinitionsSchemaJson = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-definitions-schema.json", "title": "Shared definitions for the Arduino boards.txt schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "propertiesObjects": { "menu": { @@ -1315,7 +1316,7 @@ var _arduinoBoardsTxtPermissiveSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-permissive-schema.json", "title": "Arduino boards.txt JSON permissive schema", "description": "boards.txt contains the boards definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt", - "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "menu": { @@ -1350,7 +1351,7 @@ var _arduinoBoardsTxtSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-schema.json", "title": "Arduino boards.txt JSON schema", "description": "boards.txt contains the boards definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt", - "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "menu": { @@ -1385,7 +1386,7 @@ var _arduinoBoardsTxtStrictSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-boards-txt-strict-schema.json", "title": "Arduino boards.txt JSON strict schema", "description": "boards.txt contains the boards definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#boardstxt", - "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the boards.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "menu": { @@ -1419,6 +1420,7 @@ var _arduinoLibraryPropertiesDefinitionsSchemaJson = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-definitions-schema.json", "title": "Shared definitions for the Arduino library.properties schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "definitions": { "general": { @@ -2293,7 +2295,7 @@ var _arduinoLibraryPropertiesPermissiveSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-permissive-schema.json", "title": "Arduino library.properties JSON permissive schema", "description": "library.properties is the metadata file for Arduino libraries. This schema defines the minimum requirements for this file. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata", - "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { @@ -2373,7 +2375,7 @@ var _arduinoLibraryPropertiesSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-schema.json", "title": "Arduino library.properties JSON schema", "description": "library.properties is the metadata file for Arduino libraries. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata", - "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { @@ -2453,7 +2455,7 @@ var _arduinoLibraryPropertiesStrictSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-library-properties-strict-schema.json", "title": "Arduino library.properties strict JSON schema", "description": "library.properties is the metadata file for Arduino libraries. This schema defines the recommended format. See: https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata", - "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the Arduino library.properties format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { @@ -2532,6 +2534,7 @@ var _arduinoPackageIndexDefinitionsSchemaJson = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-definitions-schema.json", "title": "Shared definitions for the Arduino Package Index schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "root": { "base": { @@ -3994,6 +3997,7 @@ var _arduinoPackageIndexPermissiveSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-permissive-schema.json", "title": "Arduino Package Index JSON permissive schema", "description": "Package indexes define Arduino hardware packages. See: https://arduino.github.io/arduino-cli/latest/package_index_json-specification/. This schema defines the minimum accepted data format.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "allOf": [ { "$ref": "arduino-package-index-definitions-schema.json#/definitions/root/permissive/object" @@ -4022,6 +4026,7 @@ var _arduinoPackageIndexSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-schema.json", "title": "Arduino Package Index JSON schema", "description": "Package indexes define Arduino hardware packages. See: https://arduino.github.io/arduino-cli/latest/package_index_json-specification/. This schema defines the data format per the specification.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "allOf": [ { "$ref": "arduino-package-index-definitions-schema.json#/definitions/root/specification/object" @@ -4050,6 +4055,7 @@ var _arduinoPackageIndexStrictSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-package-index-strict-schema.json", "title": "Arduino Package Index JSON strict schema", "description": "Package indexes define Arduino hardware packages. See: https://arduino.github.io/arduino-cli/latest/package_index_json-specification/. This schema defines the best practices for the data format, above and beyond the specification.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "allOf": [ { "$ref": "arduino-package-index-definitions-schema.json#/definitions/root/strict/object" @@ -4077,6 +4083,7 @@ var _arduinoPlatformTxtDefinitionsSchemaJson = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-definitions-schema.json", "title": "Shared definitions for the Arduino platform.txt schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "propertiesObjects": { "name": { @@ -5887,7 +5894,7 @@ var _arduinoPlatformTxtPermissiveSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-permissive-schema.json", "title": "Arduino platform.txt JSON permissive schema", "description": "platform.txt contains the platform definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#platformtxt", - "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { @@ -5976,7 +5983,7 @@ var _arduinoPlatformTxtSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-schema.json", "title": "Arduino platform.txt JSON schema", "description": "platform.txt contains the platform definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#platformtxt", - "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { @@ -6065,7 +6072,7 @@ var _arduinoPlatformTxtStrictSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-platform-txt-strict-schema.json", "title": "Arduino platform.txt JSON strict schema", "description": "platform.txt contains the platform definitions of Arduino platforms. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#platformtxt", - "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the platform.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "properties": { "name": { @@ -6153,6 +6160,7 @@ var _arduinoProgrammersTxtDefinitionsSchemaJson = []byte(`{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-definitions-schema.json", "title": "Shared definitions for the Arduino programmers.txt schemas", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "definitions": { "propertiesObjects": { "programmerID": { @@ -6379,7 +6387,7 @@ var _arduinoProgrammersTxtPermissiveSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-permissive-schema.json", "title": "Arduino programmers.txt JSON permissive schema", "description": "programmers.txt contains the definitions of Arduino hardware programmers. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#programmerstxt", - "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "patternProperties": { ".+": { @@ -6409,7 +6417,7 @@ var _arduinoProgrammersTxtSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-schema.json", "title": "Arduino programmers.txt JSON schema", "description": "programmers.txt contains the definitions of Arduino hardware programmers. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#programmerstxt", - "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "patternProperties": { ".+": { @@ -6439,7 +6447,7 @@ var _arduinoProgrammersTxtStrictSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/arduino-programmers-txt-strict-schema.json", "title": "Arduino programmers.txt JSON strict schema", "description": "programmers.txt contains the definitions of Arduino hardware programmers. See: https://arduino.github.io/arduino-cli/latest/platform-specification/#programmerstxt", - "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap", + "$comment": "For information on the programmers.txt format, see https://godoc.org/github.com/arduino/go-properties-orderedmap. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "patternProperties": { ".+": { @@ -6469,6 +6477,7 @@ var _generalDefinitionsSchemaJson = []byte(`{ "$id": "https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/schemas/general-definitions-schema.json", "title": "Shared definitions", "description": "Definitions for use in schemas.", + "$comment": "This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.", "type": "object", "definitions": { "patternObjects": { diff --git a/internal/util/test/test.go b/internal/util/test/test.go index 304b4f66..1beeb72b 100644 --- a/internal/util/test/test.go +++ b/internal/util/test/test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/main.go b/main.go index 71bc571c..86221a4c 100644 --- a/main.go +++ b/main.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html // diff --git a/ruledocsgen/main.go b/ruledocsgen/main.go index a3c9538e..f6166083 100644 --- a/ruledocsgen/main.go +++ b/ruledocsgen/main.go @@ -1,3 +1,19 @@ +// This file is part of Arduino Lint. +// +// Copyright 2020 ARDUINO SA (http://www.arduino.cc/) +// +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. +// The terms of this license can be found at: +// https://www.gnu.org/licenses/gpl-3.0.en.html +// +// You can be released from the requirements of the above licenses by purchasing +// a commercial license. Buying such a license is mandatory if you want to +// modify or otherwise use the software for commercial activities involving the +// Arduino software without disclosing the source code of your own applications. +// To purchase a commercial license, send an email to license@arduino.cc. + // Package main generates Markdown documentation for Arduino Lint's rules. package main diff --git a/ruledocsgen/main_test.go b/ruledocsgen/main_test.go index 934da92b..2ab6c1a7 100644 --- a/ruledocsgen/main_test.go +++ b/ruledocsgen/main_test.go @@ -2,8 +2,9 @@ // // Copyright 2020 ARDUINO SA (http://www.arduino.cc/) // -// This software is released under the GNU General Public License version 3, -// which covers the main part of Arduino Lint. +// This software is released under the GNU General Public License, either +// version 3 of the License, or (at your option) any later version. +// This license covers the main part of Arduino Lint. // The terms of this license can be found at: // https://www.gnu.org/licenses/gpl-3.0.en.html //