randomcodenz / rails_deprecation_log_analyser Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Build classifier to classify the following:
Method except! is deprecated and will be removed in Rails 5.1, as ActionController::Parameters
no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating a security vulnerability in your app that can be exploited. Instead, consider using one of these documented methods which are not deprecated: http://api.rubyonrails.org/v5.0.3/classes/ActionController/Parameters.html (called from consumer_params_security at /var/lib/jenkins/powershop/app/controllers/admin/consumers_controller.rb:267)
There is no documentation - add some!
Build a classifier to classify the following:
Passing a class as a value in an Active Record query is deprecated and will be removed. Pass a string instead. (called from find_or_initialize_by at /var/lib/jenkins/gems/ruby/2.3.0/gems/protected_attributes_continued-1.3.0/lib/active_record/mass_assignment_security/relation.rb:53)
Build a classifier to classify the following:
The error key :'restrict_dependent_destroy.many'
has been deprecated and will be removed in Rails 5.1. Please use :'restrict_dependent_destroy.has_many'
instead. (called from block in transaction_with_isolation_level at /var/lib/jenkins/gems/ruby/2.3.0/gems/transaction_isolation_level-1.1.0/lib/transaction_isolation_level/adapter_patches.rb:43)
Build a classifier to classify the following:
Returning false
in Active Record and Active Model callbacks will not implicitly halt a callback chain in Rails 5.1. To explicitly halt the callback chain, please use throw :abort
instead. (called from block in transaction_with_isolation_level at /var/lib/jenkins/gems/ruby/2.3.0/gems/transaction_isolation_level-1.1.0/lib/transaction_isolation_level/adapter_patches.rb:43)
Find a way to make it easier for the classifiers to be included in the config. I have added classifiers a couple of times and forgotten to include them in the config so they are used. Could build auto-discovery but a simpler option may be to add a single test that finds all of the classifiers and asserts they are all present in the config.
Ensure that the analyser generates a valid checkstyle file if there are no warnings.
There is very limited test coverage. Need to add tests for most of the core classes.
Build a classifier to classify the following:
Comparing equality between ActionController::Parameters
and a Hash
is deprecated and will be removed in Rails 5.1. Please only do comparisons between instances of ActionController::Parameters
. If you need to compare to a hash, first convert it using ActionController::Parameters#new
. (called from == at /var/lib/jenkins/gems/ruby/2.3.0/gems/rspec-expectations-3.5.0/lib/rspec/matchers/built_in/eq.rb:35)
Build a classifier to classify the following:
#to_hash unexpectedly ignores parameter filtering, and will change to enforce it in Rails 5.1. Enable raise_on_unfiltered_parameters
to respect parameter filtering, which is the default in new applications. For the existing deprecated behaviour, call #to_unsafe_h instead. (called from merge at /var/lib/jenkins/powershop/app/controllers/admin/fees_controller.rb:57)
Build a classifier to classify the following:
Method with_indifferent_access is deprecated and will be removed in Rails 5.1, as ActionController::Parameters
no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating a security vulnerability in your app that can be exploited. Instead, consider using one of these documented methods which are not deprecated: http://api.rubyonrails.org/v5.0.3/classes/ActionController/Parameters.html (called from assign_nested_attributes_for_one_to_one_association at /var/lib/jenkins/gems/ruby/2.3.0/gems/protected_attributes_continued-1.3.0/lib/active_record/mass_assignment_security/nested_attributes.rb:53)
Build a classifier to classify the following:
redirect_to :back
is deprecated and will be removed from Rails 5.1. Please use redirect_back(fallback_location: fallback_location)
where fallback_location
represents the location to use if the request has no HTTP referer information. (called from destroy at /var/lib/jenkins/powershop/app/controllers/admin/consumers_controller.rb:209)
Currently deprecation warnings are de-duplicated by using a sha generated from the deprecation warning fields and the log lines processed. This will generate different shas for the same deprecation warning if the log lines are different (e.g. different deprecation warning line leaders).
Fix is to move the sha into the deprecation warning class and use that to de-duplicate deprecation warnings.
Build a classifier to classify the following:
Method map is deprecated and will be removed in Rails 5.1, as ActionController::Parameters
no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating a security vulnerability in your app that can be exploited. Instead, consider using one of these documented methods which are not deprecated: http://api.rubyonrails.org/v5.0.3/classes/ActionController/Parameters.html (called from parse_date at /var/lib/jenkins/powershop/app/controllers/admin/interactions_controller.rb:35)
Build a classifier to classify the following:
Method each_with_object is deprecated and will be removed in Rails 5.1, as ActionController::Parameters
no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating a security vulnerability in your app that can be exploited. Instead, consider using one of these documented methods which are not deprecated: http://api.rubyonrails.org/v5.0.3/classes/ActionController/Parameters.html (called from create at /var/lib/jenkins/powershop/app/controllers/admin/disputed_reads_controller.rb:34)
Build a classifier to classify the following:
Method deep_symbolize_keys is deprecated and will be removed in Rails 5.1, as ActionController::Parameters
no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating a security vulnerability in your app that can be exploited. Instead, consider using one of these documented methods which are not deprecated: http://api.rubyonrails.org/v5.0.3/classes/ActionController/Parameters.html (called from inbound_consumer_params_for_creation at /var/lib/jenkins/powershop/app/controllers/admin/inbound_consumers_controller.rb:894)
Build a classifier to classify the following:
render :text
is deprecated because it does not actually render a text/plain
response. Switch to render plain: 'plain text'
to render as text/plain
, render html: 'HTML'
to render as text/html
, or render body: 'raw'
to match the deprecated behavior and render with the default Content-Type, which is text/html
. (called from reload_page at /var/lib/jenkins/powershop/app/controllers/admin/daily_consumption_overrides_controller.rb:68)
Build a classifier to classify the following:
Method member? is deprecated and will be removed in Rails 5.1, as ActionController::Parameters
no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating a security vulnerability in your app that can be exploited. Instead, consider using one of these documented methods which are not deprecated: http://api.rubyonrails.org/v5.0.3/classes/ActionController/Parameters.html (called from load_icp at /var/lib/jenkins/powershop/app/controllers/admin/daily_consumption_overrides_controller.rb:64)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.