-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds codeclimate configuration files
- Loading branch information
1 parent
fdb9e96
commit 34e50b0
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
version: "2" # required to adjust maintainability checks | ||
|
||
prepare: | ||
# Fetch the configuration from our guides site: | ||
fetch: | ||
# Fetch the Rubocop Ruby + Rails configuration files: | ||
- url: "https://raw.githubusercontent.com/IcaliaLabs/guides/master/best_practices/code-analysis/rubocop/0.60/core.yml" | ||
path: ".rubocop.yml" | ||
- url: "https://raw.githubusercontent.com/IcaliaLabs/guides/master/best_practices/code-analysis/rubocop/0.60/rails.yml" | ||
path: ".rubocop-rails.yml" | ||
|
||
# Fetch the reek rules: | ||
- url: "https://raw.githubusercontent.com/IcaliaLabs/guides/master/best_practices/code-analysis/reek-rails.yml" | ||
path: ".reek.yml" | ||
|
||
# Fetch the SCSS Lint Rules: | ||
- url: "https://raw.githubusercontent.com/IcaliaLabs/guides/master/best_practices/code-analysis/.scss-lint.yml" | ||
path: ".scss-lint.yml" | ||
|
||
checks: | ||
argument-count: | ||
config: | ||
threshold: 4 | ||
complex-logic: | ||
config: | ||
threshold: 4 | ||
file-lines: | ||
config: | ||
threshold: 250 | ||
method-complexity: | ||
config: | ||
threshold: 5 | ||
method-count: | ||
config: | ||
threshold: 20 | ||
method-lines: | ||
config: | ||
threshold: 25 | ||
nested-control-flow: | ||
config: | ||
threshold: 4 | ||
return-statements: | ||
config: | ||
threshold: 4 | ||
similar-code: | ||
config: | ||
threshold: # language-specific defaults. an override will affect all languages. | ||
identical-code: | ||
config: | ||
threshold: # language-specific defaults. an override will affect all languages. | ||
|
||
plugins: | ||
rubocop: | ||
enabled: true | ||
channel: rubocop-0-60 | ||
config: | ||
file: ".rubocop-rails.yml" | ||
eslint: | ||
enabled: false | ||
csslint: | ||
enabled: true | ||
scss-lint: | ||
enabled: true | ||
brakeman: | ||
enabled: true | ||
bundler-audit: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
reek: | ||
enabled: true | ||
shellcheck: | ||
enabled: true | ||
|
||
exclude_patterns: | ||
- ".rubocop*.yml" | ||
- "spec/" | ||
- "node_modules/" | ||
- "!spec/support/helpers" | ||
- "config/" | ||
- "db/" | ||
- "spec/" | ||
- "vendor/" | ||
- "coverage/" | ||
- "bin/" | ||
- ".idea/" | ||
- "Guardfile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: testapp | ||
|
||
features: | ||
- github | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# NOTE: only doing this in development as some production environments (Heroku) | ||
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper | ||
# NOTE: to have a dev-mode tool do its thing in production. | ||
if Rails.env.development? | ||
RailsERD.load_tasks | ||
end |