PHP code example of oliverthiele / typo3-fluid-linter

1. Go to this page and download the library: Download oliverthiele/typo3-fluid-linter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

oliverthiele / typo3-fluid-linter example snippets



use OliverThiele\FluidLinter\Config\LintConfig;

return (new LintConfig())
    ->rule('debug-viewhelper', severity: 'warning');


use OliverThiele\FluidLinter\Config\LintConfig;

return (new LintConfig())
    ->rule('debug-viewhelper', severity: 'error');


use OliverThiele\FluidLinter\Config\LintConfig;

return (new LintConfig())
    ->disableRule('xml-declaration')       // never flag <?xml 
bash
vendor/bin/fluid-lint --config=.fluid-lint.live.php packages/