diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 000000000..b3d083078 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,21 @@ +engines: + rubocop: + enabled: true + eslint: + enabled: true + scss-lint: + enabled: true +ratings: + paths: + - "**.rb" + - "**.js" + - "_sass/**/*" +exclude_paths: +- "lib/tasks/**" +- _sass/_libs/**/* +- _sass/_core/syntax-highlighting.scss +- assets/js/lib/**/* +- bin +- node_modules +- .bundle +- .sass-cache diff --git a/.eslintrc b/.eslintrc index d06b47b5c..91febb966 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,16 +4,16 @@ env: extends: eslint:recommended rules: - brace-style: [warn, 1tbs] - curly: [warn, multi-line] - eqeqeq: warn - func-call-spacing: warn - linebreak-style: [warn, unix] - max-len: [warn, {code: 80}] - new-parens: warn - no-undef-init: warn - no-unused-expressions: warn - no-whitespace-before-property: warn - space-before-blocks: warn - space-before-function-paren: [warn, never] - spaced-comment: warn + brace-style: [1, "1tbs"] + curly: [1, "multi-line"] + eqeqeq: 1 + func-call-spacing: 1 + linebreak-style: [1, "unix"] + max-len: [1, 80] + new-parens: 1 + no-undef-init: 1 + no-unused-expressions: 1 + no-whitespace-before-property: 1 + space-before-blocks: 1 + space-before-function-paren: [1, "never"] + spaced-comment: 1 diff --git a/README.md b/README.md index 32651eebc..d1344dd45 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Code Climate](https://codeclimate.com/github/18F/micropurchase/badges/gpa.svg)](https://codeclimate.com/github/18F/18f.gsa.gov) + # 18F’s flagship website This repo houses the 18F website. We use the [Draft U.S. Web Design standards](https://standards.usa.gov/) as a front end framework. The site is built and served through [the Federalist platform](https://federalist.18f.gov).