You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it'registers an offense when Bugsnag.notify is used'do
6
+
it'registers an offense when Bugsnag is used as a constant'do
8
7
expect_offense(<<~RUBY)
9
-
Bugsnag.notify('Error')
10
-
^^^^^^^ Bugcrowd/PreventBugsnagUsage: Avoid using Bugsnag in the codebase. It has been replaced with ErrorNotifierService for error notification handling. Please use ErrorNotifierServiceinstead.
11
-
^^^^^^^^^^^^^^^^^^^^^^^ Bugcrowd/PreventBugsnagUsage: Avoid using Bugsnag in the codebase. It has been replaced with ErrorNotifierService for error notification handling. Please use ErrorNotifierServiceinstead.
8
+
Bugsnag.error('Error')
9
+
^^^^^^^^^^^^^^^^^^^^^^ Avoid using Bugsnag in the codebase. It has been replaced with ErrorNotifierService for error notification handling. Please use ErrorNotifierService instead.
12
10
RUBY
13
11
end
14
12
15
-
it'registers an offense when Bugsnag is used as a constant'do
13
+
it'registers an offense when Bugsnag.notify is used'do
16
14
expect_offense(<<~RUBY)
17
-
Bugsnag.error('Error')
18
-
^^^^^^^ Bugcrowd/PreventBugsnagUsage: Avoid using Bugsnag in the codebase. It has been replaced with ErrorNotifierService for error notification handling. Please use ErrorNotifierServiceinstead.
15
+
Bugsnag.notify('Error')
16
+
^^^^^^^^^^^^^^^^^^^^^^^ Avoid using Bugsnag in the codebase. It has been replaced with ErrorNotifierService for error notification handling. Please use ErrorNotifierService instead.
19
17
RUBY
20
18
end
21
19
@@ -24,10 +22,4 @@
24
22
ErrorNotifierService.notify('Error')
25
23
RUBY
26
24
end
27
-
28
-
it'does not register an offense when no Bugsnag is used'do
0 commit comments