Help us understand the problem. What is going on with this article?

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

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

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

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

---
extends: default

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

  1. $ yamllint . で動作確認する
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away