├── .env.example ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .travis.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Gemfile ├── Gemfile.lock ├── LICENSE.txt ├── README.md ├── Rakefile ├── dblint.gemspec ├── gemfiles ├── rails_4.2.gemfile └── rails_5.0.gemfile ├── lib ├── dblint.rb └── dblint │ ├── checks │ ├── base.rb │ ├── long_held_lock.rb │ └── missing_index.rb │ ├── rails_integration.rb │ └── version.rb └── spec ├── lib ├── long_held_lock_spec.rb ├── missing_index_spec.rb └── rails_integration_spec.rb ├── spec_helper.rb └── support ├── application.rb ├── models.rb └── schema.rb /.env.example: -------------------------------------------------------------------------------- 1 | DATABASE_URL=postgresql://user@localhost:5432/dblint 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/Rakefile -------------------------------------------------------------------------------- /dblint.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/dblint.gemspec -------------------------------------------------------------------------------- /gemfiles/rails_4.2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/gemfiles/rails_4.2.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_5.0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/gemfiles/rails_5.0.gemfile -------------------------------------------------------------------------------- /lib/dblint.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/lib/dblint.rb -------------------------------------------------------------------------------- /lib/dblint/checks/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/lib/dblint/checks/base.rb -------------------------------------------------------------------------------- /lib/dblint/checks/long_held_lock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/lib/dblint/checks/long_held_lock.rb -------------------------------------------------------------------------------- /lib/dblint/checks/missing_index.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/lib/dblint/checks/missing_index.rb -------------------------------------------------------------------------------- /lib/dblint/rails_integration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/lib/dblint/rails_integration.rb -------------------------------------------------------------------------------- /lib/dblint/version.rb: -------------------------------------------------------------------------------- 1 | module Dblint 2 | VERSION = '0.2.0'.freeze 3 | end 4 | -------------------------------------------------------------------------------- /spec/lib/long_held_lock_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/spec/lib/long_held_lock_spec.rb -------------------------------------------------------------------------------- /spec/lib/missing_index_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/spec/lib/missing_index_spec.rb -------------------------------------------------------------------------------- /spec/lib/rails_integration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/spec/lib/rails_integration_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/spec/support/application.rb -------------------------------------------------------------------------------- /spec/support/models.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/spec/support/models.rb -------------------------------------------------------------------------------- /spec/support/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lfittl/dblint/HEAD/spec/support/schema.rb --------------------------------------------------------------------------------