warder 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/warder/version.rb +1 -1
- metadata +26 -214
- data/.gitignore +0 -20
- data/.travis.yml +0 -15
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/README.md +0 -130
- data/Rakefile +0 -53
- data/cucumber.yml +0 -4
- data/features/checks_for_all_issues.feature +0 -36
- data/features/checks_for_rails_best_practices.feature +0 -25
- data/features/checks_for_rails_related_issues.feature +0 -27
- data/features/checks_for_rails_security_issues.feature +0 -25
- data/features/checks_for_sandi_metz_rules.feature +0 -25
- data/features/checks_for_vulnerable_gems.feature +0 -25
- data/features/detects_code_complexity.feature +0 -29
- data/features/detects_code_duplication.feature +0 -32
- data/features/detects_code_smell.feature +0 -29
- data/features/detects_magick_numbers.feature +0 -29
- data/features/quiet.feature +0 -10
- data/features/run.feature +0 -9
- data/features/show_version.feature +0 -8
- data/features/statistics.feature +0 -22
- data/features/step_definitions/checks_for_rails_best_practices_steps.rb +0 -14
- data/features/step_definitions/checks_for_rails_security_issues_steps.rb +0 -24
- data/features/step_definitions/checks_for_sandi_metz_rules_step.rb +0 -7
- data/features/step_definitions/checks_for_vulnerable_gems_steps.rb +0 -15
- data/features/step_definitions/detects_code_complexity_steps.rb +0 -11
- data/features/step_definitions/detects_code_duplication_steps.rb +0 -7
- data/features/step_definitions/detects_code_smell_steps.rb +0 -7
- data/features/step_definitions/detects_magick_numbers_steps.rb +0 -7
- data/features/step_definitions/run_steps.rb +0 -38
- data/features/step_definitions/show_version_steps.rb +0 -3
- data/features/step_definitions/statistics_steps.rb +0 -4
- data/features/step_definitions/validates_coffeescript_style_guide_steps.rb +0 -12
- data/features/step_definitions/validates_ruby_style_guide_steps.rb +0 -7
- data/features/support/env.rb +0 -23
- data/features/validates_coffeescript_style_guide.feature +0 -29
- data/features/validates_ruby_style_guide.feature +0 -29
- data/spec/fixtures/invalid_code_complexity.rb +0 -13
- data/spec/fixtures/invalid_code_duplication.rb +0 -40
- data/spec/fixtures/invalid_code_smell.rb +0 -4
- data/spec/fixtures/invalid_coffee_lint.coffee +0 -6
- data/spec/fixtures/invalid_magick_numbers.rb +0 -1
- data/spec/fixtures/invalid_rails_app/Gemfile +0 -4
- data/spec/fixtures/invalid_rails_app/Gemfile_lock +0 -82
- data/spec/fixtures/invalid_rails_app/Rakefile +0 -6
- data/spec/fixtures/invalid_rails_app/app/assets/javascripts/invalid_coffee_lint.coffee +0 -6
- data/spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb +0 -19
- data/spec/fixtures/invalid_rails_app/app/models/user.rb +0 -5
- data/spec/fixtures/invalid_rails_app/app/views/layouts/application.html.erb +0 -14
- data/spec/fixtures/invalid_rails_app/config.ru +0 -4
- data/spec/fixtures/invalid_rails_app/config/application.rb +0 -24
- data/spec/fixtures/invalid_rails_app/config/boot.rb +0 -4
- data/spec/fixtures/invalid_rails_app/config/database.yml +0 -25
- data/spec/fixtures/invalid_rails_app/config/environment.rb +0 -5
- data/spec/fixtures/invalid_rails_app/config/environments/development.rb +0 -29
- data/spec/fixtures/invalid_rails_app/config/environments/production.rb +0 -80
- data/spec/fixtures/invalid_rails_app/config/environments/test.rb +0 -36
- data/spec/fixtures/invalid_rails_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/fixtures/invalid_rails_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/fixtures/invalid_rails_app/config/initializers/inflections.rb +0 -16
- data/spec/fixtures/invalid_rails_app/config/initializers/mime_types.rb +0 -5
- data/spec/fixtures/invalid_rails_app/config/initializers/secret_token.rb +0 -12
- data/spec/fixtures/invalid_rails_app/config/initializers/session_store.rb +0 -3
- data/spec/fixtures/invalid_rails_app/config/initializers/wrap_parameters.rb +0 -14
- data/spec/fixtures/invalid_rails_app/config/locales/en.yml +0 -23
- data/spec/fixtures/invalid_rails_app/config/routes.rb +0 -5
- data/spec/fixtures/invalid_rails_app/lib/invalid_code_complexity.rb +0 -13
- data/spec/fixtures/invalid_rails_app/lib/invalid_code_duplication.rb +0 -40
- data/spec/fixtures/invalid_style_guide.rb +0 -3
- data/spec/fixtures/strictly_invalid_style_guide.rb +0 -3
- data/spec/fixtures/valid.rb +0 -1
- data/spec/fixtures/valid_coffee_lint.coffee +0 -6
- data/spec/fixtures/valid_rails_app/Gemfile +0 -5
- data/spec/fixtures/valid_rails_app/Gemfile_lock +0 -105
- data/spec/fixtures/valid_rails_app/Rakefile +0 -7
- data/spec/fixtures/valid_rails_app/app/assets/javascripts/valid.coffee +0 -6
- data/spec/fixtures/valid_rails_app/app/controllers/application_controller.rb +0 -6
- data/spec/fixtures/valid_rails_app/app/views/layouts/application.html.erb +0 -14
- data/spec/fixtures/valid_rails_app/config.ru +0 -4
- data/spec/fixtures/valid_rails_app/config/application.rb +0 -29
- data/spec/fixtures/valid_rails_app/config/boot.rb +0 -4
- data/spec/fixtures/valid_rails_app/config/database.yml +0 -25
- data/spec/fixtures/valid_rails_app/config/environment.rb +0 -5
- data/spec/fixtures/valid_rails_app/config/environments/development.rb +0 -30
- data/spec/fixtures/valid_rails_app/config/environments/production.rb +0 -86
- data/spec/fixtures/valid_rails_app/config/environments/test.rb +0 -37
- data/spec/fixtures/valid_rails_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/fixtures/valid_rails_app/config/initializers/mime_types.rb +0 -5
- data/spec/fixtures/valid_rails_app/config/initializers/secret_token.rb +0 -13
- data/spec/fixtures/valid_rails_app/config/initializers/session_store.rb +0 -3
- data/spec/fixtures/valid_rails_app/config/initializers/wrap_parameters.rb +0 -15
- data/spec/fixtures/valid_rails_app/config/locales/en.yml +0 -23
- data/spec/fixtures/valid_rails_app/config/routes.rb +0 -2
- data/spec/spec_helper.rb +0 -8
- data/warder.gemspec +0 -38
@@ -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,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"
|
data/spec/spec_helper.rb
DELETED
data/warder.gemspec
DELETED
@@ -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
|