๐Ÿ“ฆ mataku / danger-local_rules

A Danger plugin to manage local rules.

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
danger-pluginruby
๐Ÿ“ฅ Clone https://github.com/mataku/danger-local_rules.git
HTTPS git clone https://github.com/mataku/danger-local_rules.git
SSH git clone git@github.com:mataku/danger-local_rules.git
CLI gh repo clone mataku/danger-local_rules
Takuma Homma Takuma Homma :wave: unused gems 8badbd5 4 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ example
๐Ÿ“ lib
๐Ÿ“ spec
๐Ÿ“„ .gitignore
๐Ÿ“„ .rubocop.yml
๐Ÿ“„ changelog.md
๐Ÿ“„ Gemfile
๐Ÿ“„ Guardfile
๐Ÿ“„ LICENSE.txt
๐Ÿ“„ Rakefile
๐Ÿ“„ README.md
๐Ÿ“„ README.md

danger-local_rules

A Danger plugin to manage local rules.

Installation

$ gem install danger-local_rules

Usage

Create .danger_local_rules.yml in project root, and add contents to fail or warn.

# See: example/.danger_local_rules.yml
failure:
  'legacyFunc': ':cry:'
warning:
  'TODO': 'You should check'
  'FIXME': 'Yet?'

Add this to Dangerfile.

# Optional: you can specify yml file path. (Default: $projectRoot/.danger_local_rules)
# local_rules.rules_file = './scripts/file.yml'
local_rules.check

Changelog

See changelog.md.

Development

  • Clone this repo
  • Run bundle install to setup dependencies.
  • Run bundle exec rake spec to run the tests.
  • Use bundle exec guard to automatically have tests run as you make changes.
  • Make your changes.