dogapi 1.38.0 → 1.43.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 +43 -12
- 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 +30 -32
- data/CHANGELOG.md +28 -0
- data/CONTRIBUTING.md +111 -0
- data/DEVELOPMENT.md +11 -0
- data/Gemfile +1 -1
- data/Gemfile_1.9 +0 -1
- 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 +70 -12
- data/lib/dogapi/event.rb +4 -0
- data/lib/dogapi/facade.rb +99 -8
- data/lib/dogapi/metric.rb +4 -0
- data/lib/dogapi/v1.rb +6 -0
- data/lib/dogapi/v1/alert.rb +4 -0
- data/lib/dogapi/v1/aws_integration.rb +4 -0
- data/lib/dogapi/v1/aws_logs.rb +4 -0
- data/lib/dogapi/v1/azure_integration.rb +4 -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 +4 -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 +6 -2
- 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 +4 -0
- data/spec/integration/aws_logs_spec.rb +4 -0
- data/spec/integration/azure_integration_spec.rb +4 -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 +4 -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 +15 -0
- 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 +17 -1
- data/spec/unit/capistrano_spec.rb +4 -0
- data/spec/unit/common_spec.rb +50 -0
- data/spec/unit/facade_spec.rb +4 -0
- metadata +24 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee43257bd0dee8a6d716ec81374f9c9345037eadb1d64ae56948354058611d42
|
4
|
+
data.tar.gz: f09c94bb876b09cf12dcf2bbe473b30e55964a62d8a78bedad6fbc54a6352e87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d69cb4d01bc6673e183f714899a2a21021114163a7f7d69d99a1ba73bd2badcb21f0795d6f78f3694ce24cee391ce1063566789ed3a85d7cbd19c25273b1ad5
|
7
|
+
data.tar.gz: 362e14cea14f234a3fe8649dc2c6044e245d903e255a0a78c61e0577e54e1046fbecdd7d3cb5277a374845d82bb1c5a9f45143d1eab9635656908a3c9b8cd63a
|
data/.azure-pipelines/all.yml
CHANGED
@@ -9,36 +9,67 @@ pr:
|
|
9
9
|
include:
|
10
10
|
- master
|
11
11
|
|
12
|
+
resources:
|
13
|
+
containers:
|
14
|
+
- container: datadog-agent
|
15
|
+
image: datadog/agent:7
|
16
|
+
options: --health-cmd="exit 0" --health-interval=1s
|
17
|
+
ports:
|
18
|
+
- 8125:8125
|
19
|
+
- 8126:8126/tcp
|
20
|
+
env:
|
21
|
+
DD_API_KEY: $(ddAPIKey)
|
22
|
+
DD_APM_ENABLED: "true"
|
23
|
+
DD_APM_NON_LOCAL_TRAFFIC: "true"
|
24
|
+
DD_LOGS_ENABLED: "true"
|
25
|
+
DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL: "true"
|
26
|
+
DD_AC_EXCLUDE: "name:datadog-agent"
|
27
|
+
volumes:
|
28
|
+
- /var/run/docker.sock:/var/run/docker.sock:ro
|
29
|
+
- /proc/:/host/proc/:ro
|
30
|
+
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
|
31
|
+
|
12
32
|
jobs:
|
13
33
|
- job: UnitTests
|
14
34
|
pool:
|
15
35
|
vmImage: "Ubuntu-16.04"
|
36
|
+
container:
|
37
|
+
image: ruby:$(RUBY_VERSION)
|
38
|
+
options: >-
|
39
|
+
-l com.datadoghq.ad.logs="[{\"source\": \"Azure Pipeline\", \"service\": \"dogapi-rb\"}]"
|
40
|
+
services:
|
41
|
+
datadog-agent: datadog-agent
|
16
42
|
strategy:
|
17
43
|
matrix:
|
18
44
|
Rb24:
|
19
|
-
RUBY_VERSION: '2.4
|
45
|
+
RUBY_VERSION: '2.4'
|
20
46
|
TASK: spec
|
21
47
|
Rb25:
|
22
|
-
RUBY_VERSION: '2.5
|
48
|
+
RUBY_VERSION: '2.5'
|
23
49
|
TASK: spec
|
24
50
|
Rb26:
|
25
|
-
RUBY_VERSION: '2.6
|
51
|
+
RUBY_VERSION: '2.6'
|
52
|
+
TASK: spec
|
53
|
+
Rb27:
|
54
|
+
RUBY_VERSION: '2.7'
|
26
55
|
TASK: spec
|
27
56
|
Lint:
|
28
|
-
RUBY_VERSION: '2.6
|
57
|
+
RUBY_VERSION: '2.6'
|
29
58
|
TASK: rubocop
|
30
59
|
steps:
|
31
|
-
-
|
32
|
-
displayName: Use Ruby $(RUBY_VERSION)
|
33
|
-
inputs:
|
34
|
-
versionSpec: $(RUBY_VERSION)
|
35
|
-
addToPath: true
|
36
|
-
- script: |
|
37
|
-
gem install bundler
|
38
|
-
bundle install --retry=3 --jobs=4
|
60
|
+
- script: bundle install --retry=3 --jobs=4
|
39
61
|
displayName: 'bundle install'
|
62
|
+
env:
|
63
|
+
GEM_HOME: '~/.gem'
|
40
64
|
- script: bundle exec rake $(TASK)
|
41
65
|
displayName: Run $(TASK) via bundle
|
66
|
+
env:
|
67
|
+
GEM_HOME: '~/.gem'
|
68
|
+
DD_AGENT_HOST: datadog-agent
|
69
|
+
DD_ENV: ci
|
70
|
+
DD_SERVICE: dogapi-rb
|
71
|
+
DD_TAGS: "team:integration-tools-and-libraries,runtime:ruby-$(RUBY_VERSION),ci.job.name:$(System.JobName),matrix:$(TASK)"
|
72
|
+
DD_TRACE_ANALYTICS_ENABLED: "true"
|
42
73
|
- job: TestRuby19
|
43
74
|
pool:
|
44
75
|
vmImage: "Ubuntu-16.04"
|
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,22 +36,23 @@ 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
|
@@ -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'
|
@@ -203,12 +203,12 @@ Lint/UselessAssignment:
|
|
203
203
|
|
204
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:
|
211
|
+
Max: 123
|
212
212
|
|
213
213
|
# Offense count: 1
|
214
214
|
# Configuration parameters: CountComments.
|
@@ -217,23 +217,23 @@ Metrics/ClassLength:
|
|
217
217
|
|
218
218
|
# Offense count: 3
|
219
219
|
Metrics/CyclomaticComplexity:
|
220
|
-
Max:
|
220
|
+
Max: 9
|
221
221
|
|
222
|
-
# Offense count:
|
222
|
+
# Offense count: 16
|
223
223
|
# Configuration parameters: CountComments.
|
224
224
|
Metrics/MethodLength:
|
225
225
|
Max: 34
|
226
226
|
|
227
|
-
# Offense count:
|
227
|
+
# Offense count: 7
|
228
228
|
# Configuration parameters: CountKeywordArgs.
|
229
229
|
Metrics/ParameterLists:
|
230
230
|
Max: 7
|
231
231
|
|
232
232
|
# Offense count: 2
|
233
233
|
Metrics/PerceivedComplexity:
|
234
|
-
Max:
|
234
|
+
Max: 10
|
235
235
|
|
236
|
-
# Offense count:
|
236
|
+
# Offense count: 19
|
237
237
|
Style/AccessorMethodName:
|
238
238
|
Exclude:
|
239
239
|
- 'lib/dogapi/facade.rb'
|
@@ -242,6 +242,7 @@ Style/AccessorMethodName:
|
|
242
242
|
- 'lib/dogapi/v1/dashboard.rb'
|
243
243
|
- 'lib/dogapi/v1/embed.rb'
|
244
244
|
- 'lib/dogapi/v1/screenboard.rb'
|
245
|
+
- 'lib/dogapi/v1/synthetics.rb'
|
245
246
|
- 'lib/dogapi/v1/user.rb'
|
246
247
|
|
247
248
|
# Offense count: 1
|
@@ -280,7 +281,7 @@ Style/ClassCheck:
|
|
280
281
|
- 'lib/dogapi/facade.rb'
|
281
282
|
- 'lib/dogapi/v1/event.rb'
|
282
283
|
|
283
|
-
# Offense count:
|
284
|
+
# Offense count: 3
|
284
285
|
# Cop supports --auto-correct.
|
285
286
|
Style/ClassMethods:
|
286
287
|
Exclude:
|
@@ -298,14 +299,6 @@ Style/ColonMethodCall:
|
|
298
299
|
- 'lib/capistrano/datadog.rb'
|
299
300
|
- 'lib/capistrano/datadog/v2.rb'
|
300
301
|
|
301
|
-
# Offense count: 1
|
302
|
-
# Cop supports --auto-correct.
|
303
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerBackticks.
|
304
|
-
# SupportedStyles: backticks, percent_x, mixed
|
305
|
-
Style/CommandLiteral:
|
306
|
-
Exclude:
|
307
|
-
- 'lib/dogapi/common.rb'
|
308
|
-
|
309
302
|
# Offense count: 1
|
310
303
|
# Cop supports --auto-correct.
|
311
304
|
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
@@ -314,7 +307,7 @@ Style/ConditionalAssignment:
|
|
314
307
|
Exclude:
|
315
308
|
- 'lib/capistrano/datadog.rb'
|
316
309
|
|
317
|
-
# Offense count:
|
310
|
+
# Offense count: 20
|
318
311
|
# Cop supports --auto-correct.
|
319
312
|
Style/DefWithParentheses:
|
320
313
|
Exclude:
|
@@ -341,7 +334,7 @@ Style/GuardClause:
|
|
341
334
|
- 'lib/capistrano/datadog.rb'
|
342
335
|
- 'lib/dogapi/facade.rb'
|
343
336
|
|
344
|
-
# Offense count:
|
337
|
+
# Offense count: 88
|
345
338
|
# Cop supports --auto-correct.
|
346
339
|
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
347
340
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
@@ -362,7 +355,7 @@ Style/HashSyntax:
|
|
362
355
|
- 'lib/dogapi/v1/snapshot.rb'
|
363
356
|
- 'lib/dogapi/v1/tag.rb'
|
364
357
|
|
365
|
-
# Offense count:
|
358
|
+
# Offense count: 16
|
366
359
|
# Cop supports --auto-correct.
|
367
360
|
# Configuration parameters: MaxLineLength.
|
368
361
|
Style/IfUnlessModifier:
|
@@ -382,7 +375,7 @@ Style/LineEndConcatenation:
|
|
382
375
|
Exclude:
|
383
376
|
- 'dogapi.gemspec'
|
384
377
|
|
385
|
-
# Offense count:
|
378
|
+
# Offense count: 21
|
386
379
|
# Cop supports --auto-correct.
|
387
380
|
Style/MethodCallWithoutArgsParentheses:
|
388
381
|
Exclude:
|
@@ -397,7 +390,7 @@ Style/MultilineIfThen:
|
|
397
390
|
Exclude:
|
398
391
|
- 'lib/capistrano/datadog.rb'
|
399
392
|
|
400
|
-
# Offense count:
|
393
|
+
# Offense count: 37
|
401
394
|
# Cop supports --auto-correct.
|
402
395
|
Style/MutableConstant:
|
403
396
|
Enabled: false
|
@@ -417,12 +410,11 @@ Style/Not:
|
|
417
410
|
Exclude:
|
418
411
|
- 'lib/dogapi/v1/metric.rb'
|
419
412
|
|
420
|
-
# Offense count:
|
413
|
+
# Offense count: 3
|
421
414
|
# Cop supports --auto-correct.
|
422
415
|
# Configuration parameters: PreferredDelimiters.
|
423
416
|
Style/PercentLiteralDelimiters:
|
424
417
|
Exclude:
|
425
|
-
- 'lib/dogapi/common.rb'
|
426
418
|
- 'spec/integration/event_spec.rb'
|
427
419
|
- 'spec/integration/monitor_spec.rb'
|
428
420
|
|
@@ -478,14 +470,17 @@ Style/SpecialGlobalVars:
|
|
478
470
|
Exclude:
|
479
471
|
- 'dogapi.gemspec'
|
480
472
|
|
481
|
-
# Offense count:
|
473
|
+
# Offense count: 35
|
482
474
|
# Cop supports --auto-correct.
|
483
475
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
484
476
|
# SupportedStyles: single_quotes, double_quotes
|
485
477
|
Style/StringLiterals:
|
486
478
|
Exclude:
|
479
|
+
- 'Capfile'
|
487
480
|
- 'Gemfile'
|
488
481
|
- 'Rakefile'
|
482
|
+
- 'config/deploy.rb'
|
483
|
+
- 'config/deploy/staging.rb'
|
489
484
|
- 'dogapi.gemspec'
|
490
485
|
- 'examples/Capfile'
|
491
486
|
- 'examples/custom_event.rb'
|
@@ -525,3 +520,6 @@ Style/YodaCondition:
|
|
525
520
|
Style/ZeroLengthPredicate:
|
526
521
|
Exclude:
|
527
522
|
- 'lib/capistrano/datadog.rb'
|
523
|
+
|
524
|
+
Style/SymbolArray:
|
525
|
+
EnforcedStyle: brackets # Since ruby1.9 is supported
|