Showing 1,155 of 1,155 total issues
Method excel_worksheet_value
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def excel_worksheet_value(ws_type, ws_col, sep_flg, ccount, item = nil)
Method create_export_file
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.create_export_file(current_user, filename, header, rows, file_type = 'xlsx')
Method make_export_register_job
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.make_export_register_job(file_name, file_type, method, args, user)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(name, fileinfo, output_type, user, circulation_status_ids)
Method adhoc_text_field_query
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def adhoc_text_field_query(qwords, model, fields, nest = true, op = :default)
Method set_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def set_data(field_value, field_name, mode, model, options = {})
Method update_manifestation_languages
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def update_manifestation_languages(sheet, datas, field, manifestation, error_msgs)
Method build_associated_records
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def build_associated_records(sheet, datas, record, assoc_name, spec)
Method update_manifestation_classifications
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def update_manifestation_classifications(sheet, datas, field, manifestation, error_msgs)
Method check_book_datas_has_necessary_field
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def check_book_datas_has_necessary_field(datas, sheet, item, manifestation, manifestation_type)
Method update_manifestation_subjects
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def update_manifestation_subjects(sheet, datas, field, manifestation, error_msgs)
Method update_manifestation_agents
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def update_manifestation_agents(sheet, datas, field, manifestation, error_msgs)
Method process_article_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def process_article_data(import_textresult, origin_datas, sheet, textfile, numbering)
Method select2_tag
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def select2_tag(selector_id, selector_name, collection, selected_id, *options)
Method build_select2
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def build_select2(selector_id, selector_name, collection, selected_id, options)
Method agents_list
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def agents_list(relations = [], options = {}, manifestation_id = nil, type = nil, mode = 'html')
Similar blocks of code found in 5 locations. Consider refactoring. Open
def create
@user_status = UserStatus.new(params[:user_status])
respond_to do |format|
if @user_status.save
flash[:notice] = t('controller.successfully_created', :model => t('activerecord.models.user_status'))
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 36.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 5 locations. Consider refactoring. Open
def create
@numbering = Numbering.new(params[:numbering])
respond_to do |format|
if @numbering.save
flash[:notice] = t('controller.successfully_created', :model => t('activerecord.models.numbering'))
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 36.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 5 locations. Consider refactoring. Open
def create
@barcode_list = BarcodeList.new(params[:barcode_list])
respond_to do |format|
if @barcode_list.save
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 36.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 5 locations. Consider refactoring. Open
def create
@enju_terminal = EnjuTerminal.new(params[:enju_terminal])
respond_to do |format|
if @enju_terminal.save
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 36.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76