Showing 2,141 of 2,141 total issues
Unsanitized input leading to code injection in Dalli Open
dalli (2.7.11)
- Read upRead up
- Exclude checks
Function FeedbackForm
has a Cognitive Complexity of 16 (exceeds 6 allowed). Consider refactoring. Open
function FeedbackForm() { var _instance = this; // The events this instance broadcasts. var _events = {
- Read upRead up
Function DefaultPopup
has a Cognitive Complexity of 14 (exceeds 6 allowed). Consider refactoring. Open
function DefaultPopup() { var _instance = this; // The events this instance broadcasts. var _events = {
- Read upRead up
Function _checkIfFloating
has a Cognitive Complexity of 12 (exceeds 6 allowed). Consider refactoring. Open
function _checkIfFloating() { var c; if (window.scrollY >= _offsetY) { // Make the header float. _header.classList.add('floating');
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
} else { // Reset the header position. _header.classList.remove('floating'); for (c in _floatingContent) if (_floatingContent[c].classList)
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (window.scrollY >= _offsetY) { // Make the header float. _header.classList.add('floating'); for (c in _floatingContent) if (_floatingContent[c].classList)
- Read upRead up
Function EventObserver
has a Cognitive Complexity of 11 (exceeds 6 allowed). Consider refactoring. Open
function EventObserver() { // The events registered on this instance. var _events = {};
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
else { if (_atMaxSize) manager.turnOn(manager.LARGE_ICON | manager.UNSPIDERFIED_ICON); else manager.turnOn(manager.SMALL_ICON | manager.UNSPIDERFIED_ICON);
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (useSpiderfied) { if (_atMaxSize) manager.turnOn(manager.LARGE_ICON | manager.SPIDERFIED_ICON); else manager.turnOn(manager.SMALL_ICON | manager.SPIDERFIED_ICON);
- Read upRead up
ReDoS based DoS vulnerability in Action Dispatch Open
actionpack (6.1.6)
- Read upRead up
- Exclude checks
ReDoS based DoS vulnerability in Action Dispatch Open
actionpack (6.1.6)
- Read upRead up
- Exclude checks
ReDoS based DoS vulnerability in Active Support’s underscore Open
activesupport (6.1.6)
- Read upRead up
- Exclude checks
StatusController#check_status refers to 'response_hash' more than self (maybe move it to another class?) Open
response_hash[:dependencies] = %w[SendGrid Memcachier] response_hash[:status] = everything_ok? ? 'OK' : 'NOT OK' response_hash[:updated] = Time.zone.now.to_i
- Read upRead up
- Exclude checks
DetailFormatHelper#contact_details_for refers to 'contact' more than self (maybe move it to another class?) Open
if contact.title.present? && contact.department.present? return contact_title_and_department_for(contact) end return contact_title_for(contact) if contact.title.present? return contact_department_for(contact) if contact.department.present?
- Read upRead up
- Exclude checks
Search#hash_for refers to 'location' more than self (maybe move it to another class?) Open
latitude: location.latitude, longitude: location.longitude, name: location.name, org_name: location.organization.name, slug: location.slug,
- Read upRead up
- Exclude checks
SchedulesHelper#holiday_hours is controlled by argument 'closed' Open
if closed == true
- Read upRead up
- Exclude checks
SchedulesHelper#holiday_schedule_content_for refers to 'schedule' more than self (maybe move it to another class?) Open
"#{date_range_for(schedule.start_date, schedule.end_date)}: " \ "#{holiday_hours( schedule.closed, schedule.opens_at, schedule.closes_at
- Read upRead up
- Exclude checks
StatusController#check_status has approx 6 statements Open
def check_status
- Read upRead up
- Exclude checks
ResultSummaryHelper#location_link_for refers to 'location' more than self (maybe move it to another class?) Open
if location.organization.name == location.name location_path([location.slug], request.query_parameters) else location_path([location.organization.slug, location.slug], request.query_parameters)
- Read upRead up
- Exclude checks
InfoBoxHelper#render_html_for_generic_info_box has approx 6 statements Open
def render_html_for_generic_info_box(info_box)
- Read upRead up
- Exclude checks