Skip to content

Fix https://github.com/cmake-lint/cmake-lint issues in CMakeLists.txt files

Raresh Rus requested to merge nmariusp/libksieve:work/nmariusp/cmakelint into master

Fix issues:

Total Errors: 4
./src/kmanagesieve/CMakeLists.txt:35: Extra spaces between 'if' and its () [whitespace/extra]
./src/kmanagesieve/CMakeLists.txt:40: Extra spaces between 'if' and its () [whitespace/extra]
./src/kmanagesieve/CMakeLists.txt:95: Extra spaces between 'if' and its () [whitespace/extra]
./src/kmanagesieve/CMakeLists.txt:116: Extra spaces between 'if' and its () [whitespace/extra]
Total Errors: 3
./src/ksievecore/util/autotests/CMakeLists.txt:4: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/util/autotests/CMakeLists.txt:6: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/util/autotests/CMakeLists.txt:9: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 3
./src/ksievecore/managescriptsjob/autotests/CMakeLists.txt:6: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/managescriptsjob/autotests/CMakeLists.txt:8: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/managescriptsjob/autotests/CMakeLists.txt:11: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 4
./src/ksievecore/sieveimapinstance/autotests/CMakeLists.txt:6: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/sieveimapinstance/autotests/CMakeLists.txt:7: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/sieveimapinstance/autotests/CMakeLists.txt:9: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/sieveimapinstance/autotests/CMakeLists.txt:12: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 2
./src/ksievecore/vacation/autotests/CMakeLists.txt:9: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksievecore/vacation/autotests/CMakeLists.txt:12: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 3
./src/ksievecore/CMakeLists.txt:96: Extra spaces between 'if' and its () [whitespace/extra]
./src/ksievecore/CMakeLists.txt:201: Extra spaces between 'if' and its () [whitespace/extra]
./src/ksievecore/CMakeLists.txt:228: Extra spaces between 'if' and its () [whitespace/extra]
Total Errors: 1
./src/ksieveui/scriptsparsing/tests/CMakeLists.txt:8: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 10
./src/ksieveui/editor/autotests/CMakeLists.txt:4: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:6: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:14: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:15: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:18: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:21: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:22: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:25: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:27: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/autotests/CMakeLists.txt:28: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 2
./src/ksieveui/editor/webengine/autotests/CMakeLists.txt:4: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/editor/webengine/autotests/CMakeLists.txt:8: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 1
./src/ksieveui/editor/tests/CMakeLists.txt:10: Line ends in whitespace [whitespace/eol]
Total Errors: 3
./src/ksieveui/widgets/autotests/CMakeLists.txt:4: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/widgets/autotests/CMakeLists.txt:6: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/widgets/autotests/CMakeLists.txt:9: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 1
./src/ksieveui/autocreatescripts/autotests/CMakeLists.txt:21: Extra spaces between 'if' and its () [whitespace/extra]
Total Errors: 4
./src/ksieveui/sievescriptdebugger/autotests/CMakeLists.txt:6: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/sievescriptdebugger/autotests/CMakeLists.txt:11: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/sievescriptdebugger/autotests/CMakeLists.txt:13: Extra spaces between 'if' and its () [whitespace/extra]
./src/ksieveui/sievescriptdebugger/autotests/CMakeLists.txt:14: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 1
./src/ksieveui/vacation/autotests/CMakeLists.txt:19: Line ends in whitespace [whitespace/eol]
Total Errors: 6
./src/ksieveui/CMakeLists.txt:345: Extra spaces between 'if' and its () [whitespace/extra]
./src/ksieveui/CMakeLists.txt:377: Extra spaces between 'if' and its () [whitespace/extra]
./src/ksieveui/CMakeLists.txt:468: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/CMakeLists.txt:469: Mismatching spaces inside () after command [whitespace/mismatch]
./src/ksieveui/CMakeLists.txt:471: Extra spaces between 'if' and its () [whitespace/extra]
./src/ksieveui/CMakeLists.txt:501: Extra spaces between 'if' and its () [whitespace/extra]
Total Errors: 1
./src/ksieve/CMakeLists.txt:25: Extra spaces between 'if' and its () [whitespace/extra]
Total Errors: 1
./autotests/CMakeLists.txt:5: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 4
./CMakeLists.txt:48: Extra spaces between 'if' and its () [whitespace/extra]
./CMakeLists.txt:74: Extra spaces between 'if' and its () [whitespace/extra]
./CMakeLists.txt:98: Weird indentation; use 2 spaces [whitespace/indent]
./CMakeLists.txt:99: Expression repeated inside endif; better to use only endif() [readability/logic]

Merge request reports

Loading