Skip to content

Commit 11fac7f

Browse files
committed
Let Layout/LeadingCommentSpac cop address #:nodoc offenses
Refer rubocop/rubocop#9964 ``` % bundle exec rubocop -a Inspecting 70 files .....CCC.CC..C.CC.CC.CCCCC.C.......................................... Offenses: lib/active_record/connection_adapters/emulation/oracle_adapter.rb:3:113: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class ActiveRecord::ConnectionAdapters::OracleAdapter < ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/column.rb:4:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ConnectionAdapters #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/column.rb:9:91: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def initialize(name, default, sql_type_metadata = nil, null = true, comment: nil) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/connection.rb:7:24: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class Connection #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/connection.rb:121:49: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class ConnectionException < StandardError #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb:12:32: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def table_alias_length #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:167:34: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def begin_db_transaction #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:186:35: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def commit_db_transaction #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:192:42: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def exec_rollback_db_transaction #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:198:61: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def create_savepoint(name = current_savepoint_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:202:71: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def exec_rollback_to_savepoint(name = current_savepoint_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:206:62: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def release_savepoint(name = current_savepoint_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:217:49: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def insert_fixture(fixture, table_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:252:64: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def write_lobs(table_name, klass, attributes, columns) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb:55:57: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class JDBCConnection < OracleEnhanced::Connection #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/lob.rb:3:21: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ActiveRecord #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/lob.rb:4:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ConnectionAdapters #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/lob.rb:5:27: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module OracleEnhanced #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/lob.rb:6:18: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module Lob #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:29:56: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class OCIConnection < OracleEnhanced::Connection #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:302:38: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class OracleEnhancedOCIFactory #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:378:1: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. ^^^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:379:53: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class OCI8EnhancedAutoRecover < DelegateClass(OCI8) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:380:25: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. attr_accessor :active #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:381:26: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. alias :active? :active #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:385:36: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. alias :auto_retry? :auto_retry #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:389:35: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def initialize(config, factory) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:400:12: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def ping #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:409:14: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def reset! #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:426:64: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. LOST_CONNECTION_ERROR_CODES = [ 28, 1012, 3113, 3114, 3135 ] #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:429:18: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def with_retry #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:444:36: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def exec(sql, *bindvars, &block) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:448:1: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. ^^^^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/procedures.rb:5:21: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ActiveRecord #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/procedures.rb:36:35: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module OracleEnhancedProcedures #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/procedures.rb:86:17: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def destroy #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:11:37: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def quote_column_name(name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:23:51: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def quote_column_name_or_expression(name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:58:42: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def self.valid_table_name?(name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:68:36: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def quote_table_name(name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:73:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def quote_string(s) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:77:27: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def _quote(value) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:94:25: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def quoted_true #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:99:27: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def unquoted_true #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:104:26: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def quoted_false #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:109:28: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def unquoted_false #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb:38:78: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class SynonymDefinition < Struct.new(:name, :table_owner, :table_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_dumper.rb:3:21: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ActiveRecord #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_dumper.rb:4:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ConnectionAdapters #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_dumper.rb:5:27: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module OracleEnhanced #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_dumper.rb:6:61: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. class SchemaDumper < ConnectionAdapters::SchemaDumper #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:13:20: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def tables #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:69:32: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def materialized_views #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:89:33: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def indexes(table_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:255:48: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def rename_table(table_name, new_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:267:47: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def drop_table(table_name, **options) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:298:59: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def add_index(table_name, column_name, **options) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:308:81: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def add_index_options(table_name, column_name, comment: nil, **options) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:332:68: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def remove_index(table_name, column_name = nil, **options) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:340:45: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def index_name(table_name, options) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:380:58: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def rename_index(table_name, old_name, new_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:415:66: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def add_column(table_name, column_name, type, **options) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:432:80: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def change_column_default(table_name, column_name, default_or_changes) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:439:78: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def change_column_null(table_name, column_name, null, default = nil) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:449:69: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def change_column(table_name, column_name, type, **options) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:473:69: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def rename_column(table_name, column_name, new_column_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:480:78: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def remove_column(table_name, column_name, type = nil, options = {}) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:510:39: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def table_comment(table_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:526:53: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def column_comment(table_name, column_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:538:75: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def type_to_sql(type, limit: nil, precision: nil, scale: nil, **) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:555:38: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def foreign_keys(table_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:599:51: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def disable_referential_integrity(&block) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:3:21: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ActiveRecord #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:4:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ConnectionAdapters #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:5:27: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module OracleEnhanced #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:6:28: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module StructureDump #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:10:28: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:63:43: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_column(column) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:78:65: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_virtual_column(column, data_default) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:92:47: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_primary_key(table) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:111:47: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_unique_keys(table) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:132:48: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_indexes(table_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:148:43: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_fk_constraints #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:193:60: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def foreign_key_definition(to_table, options = {}) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:210:43: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_db_stored_code #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:242:34: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_views #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:254:37: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_dump_synonyms #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:268:28: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def structure_drop #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:291:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def temp_table_drop #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb:303:48: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def full_drop(preserve_tables = false) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced/type_metadata.rb:4:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ConnectionAdapters #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:66:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ConnectionHandling #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:68:44: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def oracle_enhanced_connection(config) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:82:29: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. module ConnectionAdapters #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:252:24: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def adapter_name #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:276:32: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def supports_savepoints? #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:280:43: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def supports_transaction_isolation? #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:363:7: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. #:stopdoc: ^^^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:382:7: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. #:stopdoc: ^^^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:388:7: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. #:stopdoc: ^^^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:412:7: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. #:startdoc: ^^^^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:414:33: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def native_database_types #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:424:31: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. attr_reader :auto_retry #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:427:30: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def auto_retry=(value) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:438:19: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def active? #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:449:22: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def reconnect! #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:462:23: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def disconnect! #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:500:82: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def reset_pk_sequence!(table_name, primary_key = nil, sequence_name = nil) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:594:79: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def pk_and_sequence_for(table_name, owner = nil, desc_table_name = nil) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:632:76: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def has_primary_key?(table_name, owner = nil, desc_table_name = nil) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:652:49: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def columns_for_distinct(columns, orders) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:668:40: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def temporary_table?(table_name) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:734:37: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def extract_limit(sql_type) #:nodoc: ^^^^^^^^ lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:743:68: C: [Corrected] Layout/LeadingCommentSpace: Missing space after #. def translate_exception(exception, message:, sql:, binds:) #:nodoc: ^^^^^^^^ 70 files inspected, 114 offenses detected, 114 offenses corrected yahonda@mymacbookpro oracle-enhanced %
1 parent 383bc85 commit 11fac7f

