Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 18 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | document.addEventListener("DOMContentLoaded", function(event) { |
||
|
|||
2 | const swiper = new Swiper('#banner-slider', { |
||
3 | loop: true, |
||
4 | centeredSlides: true, |
||
5 | autoplay: { |
||
6 | delay: 5000, |
||
7 | disableOnInteraction: false, |
||
8 | }, |
||
9 | pagination: { |
||
10 | el: '.swiper-pagination', |
||
11 | clickable: true, |
||
12 | }, |
||
13 | navigation: { |
||
14 | nextEl: '.swiper-button-next', |
||
15 | prevEl: '.swiper-button-prev', |
||
16 | }, |
||
17 | }); |
||
18 | }); |
||
19 | |||
20 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.