aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/.codeclimate.yml
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-06-13 10:29:50 -0400
committerSean Griffin <sean@seantheprogrammer.com>2016-06-13 10:29:50 -0400
commit7d883b829307944f6d7c273f3915ee7059ee3771 (patch)
treec52c113d65c5fb5093f5d317e45b57af9a2fd61a /activerecord/.codeclimate.yml
parent01fc08f694d317911f6a141f2255eaa0881b02a9 (diff)
downloadrails-7d883b829307944f6d7c273f3915ee7059ee3771.tar.gz
rails-7d883b829307944f6d7c273f3915ee7059ee3771.tar.bz2
rails-7d883b829307944f6d7c273f3915ee7059ee3771.zip
Add codeclimate and rubocop config files
We're going to be experimenting with a new bot for them. This will not cause anything to start affecting new PRs yet, but it will have data sent to them so they can do "dry run" stuff on their end. The rubocop file is based on our documented style guide. I've only included rules which are either already consistently applied throughout the entire codebase, or where added lines should be following the guideline regardless of the surrounding code (such as hash syntax)
Diffstat (limited to 'activerecord/.codeclimate.yml')
-rw-r--r--activerecord/.codeclimate.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/activerecord/.codeclimate.yml b/activerecord/.codeclimate.yml
new file mode 100644
index 0000000000..877c67873d
--- /dev/null
+++ b/activerecord/.codeclimate.yml
@@ -0,0 +1,27 @@
+engines:
+ rubocop:
+ enabled: true
+
+ratings:
+ paths:
+ - "**.rb"
+
+exclude_paths:
+ - actioncable/lib/rails/generators/
+ - actioncable/test/
+ - actionmailer/lib/rails/generators/
+ - actionmailer/test/
+ - actionpack/test/
+ - actionview/test/
+ - activejob/lib/rails/generators/
+ - activejob/test/
+ - activemodel/test/
+ - activerecord/lib/rails/generators/
+ - activerecord/test/
+ - activesupport/test/
+ - railties/lib/rails/generators/
+ - railties/test/
+ - ci/
+ - guides/
+ - tasks/
+ - tools/