grafana/pkg/services/sqlstore
Karsten Weiss b7adf28501 Remove redundancy in variable declarations (golint)
This commit fixes the following golint warnings:
pkg/api/avatar/avatar.go:229:12: should omit type *http.Client from declaration of var client; it will be inferred from the right-hand side
pkg/login/brute_force_login_protection.go:13:26: should omit type time.Duration from declaration of var loginAttemptsWindow; it will be inferred from the right-hand side
pkg/metrics/graphitebridge/graphite.go:58:26: should omit type []string from declaration of var metricCategoryPrefix; it will be inferred from the right-hand side
pkg/metrics/graphitebridge/graphite.go:69:22: should omit type []string from declaration of var trimMetricPrefix; it will be inferred from the right-hand side
pkg/models/alert.go:37:36: should omit type error from declaration of var ErrCannotChangeStateOnPausedAlert; it will be inferred from the right-hand side
pkg/models/alert.go:38:36: should omit type error from declaration of var ErrRequiresNewState; it will be inferred from the right-hand side
pkg/models/datasource.go:61:28: should omit type map[string]bool from declaration of var knownDatasourcePlugins; it will be inferred from the right-hand side
pkg/plugins/update_checker.go:16:13: should omit type http.Client from declaration of var httpClient; it will be inferred from the right-hand side
pkg/services/alerting/engine.go:103:24: should omit type time.Duration from declaration of var unfinishedWorkTimeout; it will be inferred from the right-hand side
pkg/services/alerting/engine.go:105:19: should omit type time.Duration from declaration of var alertTimeout; it will be inferred from the right-hand side
pkg/services/alerting/engine.go:106:19: should omit type int from declaration of var alertMaxAttempts; it will be inferred from the right-hand side
pkg/services/alerting/notifier.go:143:23: should omit type map[string]*NotifierPlugin from declaration of var notifierFactories; it will be inferred from the right-hand side
pkg/services/alerting/rule.go:136:24: should omit type map[string]ConditionFactory from declaration of var conditionFactories; it will be inferred from the right-hand side
pkg/services/alerting/conditions/evaluator.go:12:15: should omit type []string from declaration of var defaultTypes; it will be inferred from the right-hand side
pkg/services/alerting/conditions/evaluator.go:13:15: should omit type []string from declaration of var rangedTypes; it will be inferred from the right-hand side
pkg/services/alerting/notifiers/opsgenie.go:44:19: should omit type string from declaration of var opsgenieAlertURL; it will be inferred from the right-hand side
pkg/services/alerting/notifiers/pagerduty.go:43:23: should omit type string from declaration of var pagerdutyEventApiUrl; it will be inferred from the right-hand side
pkg/services/alerting/notifiers/telegram.go:21:17: should omit type string from declaration of var telegramApiUrl; it will be inferred from the right-hand side
pkg/services/provisioning/dashboards/config_reader_test.go:11:24: should omit type string from declaration of var simpleDashboardConfig; it will be inferred from the right-hand side
pkg/services/provisioning/dashboards/config_reader_test.go:12:24: should omit type string from declaration of var oldVersion; it will be inferred from the right-hand side
pkg/services/provisioning/dashboards/config_reader_test.go:13:24: should omit type string from declaration of var brokenConfigs; it will be inferred from the right-hand side
pkg/services/provisioning/dashboards/file_reader.go:22:30: should omit type time.Duration from declaration of var checkDiskForChangesInterval; it will be inferred from the right-hand side
pkg/services/provisioning/dashboards/file_reader.go:24:23: should omit type error from declaration of var ErrFolderNameMissing; it will be inferred from the right-hand side
pkg/services/provisioning/datasources/config_reader_test.go:15:34: should omit type string from declaration of var twoDatasourcesConfig; it will be inferred from the right-hand side
pkg/services/provisioning/datasources/config_reader_test.go:16:34: should omit type string from declaration of var twoDatasourcesConfigPurgeOthers; it will be inferred from the right-hand side
pkg/services/provisioning/datasources/config_reader_test.go:17:34: should omit type string from declaration of var doubleDatasourcesConfig; it will be inferred from the right-hand side
pkg/services/provisioning/datasources/config_reader_test.go:18:34: should omit type string from declaration of var allProperties; it will be inferred from the right-hand side
pkg/services/provisioning/datasources/config_reader_test.go:19:34: should omit type string from declaration of var versionZero; it will be inferred from the right-hand side
pkg/services/provisioning/datasources/config_reader_test.go:20:34: should omit type string from declaration of var brokenYaml; it will be inferred from the right-hand side
pkg/services/sqlstore/stats.go:16:25: should omit type time.Duration from declaration of var activeUserTimeLimit; it will be inferred from the right-hand side
pkg/services/sqlstore/migrator/mysql_dialect.go:69:14: should omit type bool from declaration of var hasLen1; it will be inferred from the right-hand side
pkg/services/sqlstore/migrator/mysql_dialect.go:70:14: should omit type bool from declaration of var hasLen2; it will be inferred from the right-hand side
pkg/services/sqlstore/migrator/postgres_dialect.go:95:14: should omit type bool from declaration of var hasLen1; it will be inferred from the right-hand side
pkg/services/sqlstore/migrator/postgres_dialect.go:96:14: should omit type bool from declaration of var hasLen2; it will be inferred from the right-hand side
pkg/setting/setting.go:42:15: should omit type string from declaration of var Env; it will be inferred from the right-hand side
pkg/setting/setting.go:161:18: should omit type bool from declaration of var LdapAllowSignup; it will be inferred from the right-hand side
pkg/setting/setting.go:473:30: should omit type bool from declaration of var skipStaticRootValidation; it will be inferred from the right-hand side
pkg/tsdb/interval.go:14:21: should omit type time.Duration from declaration of var defaultMinInterval; it will be inferred from the right-hand side
pkg/tsdb/interval.go:15:21: should omit type time.Duration from declaration of var year; it will be inferred from the right-hand side
pkg/tsdb/interval.go:16:21: should omit type time.Duration from declaration of var day; it will be inferred from the right-hand side
pkg/tsdb/cloudwatch/credentials.go:26:24: should omit type map[string]cache from declaration of var awsCredentialCache; it will be inferred from the right-hand side
pkg/tsdb/influxdb/query.go:15:27: should omit type *regexp.Regexp from declaration of var regexpOperatorPattern; it will be inferred from the right-hand side
pkg/tsdb/influxdb/query.go:16:27: should omit type *regexp.Regexp from declaration of var regexpMeasurementPattern; it will be inferred from the right-hand side
pkg/tsdb/mssql/mssql_test.go:25:14: should omit type string from declaration of var serverIP; it will be inferred from the right-hand side
2018-04-27 22:14:36 +02:00
..
migrations pkg: fix deadcode issues 2018-04-26 19:24:21 +02:00
migrator Remove redundancy in variable declarations (golint) 2018-04-27 22:14:36 +02:00
sqlutil docker: mssql and mssql tests blocks with common build context 2018-03-15 09:49:53 +01:00
alert_notification_test.go pkg: fix codespell issues 2018-04-13 20:31:29 +02:00
alert_notification.go Simplify error returns (gosimple) 2018-04-16 21:04:57 +02:00
alert_test.go Merge pull request #10942 from grafana/pausing_alerts_updates_timestamp 2018-03-07 15:40:12 +01:00
alert.go database: fixes after xorm update 2018-03-16 00:09:29 +01:00
annotation_test.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00
annotation.go Merge branch 'annotations-created' of https://github.com/ryantxu/grafana into ryantxu-annotations-created 2018-04-20 17:14:06 +02:00
apikey_test.go Added expire option to dashboard snapshots, #1623 2015-03-26 12:00:52 +01:00
apikey.go Simplify comparison to bool constant (gosimple) 2018-04-16 21:04:57 +02:00
dashboard_acl_test.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00
dashboard_acl.go return inherited property for permissions 2018-04-23 09:23:14 +02:00
dashboard_folder_test.go database: fixes after xorm update 2018-03-16 00:09:29 +01:00
dashboard_provisioning_test.go provisioning: simplify db query 2018-04-10 12:30:37 +02:00
dashboard_provisioning.go provisioning: simplify db query 2018-04-10 12:30:37 +02:00
dashboard_service_integration_test.go Merge branch 'master' into readonly_dashboards 2018-04-17 16:27:51 +02:00
dashboard_snapshot_test.go snapshots: fixes cleanup of old snapshots 2018-02-22 16:12:16 +01:00
dashboard_snapshot.go Simplify comparison to bool constant (gosimple) 2018-04-16 21:04:57 +02:00
dashboard_test.go removes unused variables 2018-03-07 16:40:24 +01:00
dashboard_version_test.go dashboard version cleanup: more tests and refactor 2018-03-22 15:18:05 +03:00
dashboard_version.go dashboard version cleanup: more tests and refactor 2018-03-22 15:18:05 +03:00
dashboard.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00
datasource_test.go Shouldn't be able to overwrite a dashboard if you don't have permissions (#10900) 2018-02-19 11:12:56 +01:00
datasource.go bug: return correct err message 2018-02-14 13:32:52 +01:00
health.go feat: added api health endpoint that does not require auth and never creates sessions, returns db status as well. #3302 2017-04-25 17:17:45 +02:00
logger.go dasboard_history: security fix, added orgId filter to dashboard version lookup 2017-06-07 14:21:40 +02:00
login_attempt_test.go WIP: Protect against brute force (frequent) login attempts (#10031) 2018-01-26 10:41:41 +01:00
login_attempt.go login: uses epochs for login throtting. 2018-02-16 17:25:46 +01:00
org_test.go database: fixes after xorm update 2018-03-16 00:09:29 +01:00
org_users.go teams: use orgId in all team and team member operations (#10862) 2018-02-09 17:26:15 +01:00
org.go refactor: sqlstore inTransaction consolidated to one version, fixes #8376 2017-05-23 10:56:23 +02:00
playlist_test.go chore(playlist): remove commented code 2016-01-29 20:33:01 +01:00
playlist.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00
plugin_setting.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00
preferences.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00
quota_test.go database: fixes after xorm update 2018-03-16 00:09:29 +01:00
quota.go Simplify comparison to bool constant (gosimple) 2018-04-16 21:04:57 +02:00
search_builder_test.go dashboard and folder search with permissions 2018-02-08 17:11:01 +01:00
search_builder.go fix: sql search permissions filter fix 2018-02-13 16:49:00 +01:00
shared.go refactor: sqlstore inTransaction consolidated to one version, fixes #8376 2017-05-23 10:56:23 +02:00
sql_test_data.go refactor: sqlstore inTransaction consolidated to one version, fixes #8376 2017-05-23 10:56:23 +02:00
sqlbuilder.go refactoring: alert rule query refactoring (#10941) 2018-02-16 13:56:04 +01:00
sqlstore.go Enable Grafana extensions at build time. (#11752) 2018-04-27 13:41:58 +02:00
sqlstore.goconvey feat(invite): small progress 2015-07-17 14:42:49 +02:00
star.go refactor: sqlstore inTransaction consolidated to one version, fixes #8376 2017-05-23 10:56:23 +02:00
stars_test.go Fixed gofmt formating, updated precommit hook 2015-03-07 16:37:19 +01:00
stats.go Remove redundancy in variable declarations (golint) 2018-04-27 22:14:36 +02:00
tables.go Began work on real sql schema definitions, and migration engine 2015-01-17 21:40:22 +01:00
team_test.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00
team.go Simplify error returns (gosimple) 2018-04-16 21:04:57 +02:00
temp_user_test.go signup: fix email sent logic for tempuser 2017-06-30 20:21:08 +02:00
temp_user.go Simplify comparison to bool constant (gosimple) 2018-04-16 21:04:57 +02:00
tls_mysql.go generalized database connection cert support and added to postgres 2016-11-22 15:29:22 -08:00
user_auth_test.go db: fix failing user auth tests for postgres 2018-04-23 16:02:59 +02:00
user_auth.go refactor authproxy & ldap integration, address comments 2018-04-17 14:06:25 -04:00
user_test.go Dashboard acl query fixes (#10909) 2018-02-14 15:04:26 +01:00
user.go pkg/services: fix ineffassign issues 2018-04-23 19:28:54 +02:00