File tree 4 files changed +22
-1
lines changed
4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -8,3 +8,8 @@ language: crystal
8
8
services : postgresql
9
9
before_script :
10
10
- psql -c "create database $DATABASE_NAME;" -U postgres
11
+ install :
12
+ - crystal deps
13
+ script :
14
+ - crystal spec
15
+ - bin/ameba
Original file line number Diff line number Diff line change @@ -50,3 +50,6 @@ development_dependencies:
50
50
webmock :
51
51
github : manastech/webmock.cr
52
52
branch : master
53
+
54
+ ameba :
55
+ github : veelenga/ameba
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ require "../../src/models/**"
2
2
3
3
def user (** params)
4
4
attributes = {
5
- :uid => (rand() * 10000 ).to_i.to_s,
5
+ :uid => (rand() * 10_000 ).to_i.to_s,
6
6
:login => " johndoe" ,
7
7
:provider => " github" ,
8
8
} of Symbol | String => String | JSON ::Type
You can’t perform that action at this time.
0 commit comments