├── .gem_release.yml ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── rspec.yml │ └── rubocop.yml ├── .gitignore ├── .mdlrc ├── .rspec ├── .rubocop-md.yml ├── .rubocop.yml ├── CHANGELOG.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── RELEASING.md ├── Rakefile ├── assets └── report.png ├── callback_hell.gemspec ├── config.ru ├── file_id.diz ├── gemfiles ├── rails6.gemfile ├── rails70.gemfile ├── rails72.gemfile ├── rails8.gemfile ├── railsmaster.gemfile └── rubocop.gemfile ├── lib ├── callback_hell.rb ├── callback_hell │ ├── analyzers │ │ ├── callback_analyzer.rb │ │ └── validation_analyzer.rb │ ├── callback.rb │ ├── collector.rb │ ├── railtie.rb │ ├── reports │ │ ├── base.rb │ │ ├── callbacks │ │ │ ├── github.rb │ │ │ ├── line.rb │ │ │ └── table.rb │ │ ├── github_base.rb │ │ ├── line_base.rb │ │ ├── table_base.rb │ │ └── validations │ │ │ ├── github.rb │ │ │ ├── line.rb │ │ │ └── table.rb │ ├── runner.rb │ ├── stats.rb │ └── version.rb └── tasks │ └── callback_hell.rake └── spec ├── internal ├── app │ ├── assets │ │ └── config │ │ │ └── manifest.js │ └── models │ │ ├── application_record.rb │ │ ├── bar.rb │ │ ├── bar │ │ └── baz.rb │ │ ├── bar_jr.rb │ │ ├── concerns │ │ └── annoying.rb │ │ └── foo.rb ├── config │ ├── database.yml │ ├── routes.rb │ └── storage.yml ├── db │ └── schema.rb ├── log │ └── .gitignore ├── public │ └── favicon.ico └── vendor │ └── gems │ └── acts_as_taggable │ └── acts_as_taggable.rb ├── modelscope ├── integration │ ├── association_spec.rb │ ├── attribute_generated_spec.rb │ ├── empty_activerecord_spec.rb │ ├── external_callbacks_spec.rb │ ├── inherited_spec.rb │ ├── modelscope_spec.rb │ └── self_defined_spec.rb ├── lib │ ├── callback_spec.rb │ ├── collector_spec.rb │ ├── reports │ │ ├── callbacks │ │ │ ├── github_spec.rb │ │ │ ├── line_spec.rb │ │ │ └── table_spec.rb │ │ └── validations │ │ │ ├── github_spec.rb │ │ │ ├── line_spec.rb │ │ │ └── table_spec.rb │ ├── runner_spec.rb │ └── stats_spec.rb └── tasks │ └── modelscope_rake_spec.rb ├── spec_helper.rb └── support ├── matchers ├── callback_matchers.rb └── validation_matchers.rb └── shared_contexts ├── callbacks.rb └── validations.rb /.gem_release.yml: -------------------------------------------------------------------------------- 1 | bump: 2 | file: lib/callback_hell/version.rb 3 | skip_ci: true 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/rspec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.github/workflows/rspec.yml -------------------------------------------------------------------------------- /.github/workflows/rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.github/workflows/rubocop.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.gitignore -------------------------------------------------------------------------------- /.mdlrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.mdlrc -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.rspec -------------------------------------------------------------------------------- /.rubocop-md.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.rubocop-md.yml -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/README.md -------------------------------------------------------------------------------- /RELEASING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/RELEASING.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/Rakefile -------------------------------------------------------------------------------- /assets/report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/assets/report.png -------------------------------------------------------------------------------- /callback_hell.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/callback_hell.gemspec -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/config.ru -------------------------------------------------------------------------------- /file_id.diz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/file_id.diz -------------------------------------------------------------------------------- /gemfiles/rails6.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/gemfiles/rails6.gemfile -------------------------------------------------------------------------------- /gemfiles/rails70.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/gemfiles/rails70.gemfile -------------------------------------------------------------------------------- /gemfiles/rails72.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/gemfiles/rails72.gemfile -------------------------------------------------------------------------------- /gemfiles/rails8.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/gemfiles/rails8.gemfile -------------------------------------------------------------------------------- /gemfiles/railsmaster.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/gemfiles/railsmaster.gemfile -------------------------------------------------------------------------------- /gemfiles/rubocop.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/gemfiles/rubocop.gemfile -------------------------------------------------------------------------------- /lib/callback_hell.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell.rb -------------------------------------------------------------------------------- /lib/callback_hell/analyzers/callback_analyzer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/analyzers/callback_analyzer.rb -------------------------------------------------------------------------------- /lib/callback_hell/analyzers/validation_analyzer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/analyzers/validation_analyzer.rb -------------------------------------------------------------------------------- /lib/callback_hell/callback.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/callback.rb -------------------------------------------------------------------------------- /lib/callback_hell/collector.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/collector.rb -------------------------------------------------------------------------------- /lib/callback_hell/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/railtie.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/base.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/callbacks/github.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/callbacks/github.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/callbacks/line.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/callbacks/line.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/callbacks/table.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/callbacks/table.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/github_base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/github_base.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/line_base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/line_base.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/table_base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/table_base.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/validations/github.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/validations/github.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/validations/line.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/validations/line.rb -------------------------------------------------------------------------------- /lib/callback_hell/reports/validations/table.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/reports/validations/table.rb -------------------------------------------------------------------------------- /lib/callback_hell/runner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/runner.rb -------------------------------------------------------------------------------- /lib/callback_hell/stats.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/callback_hell/stats.rb -------------------------------------------------------------------------------- /lib/callback_hell/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module CallbackHell 4 | VERSION = "0.2.1" 5 | end 6 | -------------------------------------------------------------------------------- /lib/tasks/callback_hell.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/lib/tasks/callback_hell.rake -------------------------------------------------------------------------------- /spec/internal/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/internal/app/models/application_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/app/models/application_record.rb -------------------------------------------------------------------------------- /spec/internal/app/models/bar.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/app/models/bar.rb -------------------------------------------------------------------------------- /spec/internal/app/models/bar/baz.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/app/models/bar/baz.rb -------------------------------------------------------------------------------- /spec/internal/app/models/bar_jr.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/app/models/bar_jr.rb -------------------------------------------------------------------------------- /spec/internal/app/models/concerns/annoying.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/app/models/concerns/annoying.rb -------------------------------------------------------------------------------- /spec/internal/app/models/foo.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/app/models/foo.rb -------------------------------------------------------------------------------- /spec/internal/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/config/database.yml -------------------------------------------------------------------------------- /spec/internal/config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/config/routes.rb -------------------------------------------------------------------------------- /spec/internal/config/storage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/config/storage.yml -------------------------------------------------------------------------------- /spec/internal/db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/db/schema.rb -------------------------------------------------------------------------------- /spec/internal/log/.gitignore: -------------------------------------------------------------------------------- 1 | *.log -------------------------------------------------------------------------------- /spec/internal/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/internal/vendor/gems/acts_as_taggable/acts_as_taggable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/internal/vendor/gems/acts_as_taggable/acts_as_taggable.rb -------------------------------------------------------------------------------- /spec/modelscope/integration/association_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/integration/association_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/integration/attribute_generated_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/integration/attribute_generated_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/integration/empty_activerecord_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/integration/empty_activerecord_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/integration/external_callbacks_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/integration/external_callbacks_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/integration/inherited_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/integration/inherited_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/integration/modelscope_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/integration/modelscope_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/integration/self_defined_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/integration/self_defined_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/callback_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/callback_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/collector_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/collector_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/reports/callbacks/github_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/reports/callbacks/github_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/reports/callbacks/line_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/reports/callbacks/line_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/reports/callbacks/table_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/reports/callbacks/table_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/reports/validations/github_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/reports/validations/github_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/reports/validations/line_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/reports/validations/line_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/reports/validations/table_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/reports/validations/table_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/runner_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/runner_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/lib/stats_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/lib/stats_spec.rb -------------------------------------------------------------------------------- /spec/modelscope/tasks/modelscope_rake_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/modelscope/tasks/modelscope_rake_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/matchers/callback_matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/support/matchers/callback_matchers.rb -------------------------------------------------------------------------------- /spec/support/matchers/validation_matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/support/matchers/validation_matchers.rb -------------------------------------------------------------------------------- /spec/support/shared_contexts/callbacks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/support/shared_contexts/callbacks.rb -------------------------------------------------------------------------------- /spec/support/shared_contexts/validations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/callback_hell/HEAD/spec/support/shared_contexts/validations.rb --------------------------------------------------------------------------------