Showing 28 of 28 total issues
Function listen
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
listen () { window.addEventListener('resize', this.resize.bind(this)); window.addEventListener('click', (event) => { const insideHeader = event.target.closest('#document-header');
Similar blocks of code found in 2 locations. Consider refactoring. Open
(function () { const modalButtons = document.querySelectorAll('[data-open-modal]'); modalButtons.forEach(button => { new Modal(button); });
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
(function () { const clickToCopy = document.querySelectorAll("[data-click-to-copy]"); clickToCopy.forEach(button => { new ClickToCopy(button); });
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
window.osuny.Search.prototype._setup = function () { this.setPageFind(); this.setAccessibility();};
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
window.osuny.Search.prototype.updateAccessibility = function () { this.updateAccessibilityMessage(); this.updateAccessibilityTags();};
- Read upRead up
Function _listen
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
_listen: function () { this.closeElements.forEach(function (button) { button.addEventListener('click', this.toggle.bind(this, false)); }.bind(this));
- Read upRead up
Function toggle
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
toggle: function (open, triggerElement) { var classAction; this.state.opened = typeof open !== 'undefined' ? open : !this.state.opened; classAction = this.state.opened ? 'add' : 'remove';
- Read upRead up
Line should be indented 0 spaces, but was indented 2 spaces Open
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
- Exclude checks
Line contains trailing whitespace Open
- Exclude checks
Line contains trailing whitespace Open
- Exclude checks
Line contains trailing whitespace Open
- Exclude checks
Line should be indented 2 spaces, but was indented 4 spaces Open
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
- Exclude checks
Line contains trailing whitespace Open
- Exclude checks
Line should be indented 2 spaces, but was indented 4 spaces Open
$n: index($breakpoint-names, $name);
- Exclude checks
Line should be indented 0 spaces, but was indented 2 spaces Open
@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
- Exclude checks
Line should be indented 2 spaces, but was indented 4 spaces Open
@if not $n {
- Exclude checks
Line should be indented 0 spaces, but was indented 2 spaces Open
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
- Exclude checks
Line contains trailing whitespace Open
- Exclude checks
Line contains trailing whitespace Open
- Exclude checks
Line contains trailing whitespace Open
- Exclude checks