| Total Complexity | 4 |
| Complexity/F | 2 |
| Lines of Code | 27 |
| Function Count | 2 |
| Duplicated Lines | 5 |
| Ratio | 18.52 % |
| Changes | 0 | ||
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | View Code Duplication | (function (global, factory) { |
|
|
|
|||
| 2 | typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
||
| 3 | typeof define === 'function' && define.amd ? define(factory) : |
||
| 4 | (global = global || self, (global.FullCalendarLocales = global.FullCalendarLocales || {}, global.FullCalendarLocales['fr-ca'] = factory())); |
||
| 5 | }(this, function () { 'use strict'; |
||
| 6 | |||
| 7 | var frCa = { |
||
| 8 | code: "fr", |
||
| 9 | buttonText: { |
||
| 10 | prev: "Précédent", |
||
| 11 | next: "Suivant", |
||
| 12 | today: "Aujourd'hui", |
||
| 13 | year: "Année", |
||
| 14 | month: "Mois", |
||
| 15 | week: "Semaine", |
||
| 16 | day: "Jour", |
||
| 17 | list: "Mon planning" |
||
| 18 | }, |
||
| 19 | weekLabel: "Sem.", |
||
| 20 | allDayHtml: "Toute la<br/>journée", |
||
| 21 | eventLimitText: "en plus", |
||
| 22 | noEventsMessage: "Aucun événement à afficher" |
||
| 23 | }; |
||
| 24 | |||
| 25 | return frCa; |
||
| 26 | |||
| 27 | })); |
||
| 28 |