rubocop
https://github.com/bbatsov/rubocop
Ruby
A Ruby static code analyzer, based on the community Ruby style guide.
RuboCop::ConfigLoaderResolver#merge_with_default
Merges the given configuration with the default one. If AllCops:DisabledByDefault is true, it changes the Enabled params so that only cops from user configuration are enabled. If AllCops::EnabledByDefault is true, it changes the Enabled params so that only cops explicitly disabled in user configuration are disabled.
Edit
git clone [email protected]:bbatsov/rubocop.git
cd rubocop
open lib/rubocop/config_loader_resolver.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RuboCop--ConfigLoaderResolver-merge_with_default-for-pr
# Commit to gitgit add lib/rubocop/config_loader_resolver.rbgit commit -m "better docs for RuboCop::ConfigLoaderResolver#merge_with_default"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RuboCop--ConfigLoaderResolver-merge_with_default-for-pr
hub pull-request
# Celebrate!