File tree

16 files changed

+114
-114
lines changed

16 files changed

+114
-114
lines changed

lib/active_record/connection_adapters/emulation/oracle_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
class ActiveRecord::ConnectionAdapters::OracleAdapter < ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter #:nodoc:
3+
class ActiveRecord::ConnectionAdapters::OracleAdapter < ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter # :nodoc:
44
def adapter_name
55
"Oracle"
66
end

lib/active_record/connection_adapters/oracle_enhanced/column.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# frozen_string_literal: true
22

33
module ActiveRecord
4-
module ConnectionAdapters #:nodoc:
4+
module ConnectionAdapters # :nodoc:
55
module OracleEnhanced
66
class Column < ActiveRecord::ConnectionAdapters::Column
77
delegate :virtual, to: :sql_type_metadata, allow_nil: true
88

9-
def initialize(name, default, sql_type_metadata = nil, null = true, comment: nil) #:nodoc:
9+
def initialize(name, default, sql_type_metadata = nil, null = true, comment: nil) # :nodoc:
1010
super(name, default, sql_type_metadata, null, comment: comment)
1111
end
1212

lib/active_record/connection_adapters/oracle_enhanced/connection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module ActiveRecord
44
module ConnectionAdapters
55
# interface independent methods
66
module OracleEnhanced
7-
class Connection #:nodoc:
7+
class Connection # :nodoc:
88
def self.create(config)
99
case ORACLE_ENHANCED_CONNECTION
1010
when :oci
@@ -118,7 +118,7 @@ def _select_value(arel, name = nil, binds = [])
118118
def database_version
119119
raise NoMethodError, "Not implemented for this raw driver"
120120
end
121-
class ConnectionException < StandardError #:nodoc:
121+
class ConnectionException < StandardError # :nodoc:
122122
end
123123
end
124124
end

lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module DatabaseLimits
99
# maximum length of Oracle identifiers
1010
IDENTIFIER_MAX_LENGTH = 30
1111

12-
def table_alias_length #:nodoc:
12+
def table_alias_length # :nodoc:
1313
IDENTIFIER_MAX_LENGTH
1414
end
1515

lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def exec_update(sql, name = nil, binds = [])
164164

165165
alias :exec_delete :exec_update
166166

167-
def begin_db_transaction #:nodoc:
167+
def begin_db_transaction # :nodoc:
168168
@connection.autocommit = false
169169
end
170170

@@ -183,27 +183,27 @@ def begin_isolated_db_transaction(isolation)
183183
execute "SET TRANSACTION ISOLATION LEVEL #{transaction_isolation_levels.fetch(isolation)}"
184184
end
185185

186-
def commit_db_transaction #:nodoc:
186+
def commit_db_transaction # :nodoc:
187187
@connection.commit
188188
ensure
189189
@connection.autocommit = true
190190
end
191191

192-
def exec_rollback_db_transaction #:nodoc:
192+
def exec_rollback_db_transaction # :nodoc:
193193
@connection.rollback
194194
ensure
195195
@connection.autocommit = true
196196
end
197197

198-
def create_savepoint(name = current_savepoint_name) #:nodoc:
198+
def create_savepoint(name = current_savepoint_name) # :nodoc:
199199
execute("SAVEPOINT #{name}", "TRANSACTION")
200200
end
201201

202-
def exec_rollback_to_savepoint(name = current_savepoint_name) #:nodoc:
202+
def exec_rollback_to_savepoint(name = current_savepoint_name) # :nodoc:
203203
execute("ROLLBACK TO #{name}", "TRANSACTION")
204204
end
205205

206-
def release_savepoint(name = current_savepoint_name) #:nodoc:
206+
def release_savepoint(name = current_savepoint_name) # :nodoc:
207207
# there is no RELEASE SAVEPOINT statement in Oracle
208208
end
209209

@@ -214,7 +214,7 @@ def default_sequence_name(table_name, primary_key = nil)
214214
end
215215

216216
# Inserts the given fixture into the table. Overridden to properly handle lobs.
217-
def insert_fixture(fixture, table_name) #:nodoc:
217+
def insert_fixture(fixture, table_name) # :nodoc:
218218
super
219219

220220
if ActiveRecord::Base.pluralize_table_names
@@ -249,7 +249,7 @@ def empty_insert_statement_value
249249
end
250250

251251
# Writes LOB values from attributes for specified columns
252-
def write_lobs(table_name, klass, attributes, columns) #:nodoc:
252+
def write_lobs(table_name, klass, attributes, columns) # :nodoc:
253253
id = quote(attributes[klass.primary_key])
254254
columns.each do |col|
255255
value = attributes[col.name]

lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module ActiveRecord
5252
module ConnectionAdapters
5353
# JDBC database interface for JRuby
5454
module OracleEnhanced
55-
class JDBCConnection < OracleEnhanced::Connection #:nodoc:
55+
class JDBCConnection < OracleEnhanced::Connection # :nodoc:
5656
attr_accessor :active
5757
alias :active? :active
5858

lib/active_record/connection_adapters/oracle_enhanced/lob.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# frozen_string_literal: true
22

3-
module ActiveRecord #:nodoc:
4-
module ConnectionAdapters #:nodoc:
5-
module OracleEnhanced #:nodoc:
6-
module Lob #:nodoc:
3+
module ActiveRecord # :nodoc:
4+
module ConnectionAdapters # :nodoc:
5+
module OracleEnhanced # :nodoc:
6+
module Lob # :nodoc:
77
extend ActiveSupport::Concern
88

