@@ -29,7 +29,7 @@ const (
2929 cfgKeyMySQLPort = "mysql.port"
3030 cfgKeyMySQLDatabase = "mysql.database"
3131 cfgKeyMySQLUser = "mysql.user"
32- cfgKeyMySQLPassword = "mysql.password" //nolint: gosec
32+ cfgKeyMySQLPassword = "mysql.password" //nolint:gosec // Not a hardcoded password, just a config key
3333 cfgKeyMySQLTxLevel = "mysql.txLevel"
3434
3535 cfgKeySQLitePath = "sqlite3.path"
@@ -38,7 +38,7 @@ const (
3838 cfgKeyPostgresPort = "postgres.port"
3939 cfgKeyPostgresDatabase = "postgres.database"
4040 cfgKeyPostgresUser = "postgres.user"
41- cfgKeyPostgresPassword = "postgres.password" //nolint: gosec
41+ cfgKeyPostgresPassword = "postgres.password" //nolint:gosec // Not a hardcoded password, just a config key
4242 cfgKeyPostgresTxLevel = "postgres.txLevel"
4343 cfgKeyPostgresSSLMode = "postgres.sslMode"
4444 cfgKeyPostgresSearchPath = "postgres.searchPath"
@@ -47,7 +47,7 @@ const (
4747 cfgKeyMSSQLPort = "mssql.port"
4848 cfgKeyMSSQLDatabase = "mssql.database"
4949 cfgKeyMSSQLUser = "mssql.user"
50- cfgKeyMSSQLPassword = "mssql.password" //nolint: gosec
50+ cfgKeyMSSQLPassword = "mssql.password" //nolint:gosec // Not a hardcoded password, just a config key
5151 cfgKeyMSSQLTxLevel = "mssql.txLevel"
5252 cfgKeyMSSQLAdditionalParams = "mssql.additionalParameters"
5353)
@@ -291,7 +291,7 @@ func (c *Config) setDialectSpecificConfig(dp config.DataProvider) error {
291291 return err
292292}
293293
294- // nolint: dupl
294+ //nolint:dupl // Similar config setters for different database dialects
295295func (c * Config ) setMySQLConfig (dp config.DataProvider ) error {
296296 var err error
297297
@@ -317,7 +317,7 @@ func (c *Config) setMySQLConfig(dp config.DataProvider) error {
317317 return nil
318318}
319319
320- // nolint: dupl
320+ //nolint:dupl // Similar config setters for different database dialects
321321func (c * Config ) setMSSQLConfig (dp config.DataProvider ) error {
322322 var err error
323323
@@ -350,7 +350,7 @@ func (c *Config) setMSSQLConfig(dp config.DataProvider) error {
350350 return nil
351351}
352352
353- // nolint: dupl
353+ //nolint:dupl // Similar config setters for different database dialects
354354func (c * Config ) setPostgresConfig (dp config.DataProvider , dialect Dialect ) error {
355355 var err error
356356
0 commit comments