Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

issue-37: initial commit for codeclimate yml generation #83

Merged
merged 1 commit into from Jan 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions buffalo/cmd/app_generators.go
Expand Up @@ -14,6 +14,7 @@ func newAppGenerator(data gentronics.Data) *gentronics.Generator {
g.Add(gentronics.NewFile("Procfile", nProcfile))
g.Add(gentronics.NewFile("Procfile.development", nProcfileDev))
g.Add(gentronics.NewFile(".buffalo.dev.yml", nRefresh))
g.Add(gentronics.NewFile(".codeclimate.yml", nCodeClimate))
g.Add(gentronics.NewFile("actions/app.go", nApp))
g.Add(gentronics.NewFile("actions/home.go", nHomeHandler))
g.Add(gentronics.NewFile("actions/home_test.go", nHomeHandlerTest))
Expand Down Expand Up @@ -345,3 +346,26 @@ const nProcfileDev = `web: buffalo dev
assets: webpack --watch
{{/if}}
`

const nCodeClimate = `engines:
golint:
enabled: true
govet:
enabled: true
gofmt:
enabled: true
fixme:
enabled: true
ratings:
paths:
- "**.go"
exclude_paths:
- "grifts/**/*"
- "**/*_test.go"
- "*_test.go"
- "**_test.go"
- "logs/*"
- "public/*"
- "templates/*"

`