99
included do

lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module ActiveRecord
2626
module ConnectionAdapters
2727
# OCI database interface for MRI
2828
module OracleEnhanced
29-
class OCIConnection < OracleEnhanced::Connection #:nodoc:
29+
class OCIConnection < OracleEnhanced::Connection # :nodoc:
3030
def initialize(config)
3131
@raw_connection = OCI8EnhancedAutoRecover.new(config, OracleEnhancedOCIFactory)
3232
# default schema owner
@@ -299,7 +299,7 @@ def create_time_with_default_timezone(value)
299299

300300
# The OracleEnhancedOCIFactory factors out the code necessary to connect and
301301
# configure an Oracle/OCI connection.
302-
class OracleEnhancedOCIFactory #:nodoc:
302+
class OracleEnhancedOCIFactory # :nodoc:
303303
DEFAULT_TCP_KEEPALIVE_TIME = 600
304304

305305
def self.new_connection(config)
@@ -375,18 +375,18 @@ def self.new_connection(config)
375375
# this would be dangerous (as the earlier part of the implied transaction
376376
# may have failed silently if the connection died) -- so instead the
377377
# connection is marked as dead, to be reconnected on it's next use.
378-
#:stopdoc:
379-
class OCI8EnhancedAutoRecover < DelegateClass(OCI8) #:nodoc:
380-
attr_accessor :active #:nodoc:
381-
alias :active? :active #:nodoc:
378+
# :stopdoc:
379+
class OCI8EnhancedAutoRecover < DelegateClass(OCI8) # :nodoc:
380+
attr_accessor :active # :nodoc:
381+
alias :active? :active # :nodoc:
382382

383383
cattr_accessor :auto_retry
384384
class << self
385-
alias :auto_retry? :auto_retry #:nodoc:
385+
alias :auto_retry? :auto_retry # :nodoc:
386386
end
387387
@@auto_retry = false
388388

389-
def initialize(config, factory) #:nodoc:
389+
def initialize(config, factory) # :nodoc:
390390
@active = true
391391
@config = config
392392
@factory = factory
@@ -397,7 +397,7 @@ def initialize(config, factory) #:nodoc:
397397
# Checks connection, returns true if active. Note that ping actively
398398
# checks the connection, while #active? simply returns the last
399399
# known state.
400-
def ping #:nodoc:
400+
def ping # :nodoc:
401401
@connection.exec("select 1 from dual") { |r| nil }
402402
@active = true
403403
rescue
@@ -406,7 +406,7 @@ def ping #:nodoc:
406406
end
407407

408408
# Resets connection, by logging off and creating a new connection.
409-
def reset! #:nodoc:
409+
def reset! # :nodoc:
410410
logoff rescue nil
411411
begin
412412
@connection = @factory.new_connection @config
@@ -423,10 +423,10 @@ def reset! #:nodoc:
423423
# ORA-03113: end-of-file on communication channel
424424
# ORA-03114: not connected to ORACLE
425425
# ORA-03135: connection lost contact
426-
LOST_CONNECTION_ERROR_CODES = [ 28, 1012, 3113, 3114, 3135 ] #:nodoc:
426+
LOST_CONNECTION_ERROR_CODES = [ 28, 1012, 3113, 3114, 3135 ] # :nodoc:
427427

428428
# Adds auto-recovery functionality.
429-
def with_retry #:nodoc:
429+
def with_retry # :nodoc:
430430
should_retry = self.class.auto_retry? && autocommit?
431431

432432
begin
@@ -441,8 +441,8 @@ def with_retry #:nodoc:
441441
end
442442
end
443443

444-
def exec(sql, *bindvars, &block) #:nodoc:
444+
def exec(sql, *bindvars, &block) # :nodoc:
445445
with_retry { @connection.exec(sql, *bindvars, &block) }
446446
end
447447
end
448-
#:startdoc:
448+
# :startdoc:

