MontrealNewTech/website

View on GitHub
app/assets/javascripts/smoothScroll.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function smoothScroll has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function smoothScroll() {
  (function (jQuery) {
    let scope = $('body[data-action="home"]')
    if (scope.length === 0) {
      return
Severity: Major
Found in app/assets/javascripts/smoothScroll.js - About 2 hrs to fix

Function jump has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      jump: function (options) {
        let defaults = {
          selector: 'a.scroll-on-page'
        };
        if (typeof options === 'string') {
Severity: Minor
Found in app/assets/javascripts/smoothScroll.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status