Sha256: 4a40b6face3ab1aa860fa4f34e3b8c11ef4a044ac60caf03bec46f9fe3dc3506
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
[](https://circleci.com/gh/ashfurrow/danger-rubocop) # Danger Rubocop A [Danger](https://github.com/danger/danger) plugin for [Rubocop](https://github.com/bbatsov/rubocop). ## Installation Add this line to your Gemfile: ```rb gem 'danger-rubocop' ``` ## Usage Run Ruby files through Rubocop. Results are passed out as a table in markdown. > Specifying custom config file. ```ruby rubocop.lint ``` > Lint specific files in a folder, when they change ```ruby public_files = (git.modified_files + git.added_files).select { |path| path.include?("/public/") } rubocop.lint public_files ``` #### Methods `lint(files: String)` Runs Ruby files through Rubocop. Generates a `markdown` list of warnings. ## License MIT
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-rubocop-0.4.1 | README.md |