-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy path.ameba.yml
67 lines (62 loc) · 1.8 KB
/
.ameba.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# This configuration file was generated by `ameba --gen-config`
# on 2021-03-28 23:23:51 UTC using Ameba version 0.14.0.
# The point is for the user to remove these configuration records
# one by one as the reported problems are removed from the code base.
# Problems found: 52
# Run `ameba --only Style/VerboseBlock` for details
Style/VerboseBlock:
Description: Identifies usage of collapsible single expression blocks.
ExcludeCallsWithBlock: true
ExcludeMultipleLineBlocks: false
ExcludePrefixOperators: true
ExcludeOperators: false
ExcludeSetters: false
MaxLength: 50
Excluded:
- examples/web.cr
- spec/middleware_spec.cr
- spec/sidekiq_spec.cr
- spec/spec_helper.cr
- spec/api_spec.cr
- spec/web_spec.cr
- spec/job_spec.cr
- spec/worker_spec.cr
- spec/retry_spec.cr
- spec/sidekiq/server/fetch_spec.cr
- src/sidekiq/server/fetch.cr
- src/sidekiq/middleware.cr
- src/sidekiq/web_helpers.cr
- src/sidekiq/api.cr
Enabled: true
Severity: Convention
Documentation/DocumentationAdmonition:
Enabled: false
# Problems found: 1
# Run `ameba --only Lint/LiteralInCondition` for details
Lint/LiteralInCondition:
Description: Disallows useless conditional statements that contain a literal in
place of a variable or predicate function
Excluded:
- spec/middleware_spec.cr
Enabled: true
Severity: Warning
Lint/MissingBlockArgument:
Enabled: false
Lint/NotNil:
Enabled: false
# Problems found: 18
# Run `ameba --only Lint/UselessAssign` for details
Lint/UselessAssign:
Description: Disallows useless variable assignments
Excluded:
- src/sidekiq/web.cr
Enabled: true
Severity: Warning
Naming/AccessorMethodName:
Excluded:
- src/sidekiq/web_helpers.cr
Naming/BlockParameterName:
Enabled: false
Naming/AsciiIdentifiers:
Excluded:
- src/sidekiq/server/heartbeat.cr