Skip to content

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

Marius Pa requested to merge nmariusp/k3b:work/nmariusp/cmakelint into master

Fix issues:

Total Errors: 1
./src/services/CMakeLists.txt:14: Expression repeated inside endif; better to use only endif() [readability/logic]
Total Errors: 2
./src/CMakeLists.txt:273: Weird indentation; use 2 spaces [whitespace/indent]
./src/CMakeLists.txt:274: Weird indentation; use 2 spaces [whitespace/indent]
Total Errors: 1
./kioworkers/videodvd/CMakeLists.txt:23: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 1
./libk3b/tools/CMakeLists.txt:2: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 1
./libk3b/projects/movixcd/CMakeLists.txt:1: Tab found; please use spaces [whitespace/tabs]
Total Errors: 1
./libk3b/projects/videocd/CMakeLists.txt:4: Tab found; please use spaces [whitespace/tabs]
Total Errors: 2
./libk3b/projects/datacd/CMakeLists.txt:1: Mismatching spaces inside () after command [whitespace/mismatch]
./libk3b/projects/datacd/CMakeLists.txt:1: Tab found; please use spaces [whitespace/tabs]
Total Errors: 1
./libk3b/projects/mixedcd/CMakeLists.txt:1: Tab found; please use spaces [whitespace/tabs]
Total Errors: 7
./libk3b/scripts/CMakeLists.txt:6: Mismatching spaces inside () after command [whitespace/mismatch]
./libk3b/scripts/CMakeLists.txt:16: Tab found; please use spaces [whitespace/tabs]
./libk3b/scripts/CMakeLists.txt:17: Tab found; please use spaces [whitespace/tabs]
./libk3b/scripts/CMakeLists.txt:18: Tab found; please use spaces [whitespace/tabs]
./libk3b/scripts/CMakeLists.txt:19: Tab found; please use spaces [whitespace/tabs]
./libk3b/scripts/CMakeLists.txt:20: Tab found; please use spaces [whitespace/tabs]
./libk3b/scripts/CMakeLists.txt:21: Tab found; please use spaces [whitespace/tabs]
Total Errors: 1
./libk3b/videodvd/CMakeLists.txt:1: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 19
./libk3b/jobs/CMakeLists.txt:30: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:31: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:32: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:33: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:34: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:35: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:38: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:39: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:40: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:41: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:44: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:45: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:46: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:47: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:48: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:49: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:52: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:53: Tab found; please use spaces [whitespace/tabs]
./libk3b/jobs/CMakeLists.txt:54: Tab found; please use spaces [whitespace/tabs]
Total Errors: 2
./libk3b/CMakeLists.txt:7: Mismatching spaces inside () after command [whitespace/mismatch]
./libk3b/CMakeLists.txt:225: Expression repeated inside endif; better to use only endif() [readability/logic]
Total Errors: 2
./libk3bdevice/CMakeLists.txt:43: Mismatching spaces inside () after command [whitespace/mismatch]
./libk3bdevice/CMakeLists.txt:47: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 3
./tests/CMakeLists.txt:33: Mismatching spaces inside () after command [whitespace/mismatch]
./tests/CMakeLists.txt:62: Line ends in whitespace [whitespace/eol]
./tests/CMakeLists.txt:94: Line ends in whitespace [whitespace/eol]
Total Errors: 3
./plugins/decoder/flac/CMakeLists.txt:2: Mismatching spaces inside () after command [whitespace/mismatch]
./plugins/decoder/flac/CMakeLists.txt:12: Mismatching spaces inside () after command [whitespace/mismatch]
./plugins/decoder/flac/CMakeLists.txt:16: Mismatching spaces inside () after command [whitespace/mismatch]
Total Errors: 12
./CMakeLists.txt:4: Extra spaces between 'set' and its () [whitespace/extra]
./CMakeLists.txt:5: Extra spaces between 'set' and its () [whitespace/extra]
./CMakeLists.txt:6: Extra spaces between 'set' and its () [whitespace/extra]
./CMakeLists.txt:7: Extra spaces between 'set' and its () [whitespace/extra]
./CMakeLists.txt:14: Extra spaces between 'set' and its () [whitespace/extra]
./CMakeLists.txt:67: Weird indentation; use 2 spaces [whitespace/indent]
./CMakeLists.txt:147: Expression repeated inside endif; better to use only endif() [readability/logic]
./CMakeLists.txt:152: Expression repeated inside else; better to use only else() [readability/logic]
./CMakeLists.txt:156: Expression repeated inside endif; better to use only endif() [readability/logic]
./CMakeLists.txt:190: Expression repeated inside endif; better to use only endif() [readability/logic]
./CMakeLists.txt:193: Expression repeated inside endif; better to use only endif() [readability/logic]
./CMakeLists.txt:308: Expression repeated inside endif; better to use only endif() [readability/logic]

Merge request reports