All Projects → mateuszszklarek → danger-flutter_lint

mateuszszklarek / danger-flutter_lint

Licence: MIT license
A Danger Plugin to lint dart files using flutter analyze command line interface.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to danger-flutter lint

danger-auto label
Enable to set label automatically from Danger. This is made from Danger plugin.
Stars: ✭ 15 (-46.43%)
Mutual labels:  danger, danger-plugin
danger-plugin-flow
Ensure all JS files that get touched in a PR are flow typed
Stars: ✭ 23 (-17.86%)
Mutual labels:  danger, danger-plugin
danger-plugin-lint-report
No description or website provided.
Stars: ✭ 17 (-39.29%)
Mutual labels:  danger, danger-plugin
danger-swift-xcodesummary
A Danger-Swift plugin that adds build errors, warnings and unit tests results generated from xcodebuild to your Danger report
Stars: ✭ 72 (+157.14%)
Mutual labels:  danger, danger-plugin
danger-eslint
A Danger plugin for linting javascript with eslint.
Stars: ✭ 13 (-53.57%)
Mutual labels:  danger, danger-plugin
danger-mention
Danger plugin to automatically mention potential reviewers on pull requests
Stars: ✭ 29 (+3.57%)
Mutual labels:  danger, danger-plugin
Danger
🚫 Stop saying "you forgot to …" in code review (in Ruby)
Stars: ✭ 4,691 (+16653.57%)
Mutual labels:  danger
Danger Js
⚠️ Stop saying "you forgot to …" in code review
Stars: ✭ 4,076 (+14457.14%)
Mutual labels:  danger
help-me
When there's none to go to. In times of danger or trouble, there is nowhere to seek help from. Help-me comes with an innovative solution to the above problem. It will automatically send notifications to your nearby people and it will be the moral duty of the people to help the person in danger.
Stars: ✭ 20 (-28.57%)
Mutual labels:  danger
detekt-hint
Detection of design principle violations in Kotlin as a plugin to detekt.
Stars: ✭ 63 (+125%)
Mutual labels:  danger
danger-action
Execute danger action for GitHub Actions.
Stars: ✭ 24 (-14.29%)
Mutual labels:  danger

danger-flutter_lint

Gem Build Status codecov

A Danger Plugin to lint dart files using flutter analyze command line interface.

Installation

Add this line to your application's Gemfile:

$ gem 'danger-flutter_lint'

Or install it yourself as:

$ gem install danger-flutter_lint

Usage

Flutter Analyze doesn't give an option to generate report but you can achieve this easily using regular shell command (locally or on CI):

$ flutter analyze > flutter_analyze_report.txt

It will add output from flutter analyze command to flutter_analyze_report.txt.

Now you need to set report_path and invoke lint in your Dangerfile.

flutter_lint.report_path = "flutter_analyze_report.txt"
flutter_lint.lint

This will add markdown table with summary into your PR.

Or make Danger comment directly on the line instead of printing a Markdown table (GitHub only)

flutter_lint.lint(inline_mode: true)

Default value for inline_mode parameter is false.

Lint only added/modified files

If you're dealing with a legacy project, with tons of warnings, you may want to lint only new/modified files. You can easily achieve that, setting the only_modified_files parameter to true.

flutter_lint.only_modified_files = true
flutter_lint.report_path = "flutter_analyze_report.txt"
flutter_lint.lint

Development

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

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mateuszszklarek/danger-flutter_lint.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].