Skip to content

Commit 366c317

Browse files
committed
Enable ameba linter
1 parent 16fc35e commit 366c317

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.ameba.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This configuration file was generated by `ameba --gen-config`
2+
# on 2017-12-23 21:39:50 +0200 using Ameba version 0.3.0.
3+
# The point is for the user to remove these configuration records
4+
# one by one as the reported problems are removed from the code base.
5+
6+
# Problems found: 3
7+
# Run `ameba --only LargeNumbers` for details
8+
LargeNumbers:
9+
Description: Disallows usage of large numbers without underscore
10+
IntMinDigits: 5
11+
Enabled: true
12+
Excluded:
13+
- spec/controllers/oauth_controller_spec.cr

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ language: crystal
88
services: postgresql
99
before_script:
1010
- psql -c "create database $DATABASE_NAME;" -U postgres
11+
install:
12+
- crystal deps
13+
script:
14+
- crystal spec
15+
- bin/ameba

shard.yml

+3
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ development_dependencies:
5050
webmock:
5151
github: manastech/webmock.cr
5252
branch: master
53+
54+
ameba:
55+
github: veelenga/ameba

spec/support/factories.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require "../../src/models/**"
22

33
def user(**params)
44
attributes = {
5-
:uid => (rand() * 10000).to_i.to_s,
5+
:uid => (rand() * 10_000).to_i.to_s,
66
:login => "johndoe",
77
:provider => "github",
88
} of Symbol | String => String | JSON::Type

0 commit comments

Comments
 (0)