LoginSignup
2

More than 3 years have passed since last update.

爆速でyamllintを.yml形式以外のファイルにも適用する

Posted at

.yml形式以外のファイルにも、yamllintを適用する方法

  1. yamllintを実行するディレクトリに下記内容の.yamllintを置く

※yamllintのデフォルト設定では、.yaml.yml.yamlintの3形式しかサポートしていないため、追加で拡張子を指定する必要があります。

---
extends: default

yaml-files:
  - '*.dig' # 今回追加したいファイル形式
  - '*.yaml'
  - '*.yml'
  - '.yamllint'

  1. $ yamllint . で動作確認する

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2