bugsnag-api 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.buildkite/pipeline.yml +6 -0
- data/.github/ISSUE_TEMPLATE/A.md +14 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +47 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +24 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +16 -0
- data/.github/support.md +19 -0
- data/.github/workflows/tests.yml +53 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +271 -0
- data/CHANGELOG.md +34 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +9 -0
- data/README.md +77 -2
- data/bugsnag-api.gemspec +42 -7
- data/config/.gitignore +1 -0
- data/docker-compose.yml +9 -0
- data/dockerfiles/Dockerfile.audit +5 -0
- data/lib/bugsnag/api/client.rb +18 -1
- data/lib/bugsnag/api/client/collaborators.rb +1 -2
- data/lib/bugsnag/api/client/comments.rb +1 -1
- data/lib/bugsnag/api/client/currentuser.rb +0 -1
- data/lib/bugsnag/api/client/errors.rb +12 -11
- data/lib/bugsnag/api/client/eventfields.rb +1 -2
- data/lib/bugsnag/api/client/events.rb +1 -2
- data/lib/bugsnag/api/client/organizations.rb +1 -2
- data/lib/bugsnag/api/client/pivots.rb +1 -2
- data/lib/bugsnag/api/client/projects.rb +2 -3
- data/lib/bugsnag/api/client/releases.rb +38 -0
- data/lib/bugsnag/api/client/stability.rb +16 -0
- data/lib/bugsnag/api/client/trends.rb +8 -5
- data/lib/bugsnag/api/configuration.rb +1 -1
- data/lib/bugsnag/api/error.rb +1 -1
- data/lib/bugsnag/api/response/raise_error.rb +0 -2
- data/lib/bugsnag/api/version.rb +1 -1
- data/scripts/license_finder.sh +4 -0
- data/spec/bugsnag/api/client/releases_spec.rb +184 -0
- data/spec/bugsnag/api/client/stability_spec.rb +32 -0
- data/spec/bugsnag/api/client_spec.rb +69 -7
- data/spec/bugsnag/api_spec.rb +2 -0
- data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +13 -21
- data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +13 -21
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +29 -53
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +30 -55
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +30 -55
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/throws_an_argument_error_if_neither_org_id_or_project_id_are_provided.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +29 -53
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_view_collaborator_projects/returns_a_list_of_projects_belonging_to_the_collaborator.yml +49 -55
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +17 -29
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +32 -56
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +33 -57
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +17 -29
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +32 -56
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +14 -27
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +17 -31
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +34 -28
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +37 -32
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +14 -28
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +16 -30
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +13 -25
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +19 -30
- data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +16 -199
- data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +19 -30
- data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +16 -199
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +17 -30
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +32 -58
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +35 -61
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +35 -61
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +26 -50
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +29 -53
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_regenerate_api_key/removes_the_current_api_key_and_replaces_it_with_a_new_api_key.yml +29 -53
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +29 -53
- data/spec/cassettes/Bugsnag_Api_Client_Releases/_release/gets_a_single_release.yml +87 -0
- data/spec/cassettes/Bugsnag_Api_Client_Releases/_release_groups/accepts_parameters.yml +90 -0
- data/spec/cassettes/Bugsnag_Api_Client_Releases/_release_groups/gets_releases_in_a_release_group.yml +87 -0
- data/spec/cassettes/Bugsnag_Api_Client_Releases/_releases/accepts_parameters.yml +92 -0
- data/spec/cassettes/Bugsnag_Api_Client_Releases/_releases/gets_as_list_of_releases.yml +91 -0
- data/spec/cassettes/Bugsnag_Api_Client_Stability/_stability_trend/gets_the_stability_trend.yml +87 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +14 -26
- data/spec/spec_helper.rb +14 -5
- metadata +66 -37
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0de7c6d92a7d28e2e96de5506e2ecb7e6edd60a087e949b955325628aa93358d
|
4
|
+
data.tar.gz: 61831b2e22916700edc08be34557d2b01f3fb0a23220436297236d8b413d5d72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9465be48ec9a6bb9a0ec5d1278c8e16a5a296ad5bd802d2e3a839df2e2e3be5a1ecf9eb4dc0c841f3e78e8444b4dc81504e9efbad6cb58e6fecb423817e2db93
|
7
|
+
data.tar.gz: 2edd21ddbe339ef9f00147c6d398a1ba1013f8c7df9e78d6244a722fcd72c94d962495e1514231ff46421695aa5423ecb561d6478dcab4e936dab986499c7335
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
name: Having trouble getting started?
|
3
|
+
about: Please contact us at support@bugsnag.com for assistance with integrating Bugsnag
|
4
|
+
into your application.
|
5
|
+
title: ''
|
6
|
+
labels: ''
|
7
|
+
assignees: ''
|
8
|
+
|
9
|
+
---
|
10
|
+
Please checkout our [documentation](https://docs.bugsnag.com/api/data-access/#ruby-api-toolkit) for guides, references and tutorials.
|
11
|
+
|
12
|
+
If you have questions about your integration please contact us at [support@bugsnag.com](mailto:support@bugsnag.com).
|
13
|
+
|
14
|
+
Alternatively, view additional options at [support.md](../SUPPORT.md).
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve the library
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
<!-- Before raising, please check if somebody else has already reported your issue. -->
|
11
|
+
|
12
|
+
### Describe the bug
|
13
|
+
A clear and concise description of what the bug is.
|
14
|
+
|
15
|
+
### Steps to reproduce
|
16
|
+
1. Go to '...'
|
17
|
+
2. Click on '....'
|
18
|
+
3. Scroll down to '....'
|
19
|
+
4. See error
|
20
|
+
|
21
|
+
### Environment
|
22
|
+
* Ruby version:
|
23
|
+
|
24
|
+
<!--
|
25
|
+
Below are a few approaches you might take to communicate the issue, in
|
26
|
+
descending order of awesomeness. Please choose one and feel free to delete
|
27
|
+
the others from this template.
|
28
|
+
-->
|
29
|
+
|
30
|
+
### Example Repo <!-- Option 1 -->
|
31
|
+
|
32
|
+
- [ ] Create a minimal repository that can reproduce the issue
|
33
|
+
- [ ] Link to it here:
|
34
|
+
|
35
|
+
### Example code snippet <!-- Option 2 -->
|
36
|
+
|
37
|
+
```
|
38
|
+
# (Insert code sample to reproduce the problem)
|
39
|
+
```
|
40
|
+
|
41
|
+
<!-- Error messages, if any -->
|
42
|
+
<details><summary>Error messages:</summary>
|
43
|
+
|
44
|
+
```
|
45
|
+
|
46
|
+
```
|
47
|
+
</details>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
<!-- Before creating, please check if somebody else has already reported your feature request. -->
|
11
|
+
|
12
|
+
### Description
|
13
|
+
<!-- Is your feature request related to a problem? Please describe.
|
14
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
15
|
+
-->
|
16
|
+
|
17
|
+
**Describe the solution you'd like**
|
18
|
+
<!-- A clear and concise description of what you want to happen. -->
|
19
|
+
|
20
|
+
**Describe alternatives you've considered**
|
21
|
+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
|
22
|
+
|
23
|
+
**Additional context**
|
24
|
+
<!--Add any other context about the feature request here.-->
|
@@ -0,0 +1,16 @@
|
|
1
|
+
## Goal
|
2
|
+
|
3
|
+
<!-- Why is this change necessary? -->
|
4
|
+
|
5
|
+
## Design
|
6
|
+
|
7
|
+
<!-- Why was this approach used? -->
|
8
|
+
|
9
|
+
## Changeset
|
10
|
+
|
11
|
+
<!-- What changed? -->
|
12
|
+
|
13
|
+
## Testing
|
14
|
+
|
15
|
+
<!-- How was it tested? What manual and automated tests were
|
16
|
+
run/added? -->
|
data/.github/support.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
## Are you having trouble getting started?
|
2
|
+
If you haven't already, please checkout our [documentation](https://docs.bugsnag.com/api/data-access/#ruby-api-toolkit) for guides, references and tutorials.
|
3
|
+
|
4
|
+
Or, if you wish you can [contact us directly](mailto:support@bugsnag.com) for assistance on integrating Bugsnag into your application, troubleshooting an issue or a question about our supported features.
|
5
|
+
|
6
|
+
When contacting support, please include as much information as necessary, including:
|
7
|
+
|
8
|
+
- example code snippet
|
9
|
+
- steps to reproduce
|
10
|
+
- expected/actual behaviour
|
11
|
+
|
12
|
+
* Ruby version:
|
13
|
+
|
14
|
+
## Bug or Feature Requests
|
15
|
+
If you would like to raise a bug or feature request please do so by creating a [New Issue](https://github.com/bugsnag/bugsnag-api-ruby/issues/new/choose) and selecting bug or feature.
|
16
|
+
Please note: we cannot promise that we will fulfil all requests
|
17
|
+
|
18
|
+
## Pull Requests
|
19
|
+
If you have made a fix and would like to raise a pull request, please read our [CONTRIBUTING.md](../CONTRIBUTING.md) file before creating the pull request.
|
@@ -0,0 +1,53 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
specs:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
fail-fast: false
|
10
|
+
matrix:
|
11
|
+
ruby-version: ['2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
|
16
|
+
- name: Install Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby-version }}
|
20
|
+
bundler-cache: true
|
21
|
+
|
22
|
+
- run: bundle exec rake spec
|
23
|
+
|
24
|
+
linting:
|
25
|
+
runs-on: ubuntu-latest
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v2
|
29
|
+
|
30
|
+
- name: Install Ruby
|
31
|
+
uses: ruby/setup-ruby@v1
|
32
|
+
with:
|
33
|
+
ruby-version: '3.0'
|
34
|
+
bundler-cache: true
|
35
|
+
|
36
|
+
- run: bundle exec rubocop lib/
|
37
|
+
|
38
|
+
# Ruby 1.9 and 2.0 aren't supported by setup-ruby so we have to use Docker instead
|
39
|
+
legacy:
|
40
|
+
runs-on: ubuntu-latest
|
41
|
+
strategy:
|
42
|
+
fail-fast: false
|
43
|
+
matrix:
|
44
|
+
ruby-version: ['1.9', '2.0']
|
45
|
+
|
46
|
+
container: ruby:${{ matrix.ruby-version }}
|
47
|
+
|
48
|
+
steps:
|
49
|
+
- uses: actions/checkout@v2
|
50
|
+
|
51
|
+
- run: bundle install
|
52
|
+
|
53
|
+
- run: bundle exec rake spec
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,271 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-02-20 14:31:40 +0000 using RuboCop version 0.52.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
Layout/EmptyLines:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/bugsnag/api.rb'
|
14
|
+
|
15
|
+
# Offense count: 3
|
16
|
+
# Cop supports --auto-correct.
|
17
|
+
Layout/EmptyLinesAroundAccessModifier:
|
18
|
+
Exclude:
|
19
|
+
- 'lib/bugsnag/api.rb'
|
20
|
+
- 'lib/bugsnag/api/client.rb'
|
21
|
+
- 'lib/bugsnag/api/response/raise_error.rb'
|
22
|
+
|
23
|
+
# Offense count: 12
|
24
|
+
# Cop supports --auto-correct.
|
25
|
+
# Configuration parameters: EnforcedStyle.
|
26
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
27
|
+
Layout/EmptyLinesAroundClassBody:
|
28
|
+
Exclude:
|
29
|
+
- 'lib/bugsnag/api/client/collaborators.rb'
|
30
|
+
- 'lib/bugsnag/api/client/comments.rb'
|
31
|
+
- 'lib/bugsnag/api/client/currentuser.rb'
|
32
|
+
- 'lib/bugsnag/api/client/errors.rb'
|
33
|
+
- 'lib/bugsnag/api/client/eventfields.rb'
|
34
|
+
- 'lib/bugsnag/api/client/events.rb'
|
35
|
+
- 'lib/bugsnag/api/client/organizations.rb'
|
36
|
+
- 'lib/bugsnag/api/client/pivots.rb'
|
37
|
+
- 'lib/bugsnag/api/client/projects.rb'
|
38
|
+
- 'lib/bugsnag/api/client/trends.rb'
|
39
|
+
- 'lib/bugsnag/api/error.rb'
|
40
|
+
- 'lib/bugsnag/api/response/raise_error.rb'
|
41
|
+
|
42
|
+
# Offense count: 4
|
43
|
+
# Cop supports --auto-correct.
|
44
|
+
# Configuration parameters: EnforcedStyle.
|
45
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
46
|
+
Layout/EmptyLinesAroundModuleBody:
|
47
|
+
Exclude:
|
48
|
+
- 'lib/bugsnag/api.rb'
|
49
|
+
- 'lib/bugsnag/api/client.rb'
|
50
|
+
- 'lib/bugsnag/api/configuration.rb'
|
51
|
+
- 'lib/bugsnag/api/response/raise_error.rb'
|
52
|
+
|
53
|
+
# Offense count: 2
|
54
|
+
# Cop supports --auto-correct.
|
55
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
56
|
+
# SupportedStyles: aligned, indented
|
57
|
+
Layout/MultilineOperationIndentation:
|
58
|
+
Exclude:
|
59
|
+
- 'lib/bugsnag/api/error.rb'
|
60
|
+
|
61
|
+
# Offense count: 1
|
62
|
+
# Cop supports --auto-correct.
|
63
|
+
Layout/SpaceAfterComma:
|
64
|
+
Exclude:
|
65
|
+
- 'lib/bugsnag/api/configuration.rb'
|
66
|
+
|
67
|
+
# Offense count: 7
|
68
|
+
# Cop supports --auto-correct.
|
69
|
+
# Configuration parameters: EnforcedStyle.
|
70
|
+
# SupportedStyles: space, no_space
|
71
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
72
|
+
Exclude:
|
73
|
+
- 'lib/bugsnag/api/client/errors.rb'
|
74
|
+
- 'lib/bugsnag/api/client/pivots.rb'
|
75
|
+
- 'lib/bugsnag/api/client/trends.rb'
|
76
|
+
- 'lib/bugsnag/api/error.rb'
|
77
|
+
|
78
|
+
# Offense count: 1
|
79
|
+
# Cop supports --auto-correct.
|
80
|
+
# Configuration parameters: EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
81
|
+
# SupportedStyles: space, no_space
|
82
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
83
|
+
Layout/SpaceInsideBlockBraces:
|
84
|
+
EnforcedStyle: no_space
|
85
|
+
|
86
|
+
# Offense count: 34
|
87
|
+
# Cop supports --auto-correct.
|
88
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
89
|
+
# SupportedStyles: space, no_space, compact
|
90
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
91
|
+
Layout/SpaceInsideHashLiteralBraces:
|
92
|
+
Exclude:
|
93
|
+
- 'lib/bugsnag/api/client.rb'
|
94
|
+
- 'lib/bugsnag/api/client/collaborators.rb'
|
95
|
+
- 'lib/bugsnag/api/client/comments.rb'
|
96
|
+
- 'lib/bugsnag/api/client/errors.rb'
|
97
|
+
- 'lib/bugsnag/api/client/eventfields.rb'
|
98
|
+
- 'lib/bugsnag/api/client/organizations.rb'
|
99
|
+
- 'lib/bugsnag/api/client/projects.rb'
|
100
|
+
- 'lib/bugsnag/api/client/trends.rb'
|
101
|
+
|
102
|
+
# Offense count: 17
|
103
|
+
# Cop supports --auto-correct.
|
104
|
+
Layout/TrailingWhitespace:
|
105
|
+
Exclude:
|
106
|
+
- 'lib/bugsnag/api/client/collaborators.rb'
|
107
|
+
- 'lib/bugsnag/api/client/currentuser.rb'
|
108
|
+
- 'lib/bugsnag/api/client/errors.rb'
|
109
|
+
- 'lib/bugsnag/api/client/eventfields.rb'
|
110
|
+
- 'lib/bugsnag/api/client/events.rb'
|
111
|
+
- 'lib/bugsnag/api/client/organizations.rb'
|
112
|
+
- 'lib/bugsnag/api/client/pivots.rb'
|
113
|
+
- 'lib/bugsnag/api/client/projects.rb'
|
114
|
+
- 'lib/bugsnag/api/client/trends.rb'
|
115
|
+
|
116
|
+
# Offense count: 1
|
117
|
+
Lint/AmbiguousOperator:
|
118
|
+
Exclude:
|
119
|
+
- 'lib/bugsnag/api/configuration.rb'
|
120
|
+
|
121
|
+
# Offense count: 4
|
122
|
+
# Configuration parameters: AllowSafeAssignment.
|
123
|
+
Lint/AssignmentInCondition:
|
124
|
+
Exclude:
|
125
|
+
- 'lib/bugsnag/api/client.rb'
|
126
|
+
- 'lib/bugsnag/api/error.rb'
|
127
|
+
- 'lib/bugsnag/api/response/raise_error.rb'
|
128
|
+
|
129
|
+
# Offense count: 4
|
130
|
+
# Cop supports --auto-correct.
|
131
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
132
|
+
Lint/UnusedMethodArgument:
|
133
|
+
Exclude:
|
134
|
+
- 'lib/bugsnag/api/client.rb'
|
135
|
+
- 'lib/bugsnag/api/client/errors.rb'
|
136
|
+
- 'lib/bugsnag/api/client/eventfields.rb'
|
137
|
+
|
138
|
+
# Offense count: 1
|
139
|
+
Lint/UriEscapeUnescape:
|
140
|
+
Exclude:
|
141
|
+
- 'lib/bugsnag/api/client.rb'
|
142
|
+
|
143
|
+
# Offense count: 2
|
144
|
+
Lint/UselessAssignment:
|
145
|
+
Exclude:
|
146
|
+
- 'lib/bugsnag/api/error.rb'
|
147
|
+
|
148
|
+
# Offense count: 3
|
149
|
+
Metrics/AbcSize:
|
150
|
+
Max: 27
|
151
|
+
|
152
|
+
# Offense count: 1
|
153
|
+
# Configuration parameters: CountBlocks.
|
154
|
+
Metrics/BlockNesting:
|
155
|
+
Max: 4
|
156
|
+
|
157
|
+
# Offense count: 1
|
158
|
+
# Configuration parameters: CountComments.
|
159
|
+
Metrics/ClassLength:
|
160
|
+
Max: 127
|
161
|
+
|
162
|
+
# Offense count: 2
|
163
|
+
Metrics/CyclomaticComplexity:
|
164
|
+
Max: 18
|
165
|
+
|
166
|
+
# Offense count: 5
|
167
|
+
# Configuration parameters: CountComments.
|
168
|
+
Metrics/MethodLength:
|
169
|
+
Max: 23
|
170
|
+
|
171
|
+
# Offense count: 2
|
172
|
+
Metrics/PerceivedComplexity:
|
173
|
+
Max: 10
|
174
|
+
|
175
|
+
# Offense count: 10
|
176
|
+
# Cop supports --auto-correct.
|
177
|
+
# Configuration parameters: EnforcedStyle.
|
178
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
179
|
+
Style/BracesAroundHashParameters:
|
180
|
+
Exclude:
|
181
|
+
- 'lib/bugsnag/api/client/collaborators.rb'
|
182
|
+
- 'lib/bugsnag/api/client/comments.rb'
|
183
|
+
- 'lib/bugsnag/api/client/errors.rb'
|
184
|
+
- 'lib/bugsnag/api/client/eventfields.rb'
|
185
|
+
- 'lib/bugsnag/api/client/organizations.rb'
|
186
|
+
- 'lib/bugsnag/api/client/projects.rb'
|
187
|
+
|
188
|
+
# Offense count: 2
|
189
|
+
Style/DoubleNegation:
|
190
|
+
Exclude:
|
191
|
+
- 'lib/bugsnag/api/client.rb'
|
192
|
+
|
193
|
+
# Offense count: 1
|
194
|
+
# Cop supports --auto-correct.
|
195
|
+
# Configuration parameters: EnforcedStyle.
|
196
|
+
# SupportedStyles: empty, nil, both
|
197
|
+
Style/EmptyElse:
|
198
|
+
Exclude:
|
199
|
+
- 'lib/bugsnag/api/error.rb'
|
200
|
+
|
201
|
+
# Offense count: 1
|
202
|
+
# Configuration parameters: MinBodyLength.
|
203
|
+
Style/GuardClause:
|
204
|
+
Exclude:
|
205
|
+
- 'lib/bugsnag/api/response/raise_error.rb'
|
206
|
+
|
207
|
+
# Offense count: 26
|
208
|
+
# Cop supports --auto-correct.
|
209
|
+
# Configuration parameters: UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
210
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
211
|
+
Style/HashSyntax:
|
212
|
+
EnforcedStyle: hash_rockets
|
213
|
+
|
214
|
+
# Offense count: 1
|
215
|
+
Style/IfInsideElse:
|
216
|
+
Exclude:
|
217
|
+
- 'lib/bugsnag/api/client.rb'
|
218
|
+
|
219
|
+
# Offense count: 1
|
220
|
+
Style/MethodMissing:
|
221
|
+
Exclude:
|
222
|
+
- 'lib/bugsnag/api.rb'
|
223
|
+
|
224
|
+
# Offense count: 4
|
225
|
+
# Cop supports --auto-correct.
|
226
|
+
Style/MutableConstant:
|
227
|
+
Exclude:
|
228
|
+
- 'lib/bugsnag/api/configuration.rb'
|
229
|
+
- 'lib/bugsnag/api/version.rb'
|
230
|
+
|
231
|
+
# Offense count: 2
|
232
|
+
# Cop supports --auto-correct.
|
233
|
+
Style/RedundantSelf:
|
234
|
+
Exclude:
|
235
|
+
- 'lib/bugsnag/api/configuration.rb'
|
236
|
+
|
237
|
+
# Offense count: 31
|
238
|
+
# Cop supports --auto-correct.
|
239
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
240
|
+
# SupportedStyles: single_quotes, double_quotes
|
241
|
+
Style/StringLiterals:
|
242
|
+
Exclude:
|
243
|
+
- 'lib/bugsnag/api.rb'
|
244
|
+
- 'lib/bugsnag/api/client.rb'
|
245
|
+
- 'lib/bugsnag/api/client/collaborators.rb'
|
246
|
+
- 'lib/bugsnag/api/client/currentuser.rb'
|
247
|
+
- 'lib/bugsnag/api/client/errors.rb'
|
248
|
+
- 'lib/bugsnag/api/client/organizations.rb'
|
249
|
+
- 'lib/bugsnag/api/configuration.rb'
|
250
|
+
- 'lib/bugsnag/api/error.rb'
|
251
|
+
- 'lib/bugsnag/api/response/raise_error.rb'
|
252
|
+
- 'lib/bugsnag/api/version.rb'
|
253
|
+
|
254
|
+
# Offense count: 2
|
255
|
+
# Cop supports --auto-correct.
|
256
|
+
# Configuration parameters: MinSize.
|
257
|
+
# SupportedStyles: percent, brackets
|
258
|
+
Style/SymbolArray:
|
259
|
+
EnforcedStyle: brackets
|
260
|
+
|
261
|
+
# Offense count: 1
|
262
|
+
# Cop supports --auto-correct.
|
263
|
+
Style/UnneededInterpolation:
|
264
|
+
Exclude:
|
265
|
+
- 'lib/bugsnag/api/error.rb'
|
266
|
+
|
267
|
+
# Offense count: 80
|
268
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
269
|
+
# URISchemes: http, https
|
270
|
+
Metrics/LineLength:
|
271
|
+
Max: 146
|