dogapi 1.37.1 → 1.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.azure-pipelines/all.yml +16 -7
- data/.github/CODEOWNERS +10 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +77 -0
- data/.github/labeler.yml +5 -0
- data/.github/workflows/labeler.yml +11 -0
- data/.github/workflows/stale.yml +39 -0
- data/.rubocop_todo.yml +51 -71
- data/CHANGELOG.md +37 -0
- data/CONTRIBUTING.md +111 -0
- data/DEVELOPMENT.md +11 -0
- data/Gemfile +2 -0
- data/Gemfile_1.9 +13 -0
- data/LICENSE +21 -20
- data/LICENSE-3rdparty.csv +6 -0
- data/README.rdoc +14 -0
- data/RELEASING.md +46 -0
- data/SUPPORT.md +9 -0
- data/dogapi.gemspec +2 -0
- data/examples/custom_metric.rb +1 -1
- data/lib/capistrano/README.md +4 -1
- data/lib/capistrano/datadog.rb +8 -4
- data/lib/capistrano/datadog/v2.rb +9 -1
- data/lib/capistrano/datadog/v3.rb +10 -1
- data/lib/dogapi.rb +4 -0
- data/lib/dogapi/common.rb +90 -35
- data/lib/dogapi/event.rb +4 -0
- data/lib/dogapi/facade.rb +212 -10
- data/lib/dogapi/metric.rb +4 -0
- data/lib/dogapi/v1.rb +10 -0
- data/lib/dogapi/v1/alert.rb +4 -0
- data/lib/dogapi/v1/aws_integration.rb +117 -0
- data/lib/dogapi/v1/aws_logs.rb +107 -0
- data/lib/dogapi/v1/azure_integration.rb +85 -0
- data/lib/dogapi/v1/comment.rb +4 -0
- data/lib/dogapi/v1/dash.rb +10 -4
- data/lib/dogapi/v1/dashboard.rb +16 -0
- data/lib/dogapi/v1/dashboard_list.rb +4 -0
- data/lib/dogapi/v1/embed.rb +4 -0
- data/lib/dogapi/v1/event.rb +4 -0
- data/lib/dogapi/v1/gcp_integration.rb +76 -0
- data/lib/dogapi/v1/hosts.rb +4 -0
- data/lib/dogapi/v1/integration.rb +4 -0
- data/lib/dogapi/v1/metadata.rb +4 -0
- data/lib/dogapi/v1/metric.rb +4 -0
- data/lib/dogapi/v1/monitor.rb +20 -7
- data/lib/dogapi/v1/screenboard.rb +4 -0
- data/lib/dogapi/v1/search.rb +4 -0
- data/lib/dogapi/v1/service_check.rb +4 -0
- data/lib/dogapi/v1/service_level_objective.rb +113 -0
- data/lib/dogapi/v1/snapshot.rb +4 -0
- data/lib/dogapi/v1/synthetics.rb +80 -0
- data/lib/dogapi/v1/tag.rb +4 -0
- data/lib/dogapi/v1/usage.rb +4 -0
- data/lib/dogapi/v1/user.rb +4 -0
- data/lib/dogapi/v2.rb +4 -0
- data/lib/dogapi/v2/dashboard_list.rb +4 -0
- data/lib/dogapi/version.rb +5 -1
- data/spec/integration/alert_spec.rb +4 -0
- data/spec/integration/aws_integration_spec.rb +55 -0
- data/spec/integration/aws_logs_spec.rb +59 -0
- data/spec/integration/azure_integration_spec.rb +63 -0
- data/spec/integration/comment_spec.rb +5 -0
- data/spec/integration/common_spec.rb +4 -0
- data/spec/integration/dash_spec.rb +7 -1
- data/spec/integration/dashboard_list_spec.rb +4 -0
- data/spec/integration/dashboard_spec.rb +15 -1
- data/spec/integration/embed_spec.rb +4 -0
- data/spec/integration/event_spec.rb +5 -0
- data/spec/integration/gcp_integration_spec.rb +57 -0
- data/spec/integration/integration_spec.rb +4 -0
- data/spec/integration/metadata_spec.rb +4 -0
- data/spec/integration/metric_spec.rb +4 -0
- data/spec/integration/monitor_spec.rb +30 -1
- data/spec/integration/screenboard_spec.rb +4 -0
- data/spec/integration/search_spec.rb +4 -0
- data/spec/integration/service_check_spec.rb +4 -0
- data/spec/integration/service_level_objective_spec.rb +73 -0
- data/spec/integration/snapshot_spec.rb +4 -0
- data/spec/integration/synthetics_spec.rb +131 -0
- data/spec/integration/tag_spec.rb +4 -0
- data/spec/integration/usage_spec.rb +4 -0
- data/spec/integration/user_spec.rb +4 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/unit/capistrano_spec.rb +4 -0
- data/spec/unit/common_spec.rb +64 -7
- data/spec/unit/facade_spec.rb +4 -0
- metadata +37 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c18772d3cb81c83a5fd80ed6eb50c21860414635d0219dfea836673e272c3e52
|
4
|
+
data.tar.gz: 2a98454037254f50ea58c828be224c0906d6eb1ae7fa0f817e6f2df75b55c984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82b3841b8ae9209a25b434194463b0a37f830004fc608a6eb29184fb3972791db94434a81ca7542b26166e903d80346b6e49fe49e80d55b18115451fc15837b4
|
7
|
+
data.tar.gz: 51a17532ec14faf58ea93448c390bdda914e12d8300e754998915cd3792b7a375a98cf6240478da357172ed8e77e9cf01ac52bf15eb2b0c64685e23d6cc191eb
|
data/.azure-pipelines/all.yml
CHANGED
@@ -15,20 +15,20 @@ jobs:
|
|
15
15
|
vmImage: "Ubuntu-16.04"
|
16
16
|
strategy:
|
17
17
|
matrix:
|
18
|
-
Rb23:
|
19
|
-
RUBY_VERSION: '2.3.7'
|
20
|
-
TASK: spec
|
21
18
|
Rb24:
|
22
|
-
RUBY_VERSION: '2.4
|
19
|
+
RUBY_VERSION: '2.4'
|
23
20
|
TASK: spec
|
24
21
|
Rb25:
|
25
|
-
RUBY_VERSION: '2.5
|
22
|
+
RUBY_VERSION: '2.5'
|
26
23
|
TASK: spec
|
27
24
|
Rb26:
|
28
|
-
RUBY_VERSION: '2.6
|
25
|
+
RUBY_VERSION: '2.6'
|
26
|
+
TASK: spec
|
27
|
+
Rb27:
|
28
|
+
RUBY_VERSION: '2.7'
|
29
29
|
TASK: spec
|
30
30
|
Lint:
|
31
|
-
RUBY_VERSION: '2.6
|
31
|
+
RUBY_VERSION: '2.6'
|
32
32
|
TASK: rubocop
|
33
33
|
steps:
|
34
34
|
- task: UseRubyVersion@0
|
@@ -42,3 +42,12 @@ jobs:
|
|
42
42
|
displayName: 'bundle install'
|
43
43
|
- script: bundle exec rake $(TASK)
|
44
44
|
displayName: Run $(TASK) via bundle
|
45
|
+
- job: TestRuby19
|
46
|
+
pool:
|
47
|
+
vmImage: "Ubuntu-16.04"
|
48
|
+
steps:
|
49
|
+
# Until the `container` AZP resource supports being root in a container https://github.com/microsoft/azure-pipelines-agent/issues/2619 we need this long single line approach
|
50
|
+
# By default AZP clones the repo into a folder called `s` - https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#checkout-path
|
51
|
+
# Mount this repo into the container, overwrite the Gemfile with the Ruby 1.9.3 supported depdencies, and run tests
|
52
|
+
- script: docker run -v $(Agent.BuildDirectory)/s:/cloned_repo corgibytes/ruby-1.9.3 bin/bash -c "cd cloned_repo; mv Gemfile_1.9 Gemfile; bundle install --retry=3 --jobs=4; bundle exec rake spec"
|
53
|
+
displayName: "Run tests with Ruby 1.9.3"
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# See https://help.github.com/articles/about-codeowners/ for syntax
|
2
|
+
# Rules are matched bottom-to-top, so one team can own subdirectories
|
3
|
+
# and another team can own the rest of the directory.
|
4
|
+
|
5
|
+
# All your base
|
6
|
+
* @DataDog/integrations-tools-and-libraries
|
7
|
+
|
8
|
+
# Documentation
|
9
|
+
*.md @DataDog/baklava @DataDog/integrations-tools-and-libraries
|
10
|
+
LICENSE @DataDog/baklava @DataDog/integrations-tools-and-libraries
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
title: ''
|
5
|
+
labels: 'kind/bug'
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Describe the bug**
|
11
|
+
A clear and concise description of what the bug is.
|
12
|
+
|
13
|
+
Label the issue properly.
|
14
|
+
- Add `severity/` label.
|
15
|
+
- Add `documentation` label if this issue is related to documentation changes.
|
16
|
+
|
17
|
+
**To Reproduce**
|
18
|
+
Steps to reproduce the behavior:
|
19
|
+
1. Go to '...'
|
20
|
+
2. Click on '....'
|
21
|
+
3. Scroll down to '....'
|
22
|
+
4. See error
|
23
|
+
|
24
|
+
**Expected behavior**
|
25
|
+
A clear and concise description of what you expected to happen.
|
26
|
+
|
27
|
+
**Screenshots**
|
28
|
+
If applicable, add screenshots to help explain your problem.
|
29
|
+
|
30
|
+
**Environment and Versions (please complete the following information):**
|
31
|
+
A clear and precise description of your setup:
|
32
|
+
- version for this project in use.
|
33
|
+
- services, libraries, languages and tools list and versions.
|
34
|
+
|
35
|
+
**Additional context**
|
36
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
title: ''
|
5
|
+
labels: 'kind/feature-request'
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Note:**
|
11
|
+
If you have a feature request, you should [contact support](https://docs.datadoghq.com/help/) so the request can be properly tracked.
|
12
|
+
|
13
|
+
**Is your feature request related to a problem? Please describe.**
|
14
|
+
A clear and concise description of what the problem is.
|
15
|
+
|
16
|
+
**Describe the solution you'd like**
|
17
|
+
A clear and concise description of what you want to happen.
|
18
|
+
|
19
|
+
**Describe alternatives you've considered**
|
20
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
21
|
+
|
22
|
+
**Additional context**
|
23
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,77 @@
|
|
1
|
+
### Requirements for Contributing to this repository
|
2
|
+
|
3
|
+
* Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
|
4
|
+
* The pull request must only fix one issue, or add one feature, at the time.
|
5
|
+
* The pull request must update the test suite to demonstrate the changed functionality.
|
6
|
+
* After you create the pull request, all status checks must be pass before a maintainer reviews your contribution. For more details, please see [CONTRIBUTING](/CONTRIBUTING.md).
|
7
|
+
|
8
|
+
### What does this PR do?
|
9
|
+
|
10
|
+
<!--
|
11
|
+
|
12
|
+
What inspired you to submit this pull request?
|
13
|
+
Link to the issue describing the bug that you're fixing.
|
14
|
+
|
15
|
+
If there is not yet an issue for your bug, please open a new issue and then link to that issue in your pull request.
|
16
|
+
Note: In some cases, one person's "bug" is another person's "feature." If the pull request does not address an existing issue with the "bug" label, the maintainers have the final say on whether the current behavior is a bug.
|
17
|
+
|
18
|
+
-->
|
19
|
+
|
20
|
+
### Description of the Change
|
21
|
+
|
22
|
+
<!--
|
23
|
+
|
24
|
+
A brief description of the change being made with this pull request.
|
25
|
+
|
26
|
+
We must be able to understand the design of your change from this description.
|
27
|
+
If we can't get a good idea of what the code will be doing from the description here, the pull request may be closed at the maintainers' discretion.
|
28
|
+
Keep in mind that the maintainer reviewing this PR may not be familiar with or have worked with the code here recently, so please walk us through the concepts.
|
29
|
+
|
30
|
+
-->
|
31
|
+
|
32
|
+
### Alternate Designs
|
33
|
+
|
34
|
+
<!-- Explain what other alternates were considered and why the proposed version was selected -->
|
35
|
+
|
36
|
+
### Possible Drawbacks
|
37
|
+
|
38
|
+
<!-- What are the possible side-effects or negative impacts of the code change? -->
|
39
|
+
|
40
|
+
### Verification Process
|
41
|
+
|
42
|
+
<!--
|
43
|
+
|
44
|
+
What process did you follow to verify that your change has the desired effects?
|
45
|
+
|
46
|
+
- How did you verify that all new functionality works as expected?
|
47
|
+
- How did you verify that all changed functionality works as expected?
|
48
|
+
- How did you verify that the change has not introduced any regressions?
|
49
|
+
|
50
|
+
Describe the actions you performed (including scripts, commands you ran, etc.), and describe the results you observed.
|
51
|
+
|
52
|
+
-->
|
53
|
+
|
54
|
+
### Additional Notes
|
55
|
+
|
56
|
+
<!-- Anything else we should know when reviewing? -->
|
57
|
+
|
58
|
+
### Release Notes
|
59
|
+
|
60
|
+
<!--
|
61
|
+
|
62
|
+
If the PR title is not enough to describe the changes in a single line that explains this improvement in
|
63
|
+
terms that a user can understand. This text will be added in release notes.
|
64
|
+
|
65
|
+
For example, you can provide additionnal notes about feature deprecation or backward incompatible changes.
|
66
|
+
|
67
|
+
-->
|
68
|
+
|
69
|
+
### Review checklist (to be filled by reviewers)
|
70
|
+
|
71
|
+
- [ ] Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
|
72
|
+
- [ ] PR title must be written as a CHANGELOG entry [(see why)](/CONTRIBUTING.md#pull-request-title)
|
73
|
+
- [ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
|
74
|
+
- [ ] PR must have one `changelog/` label attached. If applicable it should have the `backward-incompatible` label attached.
|
75
|
+
- [ ] PR should not have `do-not-merge/` label attached.
|
76
|
+
- [ ] If Applicable, issue must have `kind/` and `severity/` labels attached at least.
|
77
|
+
|
data/.github/labeler.yml
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Configuration for https://github.com/actions/stale
|
2
|
+
|
3
|
+
name: "Stale issues and pull requests"
|
4
|
+
on:
|
5
|
+
schedule:
|
6
|
+
- cron: "0 0 * * *"
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
stale:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/stale@v1
|
13
|
+
with:
|
14
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
15
|
+
stale-issue-message: >-
|
16
|
+
Thanks for your contribution!
|
17
|
+
|
18
|
+
|
19
|
+
This issue has been automatically marked as stale because it has not had
|
20
|
+
activity in the last 30 days. Note that the issue will not be automatically
|
21
|
+
closed, but this notification will remind us to investigate why there's
|
22
|
+
been inactivity. Thank you for participating in the Datadog open source community.
|
23
|
+
|
24
|
+
|
25
|
+
If you would like this issue to remain open:
|
26
|
+
|
27
|
+
1. Verify that you can still reproduce the issue in the latest version of this project.
|
28
|
+
|
29
|
+
1. Comment that the issue is still reproducible and include updated details requested in the issue template.
|
30
|
+
days-before-stale: 30
|
31
|
+
days-before-close: 99999
|
32
|
+
stale-issue-label: 'stale'
|
33
|
+
exempt-issue-label: 'stale/exempt'
|
34
|
+
stale-pr-message: >-
|
35
|
+
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
|
36
|
+
|
37
|
+
Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity.
|
38
|
+
stale-pr-label: 'stale'
|
39
|
+
exempt-pr-label: 'stale/exempt'
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2020-01-30 14:50:03 +0100 using RuboCop version 0.49.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -36,29 +36,30 @@ Layout/CommentIndentation:
|
|
36
36
|
Exclude:
|
37
37
|
- 'lib/dogapi/event.rb'
|
38
38
|
|
39
|
-
# Offense count:
|
39
|
+
# Offense count: 1
|
40
40
|
# Cop supports --auto-correct.
|
41
41
|
Layout/EmptyLineAfterMagicComment:
|
42
42
|
Exclude:
|
43
43
|
- 'dogapi.gemspec'
|
44
|
-
- 'spec/integration/comment_spec.rb'
|
45
|
-
- 'spec/integration/event_spec.rb'
|
46
44
|
|
47
|
-
# Offense count:
|
45
|
+
# Offense count: 16
|
48
46
|
# Cop supports --auto-correct.
|
49
47
|
Layout/EmptyLines:
|
50
48
|
Exclude:
|
49
|
+
- 'config/deploy.rb'
|
50
|
+
- 'config/deploy/production.rb'
|
51
|
+
- 'config/deploy/staging.rb'
|
51
52
|
- 'lib/capistrano/datadog/v2.rb'
|
52
53
|
- 'lib/dogapi/facade.rb'
|
53
54
|
|
54
|
-
# Offense count:
|
55
|
+
# Offense count: 92
|
55
56
|
# Cop supports --auto-correct.
|
56
57
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
57
58
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
58
59
|
Layout/EmptyLinesAroundClassBody:
|
59
60
|
Enabled: false
|
60
61
|
|
61
|
-
# Offense count:
|
62
|
+
# Offense count: 4
|
62
63
|
# Cop supports --auto-correct.
|
63
64
|
Layout/EmptyLinesAroundMethodBody:
|
64
65
|
Exclude:
|
@@ -120,7 +121,7 @@ Layout/SpaceAfterComma:
|
|
120
121
|
Exclude:
|
121
122
|
- 'examples/custom_metric.rb'
|
122
123
|
|
123
|
-
# Offense count:
|
124
|
+
# Offense count: 83
|
124
125
|
# Cop supports --auto-correct.
|
125
126
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
126
127
|
# SupportedStyles: space, no_space
|
@@ -131,7 +132,6 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
131
132
|
- 'lib/dogapi/common.rb'
|
132
133
|
- 'lib/dogapi/event.rb'
|
133
134
|
- 'lib/dogapi/facade.rb'
|
134
|
-
- 'lib/dogapi/v1/dash.rb'
|
135
135
|
- 'lib/dogapi/v1/embed.rb'
|
136
136
|
- 'lib/dogapi/v1/event.rb'
|
137
137
|
- 'lib/dogapi/v1/metric.rb'
|
@@ -201,44 +201,48 @@ Lint/UselessAssignment:
|
|
201
201
|
Exclude:
|
202
202
|
- 'lib/capistrano/datadog.rb'
|
203
203
|
|
204
|
-
# Offense count:
|
204
|
+
# Offense count: 12
|
205
205
|
Metrics/AbcSize:
|
206
|
-
Max:
|
206
|
+
Max: 53
|
207
207
|
|
208
|
-
# Offense count:
|
208
|
+
# Offense count: 29
|
209
209
|
# Configuration parameters: CountComments, ExcludedMethods.
|
210
210
|
Metrics/BlockLength:
|
211
|
-
Max:
|
212
|
-
Exclude:
|
213
|
-
- 'spec/integration/monitor_spec.rb'
|
211
|
+
Max: 123
|
214
212
|
|
215
|
-
# Offense count:
|
213
|
+
# Offense count: 1
|
214
|
+
# Configuration parameters: CountComments.
|
215
|
+
Metrics/ClassLength:
|
216
|
+
Max: 105
|
217
|
+
|
218
|
+
# Offense count: 3
|
216
219
|
Metrics/CyclomaticComplexity:
|
217
|
-
Max:
|
220
|
+
Max: 9
|
218
221
|
|
219
|
-
# Offense count:
|
222
|
+
# Offense count: 16
|
220
223
|
# Configuration parameters: CountComments.
|
221
224
|
Metrics/MethodLength:
|
222
225
|
Max: 34
|
223
226
|
|
224
|
-
# Offense count:
|
227
|
+
# Offense count: 7
|
225
228
|
# Configuration parameters: CountKeywordArgs.
|
226
229
|
Metrics/ParameterLists:
|
227
230
|
Max: 7
|
228
231
|
|
229
|
-
# Offense count:
|
232
|
+
# Offense count: 2
|
230
233
|
Metrics/PerceivedComplexity:
|
231
|
-
Max:
|
234
|
+
Max: 10
|
232
235
|
|
233
|
-
# Offense count:
|
236
|
+
# Offense count: 19
|
234
237
|
Style/AccessorMethodName:
|
235
238
|
Exclude:
|
236
239
|
- 'lib/dogapi/facade.rb'
|
237
240
|
- 'lib/dogapi/v1/alert.rb'
|
238
241
|
- 'lib/dogapi/v1/dash.rb'
|
242
|
+
- 'lib/dogapi/v1/dashboard.rb'
|
239
243
|
- 'lib/dogapi/v1/embed.rb'
|
240
244
|
- 'lib/dogapi/v1/screenboard.rb'
|
241
|
-
- 'lib/dogapi/v1/
|
245
|
+
- 'lib/dogapi/v1/synthetics.rb'
|
242
246
|
- 'lib/dogapi/v1/user.rb'
|
243
247
|
|
244
248
|
# Offense count: 1
|
@@ -277,13 +281,13 @@ Style/ClassCheck:
|
|
277
281
|
- 'lib/dogapi/facade.rb'
|
278
282
|
- 'lib/dogapi/v1/event.rb'
|
279
283
|
|
280
|
-
# Offense count:
|
284
|
+
# Offense count: 3
|
281
285
|
# Cop supports --auto-correct.
|
282
286
|
Style/ClassMethods:
|
283
287
|
Exclude:
|
284
288
|
- 'lib/dogapi/common.rb'
|
285
289
|
|
286
|
-
# Offense count:
|
290
|
+
# Offense count: 3
|
287
291
|
Style/ClassVars:
|
288
292
|
Exclude:
|
289
293
|
- 'lib/dogapi/common.rb'
|
@@ -295,15 +299,6 @@ Style/ColonMethodCall:
|
|
295
299
|
- 'lib/capistrano/datadog.rb'
|
296
300
|
- 'lib/capistrano/datadog/v2.rb'
|
297
301
|
|
298
|
-
# Offense count: 2
|
299
|
-
# Cop supports --auto-correct.
|
300
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerBackticks.
|
301
|
-
# SupportedStyles: backticks, percent_x, mixed
|
302
|
-
Style/CommandLiteral:
|
303
|
-
Exclude:
|
304
|
-
- 'lib/capistrano/datadog.rb'
|
305
|
-
- 'lib/dogapi/common.rb'
|
306
|
-
|
307
302
|
# Offense count: 1
|
308
303
|
# Cop supports --auto-correct.
|
309
304
|
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
@@ -322,28 +317,9 @@ Style/DefWithParentheses:
|
|
322
317
|
- 'lib/dogapi/v1/metric.rb'
|
323
318
|
- 'lib/dogapi/v1/screenboard.rb'
|
324
319
|
|
325
|
-
# Offense count:
|
320
|
+
# Offense count: 23
|
326
321
|
Style/Documentation:
|
327
|
-
|
328
|
-
- 'spec/**/*'
|
329
|
-
- 'test/**/*'
|
330
|
-
- 'lib/capistrano/datadog.rb'
|
331
|
-
- 'lib/capistrano/datadog/v2.rb'
|
332
|
-
- 'lib/capistrano/datadog/v3.rb'
|
333
|
-
- 'lib/dogapi/common.rb'
|
334
|
-
- 'lib/dogapi/v1/alert.rb'
|
335
|
-
- 'lib/dogapi/v1/comment.rb'
|
336
|
-
- 'lib/dogapi/v1/dash.rb'
|
337
|
-
- 'lib/dogapi/v1/metadata.rb'
|
338
|
-
- 'lib/dogapi/v1/monitor.rb'
|
339
|
-
- 'lib/dogapi/v1/screenboard.rb'
|
340
|
-
- 'lib/dogapi/v1/search.rb'
|
341
|
-
- 'lib/dogapi/v1/service_check.rb'
|
342
|
-
- 'lib/dogapi/v1/snapshot.rb'
|
343
|
-
- 'lib/dogapi/v1/user.rb'
|
344
|
-
- 'lib/dogapi/v1/integration.rb'
|
345
|
-
- 'lib/dogapi/v1/usage.rb'
|
346
|
-
- 'lib/dogapi/v1/metric.rb'
|
322
|
+
Enabled: false
|
347
323
|
|
348
324
|
# Offense count: 1
|
349
325
|
# Cop supports --auto-correct.
|
@@ -351,14 +327,14 @@ Style/EmptyLiteral:
|
|
351
327
|
Exclude:
|
352
328
|
- 'lib/dogapi/v1/metric.rb'
|
353
329
|
|
354
|
-
# Offense count:
|
330
|
+
# Offense count: 3
|
355
331
|
# Configuration parameters: MinBodyLength.
|
356
332
|
Style/GuardClause:
|
357
333
|
Exclude:
|
358
334
|
- 'lib/capistrano/datadog.rb'
|
359
335
|
- 'lib/dogapi/facade.rb'
|
360
336
|
|
361
|
-
# Offense count:
|
337
|
+
# Offense count: 88
|
362
338
|
# Cop supports --auto-correct.
|
363
339
|
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
364
340
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
@@ -379,7 +355,7 @@ Style/HashSyntax:
|
|
379
355
|
- 'lib/dogapi/v1/snapshot.rb'
|
380
356
|
- 'lib/dogapi/v1/tag.rb'
|
381
357
|
|
382
|
-
# Offense count:
|
358
|
+
# Offense count: 16
|
383
359
|
# Cop supports --auto-correct.
|
384
360
|
# Configuration parameters: MaxLineLength.
|
385
361
|
Style/IfUnlessModifier:
|
@@ -399,7 +375,7 @@ Style/LineEndConcatenation:
|
|
399
375
|
Exclude:
|
400
376
|
- 'dogapi.gemspec'
|
401
377
|
|
402
|
-
# Offense count:
|
378
|
+
# Offense count: 21
|
403
379
|
# Cop supports --auto-correct.
|
404
380
|
Style/MethodCallWithoutArgsParentheses:
|
405
381
|
Exclude:
|
@@ -414,7 +390,7 @@ Style/MultilineIfThen:
|
|
414
390
|
Exclude:
|
415
391
|
- 'lib/capistrano/datadog.rb'
|
416
392
|
|
417
|
-
# Offense count:
|
393
|
+
# Offense count: 37
|
418
394
|
# Cop supports --auto-correct.
|
419
395
|
Style/MutableConstant:
|
420
396
|
Enabled: false
|
@@ -434,13 +410,11 @@ Style/Not:
|
|
434
410
|
Exclude:
|
435
411
|
- 'lib/dogapi/v1/metric.rb'
|
436
412
|
|
437
|
-
# Offense count:
|
413
|
+
# Offense count: 3
|
438
414
|
# Cop supports --auto-correct.
|
439
415
|
# Configuration parameters: PreferredDelimiters.
|
440
416
|
Style/PercentLiteralDelimiters:
|
441
417
|
Exclude:
|
442
|
-
- 'lib/capistrano/datadog.rb'
|
443
|
-
- 'lib/dogapi/common.rb'
|
444
418
|
- 'spec/integration/event_spec.rb'
|
445
419
|
- 'spec/integration/monitor_spec.rb'
|
446
420
|
|
@@ -452,15 +426,14 @@ Style/PreferredHashMethods:
|
|
452
426
|
Exclude:
|
453
427
|
- 'lib/dogapi/common.rb'
|
454
428
|
|
455
|
-
# Offense count:
|
429
|
+
# Offense count: 2
|
456
430
|
# Cop supports --auto-correct.
|
457
431
|
Style/RedundantBegin:
|
458
432
|
Exclude:
|
459
433
|
- 'lib/capistrano/datadog.rb'
|
460
|
-
- 'lib/dogapi/common.rb'
|
461
434
|
- 'lib/dogapi/v1/metric.rb'
|
462
435
|
|
463
|
-
# Offense count:
|
436
|
+
# Offense count: 4
|
464
437
|
# Cop supports --auto-correct.
|
465
438
|
# Configuration parameters: AllowMultipleReturnValues.
|
466
439
|
Style/RedundantReturn:
|
@@ -497,20 +470,24 @@ Style/SpecialGlobalVars:
|
|
497
470
|
Exclude:
|
498
471
|
- 'dogapi.gemspec'
|
499
472
|
|
500
|
-
# Offense count:
|
473
|
+
# Offense count: 35
|
501
474
|
# Cop supports --auto-correct.
|
502
475
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
503
476
|
# SupportedStyles: single_quotes, double_quotes
|
504
477
|
Style/StringLiterals:
|
505
478
|
Exclude:
|
479
|
+
- 'Capfile'
|
506
480
|
- 'Gemfile'
|
507
481
|
- 'Rakefile'
|
482
|
+
- 'config/deploy.rb'
|
483
|
+
- 'config/deploy/staging.rb'
|
508
484
|
- 'dogapi.gemspec'
|
509
485
|
- 'examples/Capfile'
|
510
486
|
- 'examples/custom_event.rb'
|
511
487
|
- 'lib/dogapi/event.rb'
|
488
|
+
- 'lib/dogapi/v1/monitor.rb'
|
512
489
|
|
513
|
-
# Offense count:
|
490
|
+
# Offense count: 9
|
514
491
|
# Cop supports --auto-correct.
|
515
492
|
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
516
493
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
@@ -526,11 +503,11 @@ Style/TrailingCommaInLiteral:
|
|
526
503
|
|
527
504
|
# Offense count: 2
|
528
505
|
# Cop supports --auto-correct.
|
529
|
-
# Configuration parameters:
|
506
|
+
# Configuration parameters: SupportedStyles, WordRegex.
|
530
507
|
# SupportedStyles: percent, brackets
|
531
508
|
Style/WordArray:
|
532
|
-
|
533
|
-
|
509
|
+
EnforcedStyle: percent
|
510
|
+
MinSize: 3
|
534
511
|
|
535
512
|
# Offense count: 1
|
536
513
|
# Cop supports --auto-correct.
|
@@ -543,3 +520,6 @@ Style/YodaCondition:
|
|
543
520
|
Style/ZeroLengthPredicate:
|
544
521
|
Exclude:
|
545
522
|
- 'lib/capistrano/datadog.rb'
|
523
|
+
|
524
|
+
Style/SymbolArray:
|
525
|
+
EnforcedStyle: brackets # Since ruby1.9 is supported
|