This plugin uses 'clang-format' to look for code style violations in added
lines on the current MR / PR, and offers inline patches.
By default only Objective-C files, with extensions .h, .m, and .mm are
checked.
Add the following string to your Gemfile:
gem 'danger-code_style_validation', :git => 'https://github.com/flix-tech/danger-code_style_validation.git'Inside your Dangerfile :
code_style_validation.checkTo check files with extensions other than the default ones:
code_style_validation.check file_extensions: ['.hpp', '.cpp']To ignore specific paths, use ignore_file_patterns :
code_style_validation.check ignore_file_patterns: [/^Pods\//]- Clone this repo
- Run
bundle installto setup dependencies. - Run
bundle exec rake specto run the tests. - Use
bundle exec guardto automatically have tests run as you make changes. - Make your changes.
