warder 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/warder/version.rb +1 -1
  3. metadata +26 -214
  4. data/.gitignore +0 -20
  5. data/.travis.yml +0 -15
  6. data/Gemfile +0 -4
  7. data/LICENSE.txt +0 -22
  8. data/README.md +0 -130
  9. data/Rakefile +0 -53
  10. data/cucumber.yml +0 -4
  11. data/features/checks_for_all_issues.feature +0 -36
  12. data/features/checks_for_rails_best_practices.feature +0 -25
  13. data/features/checks_for_rails_related_issues.feature +0 -27
  14. data/features/checks_for_rails_security_issues.feature +0 -25
  15. data/features/checks_for_sandi_metz_rules.feature +0 -25
  16. data/features/checks_for_vulnerable_gems.feature +0 -25
  17. data/features/detects_code_complexity.feature +0 -29
  18. data/features/detects_code_duplication.feature +0 -32
  19. data/features/detects_code_smell.feature +0 -29
  20. data/features/detects_magick_numbers.feature +0 -29
  21. data/features/quiet.feature +0 -10
  22. data/features/run.feature +0 -9
  23. data/features/show_version.feature +0 -8
  24. data/features/statistics.feature +0 -22
  25. data/features/step_definitions/checks_for_rails_best_practices_steps.rb +0 -14
  26. data/features/step_definitions/checks_for_rails_security_issues_steps.rb +0 -24
  27. data/features/step_definitions/checks_for_sandi_metz_rules_step.rb +0 -7
  28. data/features/step_definitions/checks_for_vulnerable_gems_steps.rb +0 -15
  29. data/features/step_definitions/detects_code_complexity_steps.rb +0 -11
  30. data/features/step_definitions/detects_code_duplication_steps.rb +0 -7
  31. data/features/step_definitions/detects_code_smell_steps.rb +0 -7
  32. data/features/step_definitions/detects_magick_numbers_steps.rb +0 -7
  33. data/features/step_definitions/run_steps.rb +0 -38
  34. data/features/step_definitions/show_version_steps.rb +0 -3
  35. data/features/step_definitions/statistics_steps.rb +0 -4
  36. data/features/step_definitions/validates_coffeescript_style_guide_steps.rb +0 -12
  37. data/features/step_definitions/validates_ruby_style_guide_steps.rb +0 -7
  38. data/features/support/env.rb +0 -23
  39. data/features/validates_coffeescript_style_guide.feature +0 -29
  40. data/features/validates_ruby_style_guide.feature +0 -29
  41. data/spec/fixtures/invalid_code_complexity.rb +0 -13
  42. data/spec/fixtures/invalid_code_duplication.rb +0 -40
  43. data/spec/fixtures/invalid_code_smell.rb +0 -4
  44. data/spec/fixtures/invalid_coffee_lint.coffee +0 -6
  45. data/spec/fixtures/invalid_magick_numbers.rb +0 -1
  46. data/spec/fixtures/invalid_rails_app/Gemfile +0 -4
  47. data/spec/fixtures/invalid_rails_app/Gemfile_lock +0 -82
  48. data/spec/fixtures/invalid_rails_app/Rakefile +0 -6
  49. data/spec/fixtures/invalid_rails_app/app/assets/javascripts/invalid_coffee_lint.coffee +0 -6
  50. data/spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb +0 -19
  51. data/spec/fixtures/invalid_rails_app/app/models/user.rb +0 -5
  52. data/spec/fixtures/invalid_rails_app/app/views/layouts/application.html.erb +0 -14
  53. data/spec/fixtures/invalid_rails_app/config.ru +0 -4
  54. data/spec/fixtures/invalid_rails_app/config/application.rb +0 -24
  55. data/spec/fixtures/invalid_rails_app/config/boot.rb +0 -4
  56. data/spec/fixtures/invalid_rails_app/config/database.yml +0 -25
  57. data/spec/fixtures/invalid_rails_app/config/environment.rb +0 -5
  58. data/spec/fixtures/invalid_rails_app/config/environments/development.rb +0 -29
  59. data/spec/fixtures/invalid_rails_app/config/environments/production.rb +0 -80
  60. data/spec/fixtures/invalid_rails_app/config/environments/test.rb +0 -36
  61. data/spec/fixtures/invalid_rails_app/config/initializers/backtrace_silencers.rb +0 -7
  62. data/spec/fixtures/invalid_rails_app/config/initializers/filter_parameter_logging.rb +0 -4
  63. data/spec/fixtures/invalid_rails_app/config/initializers/inflections.rb +0 -16
  64. data/spec/fixtures/invalid_rails_app/config/initializers/mime_types.rb +0 -5
  65. data/spec/fixtures/invalid_rails_app/config/initializers/secret_token.rb +0 -12
  66. data/spec/fixtures/invalid_rails_app/config/initializers/session_store.rb +0 -3
  67. data/spec/fixtures/invalid_rails_app/config/initializers/wrap_parameters.rb +0 -14
  68. data/spec/fixtures/invalid_rails_app/config/locales/en.yml +0 -23
  69. data/spec/fixtures/invalid_rails_app/config/routes.rb +0 -5
  70. data/spec/fixtures/invalid_rails_app/lib/invalid_code_complexity.rb +0 -13
  71. data/spec/fixtures/invalid_rails_app/lib/invalid_code_duplication.rb +0 -40
  72. data/spec/fixtures/invalid_style_guide.rb +0 -3
  73. data/spec/fixtures/strictly_invalid_style_guide.rb +0 -3
  74. data/spec/fixtures/valid.rb +0 -1
  75. data/spec/fixtures/valid_coffee_lint.coffee +0 -6
  76. data/spec/fixtures/valid_rails_app/Gemfile +0 -5
  77. data/spec/fixtures/valid_rails_app/Gemfile_lock +0 -105
  78. data/spec/fixtures/valid_rails_app/Rakefile +0 -7
  79. data/spec/fixtures/valid_rails_app/app/assets/javascripts/valid.coffee +0 -6
  80. data/spec/fixtures/valid_rails_app/app/controllers/application_controller.rb +0 -6
  81. data/spec/fixtures/valid_rails_app/app/views/layouts/application.html.erb +0 -14
  82. data/spec/fixtures/valid_rails_app/config.ru +0 -4
  83. data/spec/fixtures/valid_rails_app/config/application.rb +0 -29
  84. data/spec/fixtures/valid_rails_app/config/boot.rb +0 -4
  85. data/spec/fixtures/valid_rails_app/config/database.yml +0 -25
  86. data/spec/fixtures/valid_rails_app/config/environment.rb +0 -5
  87. data/spec/fixtures/valid_rails_app/config/environments/development.rb +0 -30
  88. data/spec/fixtures/valid_rails_app/config/environments/production.rb +0 -86
  89. data/spec/fixtures/valid_rails_app/config/environments/test.rb +0 -37
  90. data/spec/fixtures/valid_rails_app/config/initializers/filter_parameter_logging.rb +0 -4
  91. data/spec/fixtures/valid_rails_app/config/initializers/mime_types.rb +0 -5
  92. data/spec/fixtures/valid_rails_app/config/initializers/secret_token.rb +0 -13
  93. data/spec/fixtures/valid_rails_app/config/initializers/session_store.rb +0 -3
  94. data/spec/fixtures/valid_rails_app/config/initializers/wrap_parameters.rb +0 -15
  95. data/spec/fixtures/valid_rails_app/config/locales/en.yml +0 -23
  96. data/spec/fixtures/valid_rails_app/config/routes.rb +0 -2
  97. data/spec/spec_helper.rb +0 -8
  98. data/warder.gemspec +0 -38
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,13 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- TOKEN_LENGTH = 32
13
- Valid::Application.config.secret_key_base = SecureRandom.hex(TOKEN_LENGTH)
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Valid::Application.config.session_store :cookie_store, key: '_valid_session'
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format
7
- # to an empty array.
8
- ActiveSupport.on_load(:action_controller) do
9
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
10
- end
11
-
12
- # To enable root element in JSON for ActiveRecord objects.
13
- # ActiveSupport.on_load(:active_record) do
14
- # self.include_root_in_json = true
15
- # end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,2 +0,0 @@
1
- Valid::Application.routes.draw do
2
- end
@@ -1,8 +0,0 @@
1
- RSpec.configure do |config|
2
- config.expect_with :rspec do |c|
3
- c.syntax = :expect
4
- end
5
- config.mock_with :rspec do |c|
6
- c.syntax = :expect
7
- end
8
- end
@@ -1,38 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'warder/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = 'warder'
8
- spec.version = Warder::VERSION
9
- spec.authors = ['Yura Tolstik']
10
- spec.email = ['yltsrc@gmail.com']
11
- spec.description = 'Warder of ruby code'
12
- spec.summary = 'Tool to help improve the quality of ruby code'
13
- spec.homepage = 'https://github.com/yltsrc/warder'
14
- spec.license = 'MIT'
15
-
16
- spec.files = `git ls-files`.split($RS)
17
- spec.executables = spec.files.grep(%r{^bin\/\w+$}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features|cucumber)\/})
19
- spec.require_paths = ['lib']
20
-
21
- spec.add_dependency 'rubocop', '~> 0.35'
22
- spec.add_dependency 'reek', '~> 3.7'
23
- spec.add_dependency 'flay', '~> 2.6', '>= 2.6.1'
24
- spec.add_dependency 'flog', '~> 4.3'
25
- spec.add_dependency 'mago', '~> 0.1'
26
- spec.add_dependency 'brakeman', '~> 3.1'
27
- spec.add_dependency 'rails_best_practices', '~> 1.15'
28
- spec.add_dependency 'sandi_meter', '~> 1.2'
29
- spec.add_dependency 'bundler-audit', '~> 0.4'
30
- spec.add_dependency 'coffeelint', '~> 1.14'
31
-
32
- spec.add_development_dependency 'bundler', '~> 1.3'
33
- spec.add_development_dependency 'rake', '~> 10.0'
34
- spec.add_development_dependency 'rspec', '~> 3.4'
35
- spec.add_development_dependency 'cucumber', '~> 2.1'
36
- spec.add_development_dependency 'aruba', '~> 0.11'
37
- spec.add_development_dependency 'simplecov', '~> 0.11'
38
- end