lib/active_record/connection_adapters/oracle_enhanced/procedures.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require "active_support"
44

5-
module ActiveRecord #:nodoc:
5+
module ActiveRecord # :nodoc:
66
# Custom create, update, delete methods functionality.
77
#
88
# Example:
@@ -33,7 +33,7 @@ module ActiveRecord #:nodoc:
3333
# end
3434
# end
3535
#
36-
module OracleEnhancedProcedures #:nodoc:
36+
module OracleEnhancedProcedures # :nodoc:
3737
module ClassMethods
3838
# Specify custom create method which should be used instead of Rails generated INSERT statement.
3939
# Provided block should return ID of new record.
@@ -83,7 +83,7 @@ def self.included(base)
8383
end
8484
end
8585

86-
def destroy #:nodoc:
86+
def destroy # :nodoc:
8787
# check if class has custom delete method
8888
if self.class.custom_delete_method
8989
# wrap destroy in transaction

lib/active_record/connection_adapters/oracle_enhanced/quoting.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Quoting
88
#
99
# see: abstract/quoting.rb
1010

11-
def quote_column_name(name) #:nodoc:
11+
def quote_column_name(name) # :nodoc:
1212
name = name.to_s
1313
self.class.quoted_column_names[name] ||= if /\A[a-z][a-z_0-9$#]*\Z/.match?(name)
1414
"\"#{name.upcase}\""
@@ -20,7 +20,7 @@ def quote_column_name(name) #:nodoc:
2020

2121
# This method is used in add_index to identify either column name (which is quoted)
2222
# or function based index (in which case function expression is not quoted)
23-
def quote_column_name_or_expression(name) #:nodoc:
23+
def quote_column_name_or_expression(name) # :nodoc:
2424
name = name.to_s
2525
case name
2626
# if only valid lowercase column characters in name
@@ -55,7 +55,7 @@ def quote_column_name_or_expression(name) #:nodoc:
5555
# contain letters, digits, _, $ or #
5656
# can be prefixed with schema name
5757
# CamelCase table names should be quoted
58-
def self.valid_table_name?(name) #:nodoc:
58+
def self.valid_table_name?(name) # :nodoc:
5959
object_name = name.to_s
6060
!!(object_name =~ VALID_TABLE_NAME && !mixed_case?(object_name))
6161
end
@@ -65,16 +65,16 @@ def self.mixed_case?(name)
6565
!!(object_name =~ /[A-Z]/ && object_name =~ /[a-z]/)
6666
end
6767

68-
def quote_table_name(name) #:nodoc:
68+
def quote_table_name(name) # :nodoc:
6969
name, _link = name.to_s.split("@")
7070
self.class.quoted_table_names[name] ||= [name.split(".").map { |n| quote_column_name(n) }].join(".")
7171
end
7272

73-
def quote_string(s) #:nodoc:
73+
def quote_string(s) # :nodoc:
7474
s.gsub(/'/, "''")
7575
end
7676

77-
def _quote(value) #:nodoc:
77+
def _quote(value) # :nodoc:
7878
case value
7979
when Type::OracleEnhanced::CharacterString::Data then
8080
"'#{quote_string(value.to_s)}'"
@@ -91,22 +91,22 @@ def _quote(value) #:nodoc:
9191
end
9292
end
9393

94-
def quoted_true #:nodoc:
94+
def quoted_true # :nodoc:
9595
return "'Y'" if emulate_booleans_from_strings
9696
"1"
9797
end
9898

99-
def unquoted_true #:nodoc:
99+
def unquoted_true # :nodoc:
100100
return "Y" if emulate_booleans_from_strings
101101
"1"
102102
end
103103

104-
def quoted_false #:nodoc:
104+
def quoted_false # :nodoc:
105105
return "'N'" if emulate_booleans_from_strings
106106
"0"
107107
end
108108

109-
def unquoted_false #:nodoc:
109+
def unquoted_false # :nodoc:
110110
return "N" if emulate_booleans_from_strings
111111
"0"
112112
end

0 commit comments

Comments
 (0)