|
| 1 | +on-unmatched = "info" |
| 2 | + |
| 3 | +[formatter.clang-format] |
| 4 | +command = "clang-format" |
| 5 | +options = ["-i"] |
| 6 | + |
| 7 | +# Only target the exact directories we want |
| 8 | +includes = [ |
| 9 | + # Non-recursive for src root |
| 10 | + "src/*.cpp", |
| 11 | + "src/*.h", |
| 12 | + |
| 13 | + # Recursive for specific subdirectories |
| 14 | + "src/entities/**/*.cpp", |
| 15 | + "src/entities/**/*.h", |
| 16 | + "src/utils/**/*.cpp", |
| 17 | + "src/utils/**/*.h", |
| 18 | + "src/helpers/**/*.cpp", |
| 19 | + "src/helpers/**/*.h", |
| 20 | + "src/services/**/*.cpp", |
| 21 | + "src/services/**/*.h", |
| 22 | + "src/widgets/**/*.cpp", |
| 23 | + "src/widgets/**/*.h", |
| 24 | + "src/dialogs/**/*.cpp", |
| 25 | + "src/dialogs/**/*.h", |
| 26 | + "src/api/**/*.cpp", |
| 27 | + "src/api/**/*.h", |
| 28 | + "src/libraries/piwiktracker/**/*.cpp", |
| 29 | + "src/libraries/piwiktracker/**/*.h", |
| 30 | + "src/libraries/qmarkdowntextedit/**/*.cpp", |
| 31 | + "src/libraries/qmarkdowntextedit/**/*.h", |
| 32 | + |
| 33 | + # Recursive for tests |
| 34 | + "tests/unit_tests/**/*.cpp", |
| 35 | + "tests/unit_tests/**/*.h", |
| 36 | +] |
| 37 | + |
| 38 | +# Explicitly exclude everything else |
| 39 | +excludes = [ |
| 40 | + # Exclude everything not explicitly included |
| 41 | + "src/libraries/**/*.cpp", |
| 42 | + "src/libraries/**/*.cxx", |
| 43 | + "src/libraries/**/*.c", |
| 44 | + "src/libraries/**/*.h", |
| 45 | + "src/libraries/**/*.hxx", |
| 46 | + # You can add more specific exclusions here as needed |
| 47 | +] |
| 48 | + |
| 49 | +[formatter.prettier] |
| 50 | +command = "prettier" |
| 51 | +options = ["--write"] |
| 52 | +includes = [ |
| 53 | + "webpage/**/*.vue", |
| 54 | + "webpage/**/*.js", |
| 55 | + "*.md", |
| 56 | + "*.yaml", |
| 57 | + "*.yml", |
| 58 | +] |
| 59 | + |
| 60 | +# Example generated by ../examples.sh |
| 61 | +[formatter.shfmt] |
| 62 | +command = "shfmt" |
| 63 | +excludes = [] |
| 64 | +includes = ["*.sh", "*.bash", "*.envrc", "*.envrc.*"] |
| 65 | +options = ["-s", "-w", "-i", "2"] |
| 66 | + |
| 67 | +[formatter.nixfmt-rfc-style] |
| 68 | +command = "nixfmt" |
| 69 | +excludes = [] |
| 70 | +includes = ["*.nix"] |
| 71 | +options = [] |
0 commit comments