Skip to content

Commit c249671

Browse files
committed
Disable MethodName for Function
This is triggered because method names shouldn't start with an UpperCase, but this instance is okay as it emulates a class
1 parent 704a641 commit c249671

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,3 @@ Style/Documentation:
3030
- 'lib/symengine/iruby.rb'
3131
- 'lib/symengine/undef_function.rb'
3232

33-
# Offense count: 1
34-
# Configuration parameters: EnforcedStyle, SupportedStyles.
35-
# SupportedStyles: snake_case, camelCase
36-
Style/MethodName:
37-
Exclude:
38-
- 'lib/symengine.rb'
39-

lib/symengine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def symbols(ary_or_string, *params)
3030
end
3131
end
3232

33-
def Function(n)
33+
def Function(n) # rubocop:disable Style/MethodName
3434
SymEngine::UndefFunction.new(n)
3535
end
3636

0 commit comments

Comments
 (0)