summaryrefslogtreecommitdiff
path: root/.php-cs-fixer.dist.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2026-03-06 22:51:10 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2026-03-06 22:51:10 +0000
commit2fcc21dd42c7c20ca6112f0edfafc56922948217 (patch)
treed6d267ae788d99e11956249b90ed6139247ebd89 /.php-cs-fixer.dist.php
parenta6e225a0df8de8473d824e943b236474a14ff724 (diff)
Add PHP script to generate the markdown table of Neovim keymaps
Diffstat (limited to '.php-cs-fixer.dist.php')
-rw-r--r--.php-cs-fixer.dist.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
new file mode 100644
index 0000000..6e89bee
--- /dev/null
+++ b/.php-cs-fixer.dist.php
@@ -0,0 +1,18 @@
+<?php
+
+# php84Packages.php-cs-fixer is currently installed.
+# The commented out options are because they don't work with 84.
+# I tried to install 85 but that installs an old version of cs that is not compatible with php85
+# At some point I can install CS 85.
+
+$finder = PhpCsFixer\Finder::create()
+ ->in(__DIR__);
+
+return (new PhpCsFixer\Config())
+ ->setRules([
+ '@PSR12' => true,
+# 'strict_param' => true,
+ 'array_syntax' => ['syntax' => 'short'],
+# 'declare_strict_types' => true,
+ ])
+ ->setFinder($finder);