How to Automize YAML Lint in TYPO3?

Category : YAML , By : Keval Pandya

Are you looking to implement YAML lint in TYPO3? For better TYPO3 code quality, To save your productive time, It’s always good practice to check TYPO3 Lint code, Let’s learn how! Always pass your TYPO3 YAML code with below lint.

Step 1. Install and Configure YAML Lint

// Install Python-PIP
apt install python-pip

// Install Python based YAMLINT
pip install yamllint

Step 2. Prepare .yamllint.yml

extends: default

    level: warning
    max-spaces-inside: 1
    level: warning
    max-spaces-inside: 1
    level: warning
    level: warning
  comments: disable
  comments-indentation: disable
  document-start: disable
    level: warning
    level: warning
    spaces: 2
    level: warning
    indent-sequences: consistent
  line-length: disable
  truthy: disable

ignore: |

Step 3. Code Review Your YAML Code

// Run YAML Lint
yamllint -c .yamllint.yml .

To keep improving, Do you have feedback and suggestions? Or, Are you facing any issues to implement above TYPO3 tutorial? Feel free to write your comment at below comment box; I'll happy to help you :)

Post Comment

Your email address will not be published. Required fields are marked *


Name is required!

Enter valid name

Valid email is required!

Enter valid email address

Comment is required!

Google Captcha Is Required!

Comments :

  • sonal July 25, 2020 At 12:45 pm
    It's really useful!

Stay up to date with our recent TYPO3 Blogs, news, & updates