-
Notifications
You must be signed in to change notification settings - Fork 672
/
format.yaml
110 lines (92 loc) · 1.71 KB
/
format.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
main:
depends_on:
- java
- nim
- c
- rust
- ruby
- objc
- javascript
- scala
- cpp
- go
- csharp
- elixir
- swift
- php
- crystal
- python
- config
java:
commands:
- find -type f -name '*.java' -exec clang-format -style=google -i {} \;
dir: java
nim:
commands:
- find -type f -name '*.nim' -exec nimpretty {} \;
dir: nim
c:
commands:
- find -type f -name '.c' -exec clang-format -i {} \;
dir: c
rust:
commands:
- find -type f -name '*.rs' -exec rustfmt {} \;
dir: rust
ruby:
commands:
- rubocop -a
dir: ruby
objc:
commands:
- find -type f -name '*.m' -exec clang-format -i {} \;
dir: objc
javascript:
commands:
- prettier --write '**/*.js'
dir: javascript
scala:
commands:
- find -type f -name '*.scala' -exec scalafmt {} \;
dir: scala
cpp:
commands:
- find -type f -name '*.cpp' -exec clang-format -i [} \;
dir: cpp
go:
commands:
- find -type f -name '*.go' -exec gofmt -w {} \;
dir: go
csharp:
commands:
- find -type f -name '*.cs' -exec astyle --mode=cs {} \;
dir: csharp
elixir:
commands:
- find -type f -name '*.ex' -exec mix format {} \;
dir: elixir
swift:
commands:
- find -type f -name '*.swift' -exec swiflint {} \;
dir: swift
php:
commands:
- ~/.config/composer/vendor/bin/php-cs-fixer fix --verbose --rules=@PSR1,@PSR2 --using-cache=no .
dir: php
crystal:
commands:
- crystal tool format .
dir: crystal
python:
commands:
- find -type f -name '*.py' -exec autopep8 -i {} \;
- black
dir: python
config:
commands:
- prettier "**/**/*.json" --write
dir: .
kotlin:
commands:
- ktlint -F "**/*.kt"
dir: kotlin