summaryrefslogtreecommitdiff
path: root/scripts/t/QtQA/PerlChecks.pm
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-081-27/+2
| | | | | | | | | | | Replace the current license header in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: master Task-number: QTBUG-67283 Change-Id: I6ae743e055bbf1cf514abe604157068923fb03c6 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix licensingJani Heikkinen2017-06-011-17/+12
| | | | | | | | | | - Remove unnecessary license files and license header templates - Tools and test are licensed under GPL-EXCEPT nowdays, update correct license header there - Update test data to match current license headers Change-Id: Ia25c9e0989be326e0edeb0325af399edc26f0054 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Fix path normalization on WindowsSimon Hausmann2015-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | In order to find out which files to run our perl syntax check on, we use git ls-files to get a list of all files and then compare it with Perl::Critic's all_per_files. Unfortunately all_perl_files returns paths with backwards slashes on Windows, while git ls-files returns paths with forward slashes. The only overlap between those two lists were paths that contained no slashes at all, which means that only setup.pl, test.pl, etc. were actually syntax checked. The root cause is that apply { canonpath } qx(git ls-files) does not work as expected. I don't know why, but it does work when assigning $_ explicitly. Change-Id: I608445f276761452158a9096dce04539ff273b24 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Remove dependency on git for running the testsSimon Hausmann2015-05-221-4/+15
| | | | | | | | If we cannot find a .git directory (like in the new CI system), then fall back to finding existing files, similar to the fallback in tst_licenses.pl. Change-Id: Ie8abc0d1f21dfc1f8d38612c1ea0e0af79580f8c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Update copyright headersAntti Kokko2015-02-131-22/+14
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I5999ee256134fe82ab13f6f06fcd1d0aa150b688 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-141-1/+1
| | | | | | Change-Id: I02eaa709ff91d158a3e34f4e719254f2adce873e Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Janne Anttila <janne.anttila@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I0122cd74f6246a5f20eee2b33ceb328df77a32db Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Make perl-syntax-check, perl-critic-check only check files in gitRohan McGovern2012-03-011-0/+114
Previously these were searching for all perl files under the qtqa directory, even those which were not checked in to git. This was annoying as this could potentially include generated code or ad-hoc test scripts never intended to be added to git. Change-Id: I52d0fbc699b014a5e03507c59d9ecb91db13ee2c Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>