-
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.
Merge pull request #17 from gregoranders/development
Closes #5
- Loading branch information
Showing
11 changed files
with
118 additions
and
16 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/public/** | ||
#/public/** | ||
*.config.js |
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
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
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
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,64 @@ | ||
# Code Climate on localhost | ||
|
||
## Docker image sizes | ||
|
||
```sh | ||
codeclimate/codeclimate 110MB | ||
codeclimate/codeclimate-eslint 1.25GB | ||
codeclimate/codeclimate-structure 5.16GB | ||
codeclimate/codeclimate-duplication 5.16GB | ||
codeclimate/codeclimate-tslint 559MB | ||
codeclimate/codeclimate-editorconfig 74.1MB | ||
codeclimate/codeclimate-fixme 58.8MB | ||
codeclimate/codeclimate-git-legal 373MB | ||
``` | ||
|
||
### Initial docker images | ||
|
||
```sh | ||
#!/usr/bin/env sh | ||
|
||
docker pull codeclimate/codeclimate-structure | ||
docker pull codeclimate/codeclimate-duplication | ||
docker pull codeclimate/codeclimate | ||
|
||
# vim: tw=78 ft=sh ts=2 sw=2 sts=2 nu: | ||
``` | ||
|
||
### Script for code climate | ||
|
||
```sh | ||
#!/usr/bin/env sh | ||
|
||
CODE_DIRECTORY=$(pwd) | ||
|
||
docker run \ | ||
--interactive --tty --rm \ | ||
--env CODECLIMATE_CODE="${CODE_DIRECTORY}" \ | ||
--volume "${CODE_DIRECTORY}":/code \ | ||
--volume /var/run/docker.sock:/var/run/docker.sock \ | ||
--volume /tmp/cc:/tmp/cc \ | ||
codeclimate/codeclimate $@ | ||
|
||
docker run --interactive --tty --rm --env CODECLIMATE_CODE=\"./\" --volume \"./\":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze | ||
|
||
# vim: tw=78 ft=sh ts=2 sw=2 sts=2 nu: | ||
``` | ||
|
||
### Install engines | ||
|
||
```sh | ||
[script above] engines:install duplication structure eslint nodesecurity requiresafe | ||
``` | ||
|
||
### Analyze code | ||
|
||
```sh | ||
[script above] analyze | ||
``` | ||
|
||
or | ||
|
||
```sh | ||
npm run codeclimate | ||
``` |
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
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
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
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
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