/box-linter

http://naosuke2dx.hatenablog.com/entry/2019/05/03/162729

Primary LanguageRuby

box linter

How To Use

Settings on box.com

  • put boxlint.txt in target folder
    • the file doesn't affect descendant file/folder

Execution

  1. copy .env from .env.sample
  2. bundle install
  3. bundle exec ruby exec.rb

Syntax of boxlint.txt

Overview

  • write in yaml

list

key value type default description
description boolean false Force the entry of the 'description'
name string(regexp) nil Force the name pattern of the file/folder
ignore_pattern array nil 対象外のファイル名パターン(regexp)

sample

description: true
name: '^[0-9]{2}\..+$'
ignore_pattern:
  - '^_'
  - 'tmp'