bugsnag-api 1.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -0
- data/.rubocop_todo.yml +271 -0
- data/CHANGELOG.md +59 -0
- data/CONTRIBUTING.md +40 -0
- data/Gemfile +9 -0
- data/README.md +178 -109
- data/bugsnag-api.gemspec +42 -6
- data/config/.gitignore +1 -0
- data/docker-compose.yml +9 -0
- data/dockerfiles/Dockerfile.audit +5 -0
- data/lib/bugsnag/api/client.rb +32 -10
- data/lib/bugsnag/api/client/collaborators.rb +86 -0
- data/lib/bugsnag/api/client/comments.rb +31 -40
- data/lib/bugsnag/api/client/currentuser.rb +32 -0
- data/lib/bugsnag/api/client/errors.rb +48 -53
- data/lib/bugsnag/api/client/eventfields.rb +49 -0
- data/lib/bugsnag/api/client/events.rb +37 -32
- data/lib/bugsnag/api/client/organizations.rb +45 -0
- data/lib/bugsnag/api/client/pivots.rb +42 -0
- data/lib/bugsnag/api/client/projects.rb +36 -63
- data/lib/bugsnag/api/client/trends.rb +41 -0
- data/lib/bugsnag/api/configuration.rb +1 -1
- data/lib/bugsnag/api/error.rb +5 -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/collaborators_spec.rb +101 -0
- data/spec/bugsnag/api/client/comments_spec.rb +42 -30
- data/spec/bugsnag/api/client/currentuser_spec.rb +57 -0
- data/spec/bugsnag/api/client/errors_spec.rb +44 -41
- data/spec/bugsnag/api/client/eventfields_spec.rb +56 -0
- data/spec/bugsnag/api/client/events_spec.rb +41 -29
- data/spec/bugsnag/api/client/organizations_spec.rb +53 -0
- data/spec/bugsnag/api/client/pivots_spec.rb +49 -0
- data/spec/bugsnag/api/client/projects_spec.rb +35 -59
- data/spec/bugsnag/api/client/trends_spec.rb +44 -0
- data/spec/bugsnag/api/client_spec.rb +76 -9
- data/spec/bugsnag/api_spec.rb +2 -0
- data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +36 -26
- data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +36 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +135 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +135 -0
- 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 +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_view_collaborator_projects/returns_a_list_of_projects_belonging_to_the_collaborator.yml +153 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +135 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +137 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +135 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +71 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +88 -0
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +91 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +73 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +73 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +70 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +71 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +139 -0
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +139 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +127 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +133 -0
- 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 +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +133 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +68 -0
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +68 -0
- data/spec/spec_helper.rb +32 -30
- metadata +167 -115
- data/.travis.yml +0 -9
- data/lib/bugsnag/api/client/accounts.rb +0 -44
- data/lib/bugsnag/api/client/users.rb +0 -99
- data/spec/bugsnag/api/client/accounts_spec.rb +0 -45
- data/spec/bugsnag/api/client/users_spec.rb +0 -105
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml +0 -51
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml +0 -107
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml +0 -51
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml +0 -97
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml +0 -92
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml +0 -97
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml +0 -64
- data/spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml +0 -64
- data/spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml +0 -56
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml +0 -61
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml +0 -63
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml +0 -50
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml +0 -61
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml +0 -91
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml +0 -95
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml +0 -95
- data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml +0 -51
- data/spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml +0 -49
- data/spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml +0 -48
- data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml +0 -89
- data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml +0 -93
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '008defb6062958e4592b9e4a2a6ca8c8594af2c2751d593c8349e4e40d781c15'
|
4
|
+
data.tar.gz: 69a52ad4465bb7de30725175172a7fee6003385fd952f1f791aedad6b0944350
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88b38958f05730d46bd8dfeeda7ead7e7c1c6d86a7fb8628b9ec4f8790bc2638d2e88bcbb0dfb2acd1b393468625bb52838d6f69a90f81c01bdf6fce60d4269f
|
7
|
+
data.tar.gz: 1e06a3d3c3b2c551078a66dd0743633cca7c45f49d5a5e6cadd886c6555854d36da2a8c6d67e40be94d530fd0932c4b923258b03793f50a52cf122b699a5ae4a
|
@@ -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
|