File tree Expand file tree Collapse file tree 8 files changed +41
-7
lines changed Expand file tree Collapse file tree 8 files changed +41
-7
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,26 @@ options:
7
7
commits :
8
8
filters :
9
9
Type :
10
+ - build
11
+ # - chore
12
+ - ci
13
+ - docs
10
14
- feat
11
15
- fix
12
16
- perf
13
17
- refactor
14
- - docs
15
- - test
16
- - ci
17
18
- revert
19
+ - style
20
+ - test
18
21
commit_groups :
19
22
title_maps :
23
+ chore : Chores
20
24
ci : CI
21
- # feat: Features
22
- # fix: Bug Fixes
23
- # perf: Performance Improvements
24
- # refactor: Code Refactoring
25
+ feat : Features
26
+ fix : Bug Fixes
27
+ perf : Performance Improvements
28
+ refactor : Code Refactoring
29
+ test : Tests
25
30
header :
26
31
pattern : " ^(\\ w*)(?:\\ (([\\ w\\ $\\ .\\ -\\ *\\ s]*)\\ ))?\\ :\\ s(.*)$"
27
32
pattern_maps :
Original file line number Diff line number Diff line change 39
39
->append (glob (__DIR__ .'/{*.php,.*.php} ' , GLOB_BRACE ))
40
40
->append ([
41
41
__DIR__ .'/composer-updater ' ,
42
+ __DIR__ .'/readme-lint ' ,
42
43
])
43
44
->notPath ([
44
45
'bootstrap/* ' ,
Original file line number Diff line number Diff line change 1
1
# ai-commit
2
2
3
+ [ // ] : # ( https://looka.com )
3
4
[ // ] : # ( <p align="center"><img src="resources/docs/logo.png" alt="logo" style="width: 62%; height: 62%;"></p> )
4
5
<p align =" center " ><img src =" resources/docs/ai-commit-vhs.gif " alt =" ai-commit-vhs " ></p >
5
6
Original file line number Diff line number Diff line change 1
1
# ai-commit
2
2
3
+ [ // ] : # ( https://looka.com )
3
4
[ // ] : # ( <p align="center"><img src="resources/docs/logo.png" alt="logo" style="width: 62%; height: 62%;"></p> )
4
5
<p align =" center " ><img src =" resources/docs/ai-commit-vhs.gif " alt =" ai-commit-vhs " ></p >
5
6
Original file line number Diff line number Diff line change 1
1
# ai-commit
2
2
3
+ [ // ] : # ( https://looka.com )
3
4
[ // ] : # ( <p align="center"><img src="resources/docs/logo.png" alt="logo" style="width: 62%; height: 62%;"></p> )
4
5
<p align =" center " ><img src =" resources/docs/ai-commit-vhs.gif " alt =" ai-commit-vhs " ></p >
5
6
Original file line number Diff line number Diff line change 162
162
" @composer-validate" ,
163
163
" @composer-unused" ,
164
164
" @md-lint" ,
165
+ " @readme-lint" ,
165
166
" @lint" ,
166
167
" @style-lint" ,
167
168
" @test" ,
211
212
],
212
213
"psalm" : " @php ./vendor/bin/psalm" ,
213
214
"psalm-baseline" : " @psalm --update-baseline" ,
215
+ "readme-lint" : " @php ./readme-lint --ansi -v" ,
214
216
"rector" : " @php ./vendor/bin/rector --ansi -v" ,
215
217
"rector-dry-run" : " @rector --dry-run" ,
216
218
"release" : " @php ./vendor/bin/monorepo-builder release --ansi -vvv" ,
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env php
2
+ <?php
3
+
4
+ declare (strict_types=1 );
5
+
6
+ /**
7
+ * This file is part of the guanguans/ai-commit.
8
+ *
9
+ * (c) guanguans <ityaozm@gmail.com>
10
+ *
11
+ * This source file is subject to the MIT license that is bundled.
12
+ */
13
+ require __DIR__ .'/vendor/autoload.php ' ;
14
+
15
+ collect (glob ('README-*.md ' ))->each (static function (string $ file ): void {
16
+ if (count (file ($ file )) !== count (file ('README.md ' ))) {
17
+ echo "The file [ $ file] has a different number of lines than [README.md] \n" ;
18
+ exit (1 );
19
+ }
20
+ });
21
+
22
+ exit (0 );
Original file line number Diff line number Diff line change 70
70
__DIR__ .'/tests ' ,
71
71
__DIR__ .'/.*.php ' ,
72
72
__DIR__ .'/*.php ' ,
73
+ __DIR__ .'/readme-lint ' ,
73
74
]);
74
75
75
76
$ rectorConfig ->skip ([
You can’t perform that action at this time.
0 commit comments