This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit 0f546a1 1 parent cd7ed29 commit 0f546a1 Copy full SHA for 0f546a1
File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 90
90
<exec dir =" ${repo.root}" command =" ${composer.bin}/blt-console lint:twig ${repo.root} ${docroot}/modules/custom ${docroot}/themes/custom" logoutput =" true" checkreturn =" true" passthru =" true" level =" ${blt.exec_level}" />
91
91
</target >
92
92
93
- <target name =" validate:twig:files" description =" Validates twig syntax on custom twig files." >
94
- <fail unless =" files" message =" Missing files parameter." />
95
- <exec dir =" ${repo.root}" command =" ${composer.bin}/blt-console lint:twig ${repo.root} ${files}" logoutput =" true" checkreturn =" true" passthru =" true" level =" ${blt.exec_level}" />
96
- </target >
97
-
98
93
</project >
Original file line number Diff line number Diff line change 12
12
13
13
echo " Sniffing staged files via PHP Code Sniffer..."
14
14
${ROOT_DIR} /vendor/bin/blt validate:phpcs:files -Dfiles=" $LIST " -silent -emacs || exit 1;
15
- echo " Linting staged twig files..."
16
- ${ROOT_DIR} /vendor/bin/blt validate:twig:files -Dfiles= " $LIST " -silent -emacs || exit 1;
15
+ echo " Linting custom twig files..."
16
+ ${ROOT_DIR} /vendor/bin/blt validate:twig -silent -emacs || exit 1;
17
17
echo " Validating composer.json..."
18
- composer validate -q || echo ' composer.json is not valid. Run `composer validate` for more information.' && exit 1;
18
+ composer validate -q || (echo ' composer.json is not valid. Run `composer validate` for more information.' && exit 1; )
19
+ echo " Ok!"
19
20
20
21
# Return the status of the last run command.
21
22
exit $?
You can’t perform that action at this time.
0 commit comments