93 Commits

Author SHA1 Message Date
Even Rouault
b5b720dbea
Add QOverload to test_banned_keywords.sh 2018-06-28 22:29:28 +02:00
Nyall Dawson
b0aaa9d11a Fix test 2018-06-21 15:33:29 +10:00
Nyall Dawson
78b07cdf31 Fix SC2196 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
4778498c94 Fix SC2034 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
5b375a2edf Fix SC2188 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
0e9a381534 Fix SC2103 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
040f1d1879 Fix SC2006 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
cab83c51a8 Fix SC2222 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
7ad85a451f Fix SC2004 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
00477ff910 Fix SC2068 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
11bb5afa0b Fix SC2035 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
fc20fc81f7 Fix SC2062 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
6c9484b923 Fix SC2181 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
36e38210db Fix SC2116 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
80d655598a Fix SC2219 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
4118bafc96 Fix all SC2164 warnings 2018-06-21 15:33:29 +10:00
Nyall Dawson
0d41925535 Disable all failing shellcheck checks 2018-06-21 15:33:29 +10:00
Nyall Dawson
7d938e8b94 [ci] Run shellcheck as part of code_layout build 2018-06-21 15:33:29 +10:00
Denis Rouzaud
a719605ef1 clean auto folders in sip test 2018-06-19 07:14:22 -04:00
Nyall Dawson
6470aacb33 Ban QScopedPointer/QSharedPointer 2018-06-17 15:09:07 +10:00
Nyall Dawson
e1ace09f76 Ban more obselete qt methods 2018-06-17 15:09:07 +10:00
Nyall Dawson
1d111ce741 Ban @ doxygen style annotations 2018-06-17 09:24:37 +10:00
Nyall Dawson
da487e2e34 Ban deprecated qMin/qMax/etc methods 2018-06-17 09:24:37 +10:00
Nyall Dawson
c705670947 Upgrade INT_ methods to numeric_limits 2018-06-17 09:24:37 +10:00
Nyall Dawson
17cd2fd5f3 More DBL_MIN/MAX_EPSILON upgrades 2018-06-17 09:24:37 +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
Denis Rouzaud
b2274258a4 fix sip test
only check for Python file if it is produced
2018-06-05 17:02:17 -08:00
Nyall Dawson
1395dc0e9c Add missing license headers 2018-06-04 11:30:32 +10:00
Nyall Dawson
23c3731121 Fix path to licensecheck in test 2018-06-04 11:30:32 +10:00
Nyall Dawson
4bb572f4d0 Move licensecheck to external folder 2018-06-04 11:30:32 +10:00
Nyall Dawson
4e0845b4c6 Include licensecheck.pl script in code_layout test folder
Seems to be the only way to get this functional under Travis.

TODO: remove when Travis is upgraded to a reasonably modern
Ubuntu version
2018-06-04 11:30:32 +10:00
Nyall Dawson
48b117e0db Fail check if licensecheck missing 2018-06-04 11:30:32 +10:00
Nyall Dawson
d16ec3e257 Add unit test for license headers 2018-06-04 11:30:32 +10:00
Denis Rouzaud
e5b02cd2a8 use dedicated files for auto additions 2018-06-03 11:07:09 -08:00
Denis Rouzaud
637f59ded1 fix server/app files and sipify test 2018-05-28 10:39:34 -08:00
Denis Rouzaud
6772f0d74e fix test 2018-05-28 10:39:34 -08:00
Denis Rouzaud
70f8266495 add test to check that \since and \deprecated are at the end of command blocks 2018-05-28 10:39:34 -08:00
Nyall Dawson
f8bc97030b Remove extra space added before first line of docstring 2018-05-28 08:22:11 +10:00
Nyall Dawson
c864d22d1f Add "get ..." to doxygen compliance blacklist
Should be "gets ..." for consistent tense, or better yet
"returns ..." for consistency.
2018-05-27 14:05:06 +10:00
Nyall Dawson
b6b08e96a0 Add 'accessor for' to doxygen compliance blacklist
Use "Returns the..." instead
2018-05-27 14:05:06 +10:00
Nyall Dawson
8f770c3f60 Add 'mutator for ' to doxygen compliance blacklist 2018-05-26 15:44:04 +10:00
Nyall Dawson
5e360f90e8 Add unit test to prevent deprecated methods without description
And add missing descriptions
2018-05-25 16:31:03 +10:00
Nyall Dawson
1c615c15cc More documentation compliance
Use Qt style "returns .." tense instead of "return ..", and lock
this in with a documentation compliance unit test
2018-05-25 15:09:00 +10:00
Nyall Dawson
2cb8a33884 Fix broken see also links 2018-05-25 11:16:18 +10:00
Nyall Dawson
a3c543dfda Fix test result 2018-05-25 11:16:18 +10:00
Nyall Dawson
fa912f5c1d Doxygen test also checks for broken 'see also' links 2018-05-25 11:16:18 +10:00
Nyall Dawson
8b1bbfe8ae Add compliance test to doxygen test
Tests for "non-compliant" doxygen strings, e.g. use of
- "getter for..." instead of "returns the..."
- "setter for..." instead of "sets the..."

Will be expanded in future to also test for:
- "return ..." instead of "returns ..."
- "set ..." instead of "sets ..."
2018-05-23 16:46:31 +10:00
Nyall Dawson
4082ef7fec Standardize member signature when comparing against acceptable undocumented members
Seems different doxygen versions result in slightly different whitepace
*inside* the member's signatures!
2018-05-23 11:53:52 +10:00
Nyall Dawson
91a792b8d8 Try to fix handling of undocumented members on Travis 2018-05-23 11:53:52 +10:00
Nyall Dawson
14cf46cdf6 Update list of acceptable missing docs 2018-05-23 11:53:52 +10:00