https://github.com/manicmaniac/danger-danger_plugin_lint
A Danger plugin to lint a Danger plugin
https://github.com/manicmaniac/danger-danger_plugin_lint
danger danger-plugin linter
Last synced: about 2 months ago
JSON representation
A Danger plugin to lint a Danger plugin
- Host: GitHub
- URL: https://github.com/manicmaniac/danger-danger_plugin_lint
- Owner: manicmaniac
- License: mit
- Created: 2022-11-06T09:13:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T16:38:43.000Z (7 months ago)
- Last Synced: 2024-10-23T23:16:21.347Z (7 months ago)
- Topics: danger, danger-plugin, linter
- Language: Ruby
- Homepage: https://rubygems.org/gems/danger-danger_plugin_lint
- Size: 237 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-danger - danger-danger_plugin_lint - A Danger plugin to lint a danger plugin. (Plugins / Ruby (danger))
README
# danger-danger\_plugin\_lint
[](https://github.com/manicmaniac/danger-danger_plugin_lint/actions/workflows/test.yml)
[](https://codeclimate.com/github/manicmaniac/danger-danger_plugin_lint/maintainability)
[](https://codeclimate.com/github/manicmaniac/danger-danger_plugin_lint/test_coverage)
[](https://rubygems.org/gems/danger-danger_plugin_lint)A Danger plugin to lint Danger plugin.
This plugin does the almost same thing as `danger plugins lint` command but it runs on Danger.
## Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add danger-danger_plugin_lint
Or you can write the following code in your Gemfile.
```ruby
gem 'danger-peripher'
```If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install danger-danger_plugin_lint
## Usage
If you want to run this plugin in your plugin's repository, just add the following code in your Dangerfile.
```ruby
plugin_lint.lint_docs
```If you want to lint a plugin outside of your plugin's `lib` directory, you can specify the path to the plugin.
```ruby
plugin_lint.lint_docs '/path/to/other_plugin.rb'
```Or you can specify a gem file.
```ruby
plugin_lint.lint_docs '/path/to/other_plugin.gem'
```If `warnings_as_errors` is set `true`, it reports anything as error.
```ruby
plugin_lint.lint_docs warnings_as_errors: true
```## Development
After checking out the repo, run `bundle install` to install dependencies. Then, run `bundle exec rake` to run the tests.
To install this gem onto your local machine, run `bundle exec rake install`.
To release a new version, update the version number in `lib/danger_plugin_lint/version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).## Contributing
Bug reports and pull requests are welcome on [GitHub Issues](https://github.com/manicmaniac/danger-danger_plugin_lint).
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).