Skip to content

Commit f20e4c5

Browse files
koicbbatsov
authored andcommitted
Allow TLS1_1 and TLS1_2 by default in Naming/VariableNumber
This PR allows `TLS1_1` and `TLS1_2` by default in `Naming/VariableNumber`. to accommodate OpenSSL version parameter names.
1 parent 5a405d5 commit f20e4c5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#13977](https://github.com/rubocop/rubocop/issues/13977): Allow `TLS1_1` and `TLS1_2` by default in `Naming/VariableNumber` to accommodate OpenSSL version parameter names. ([@koic][])

config/default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,6 +3104,8 @@ Naming/VariableNumber:
31043104
CheckMethodNames: true
31053105
CheckSymbols: true
31063106
AllowedIdentifiers:
3107+
- TLS1_1 # OpenSSL::SSL::TLS1_1_VERSION
3108+
- TLS1_2 # OpenSSL::SSL::TLS1_2_VERSION
31073109
- capture3 # Open3.capture3
31083110
- iso8601 # Time#iso8601
31093111
- rfc1123_date # CGI.rfc1123_date

spec/rubocop/config_loader_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,9 @@
746746
.to contain_exactly('foo.rb', 'test.rb')
747747
expect(examples_configuration['Include']).to contain_exactly('bar.rb', 'another_test.rb')
748748
expect(examples_configuration['AllowedIdentifiers'])
749-
.to match_array(%w[capture3 iso8601 rfc1123_date rfc2822 rfc3339 rfc822 iso2 x86_64])
749+
.to match_array(
750+
%w[TLS1_1 TLS1_2 capture3 iso8601 rfc1123_date rfc2822 rfc3339 rfc822 iso2 x86_64]
751+
)
750752
expect(examples_configuration['InheritedArraySpecifiedString']).to contain_exactly(
751753
'bare string',
752754
'string in array'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy