13 Commits

Author SHA1 Message Date
Nyall Dawson
1587117aa8 Add test to ban brace initialization of QVariant variables
This test checks that brace initializers are never used for
QVariant variables. On some compilers the value will be
converted to a list. and on others a list of lists.

Always use = initialization to avoid this ambiguity!
2021-02-25 16:44:36 +10:00
Denis Rouzaud
eddf6feb45 modernize CMakeLists.txt files 2020-11-12 07:14:46 +10:00
Juergen E. Fischer
ded7acc356 fix qgis_sip_uptodate #spellok 2020-11-05 22:37:19 +01:00
Nyall Dawson
85d543a739 Rename scripts to swap "-" for "_" for consistency
We had a confusing and unpredictable mix of script names with
- vs _, e.g. scripts/prepare-commit.sh vs scripts/sipify_all.sh

This unifies with the preferred _ convention for script file names
2020-04-28 02:22:33 +10:00
Juergen E. Fischer
2e7bebcf20 add code_layout test to verify that UIs either have a non-default window title or are not marked for translation 2020-04-24 16:30:45 +02:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
Nyall Dawson
7d938e8b94 [ci] Run shellcheck as part of code_layout build 2018-06-21 15:33:29 +10:00
Nyall Dawson
ce6fc8fe96 [ci] Add unit test for banned keywords
Flags use of keywords representing deprecated or other
"to be avoided" methods, e.g. use of DBL_MAX instead of
the type-safe std::numeric_limits<double>::max() method.
2018-06-17 09:24:37 +10:00
Nyall Dawson
d16ec3e257 Add unit test for license headers 2018-06-04 11:30:32 +10:00
Denis Rouzaud
8a5d53325c [doxygen] add test to ensure code snippet use \code command 2017-12-19 21:19:45 -04:00
Denis Rouzaud
e6f657cf81 add a test to check that returns are placed before since and note in Doxygen 2017-12-16 10:45:52 -04:00
Denis Rouzaud
1d7ace1d51 add test to check that header has a corresponding sip file 2017-06-28 21:08:34 +02:00
Denis Rouzaud
fa5bd491fc run code_layout build from top CMakeLists
instead of adding an extra CMakeLists in .ci/travis/code_layout to build API doc, astyle and run tests (indentation, spelling, sip, doc coverage), the top CMakeLists has been adapted to allow not building core libraries and possibly just the static code layout
* astyle has been moved from /src/astyle to /lib/astyle (I would propose to move all external libraries, and possibly add git submodules)
2017-06-05 22:19:20 +02:00