Showing 970 of 970 total issues
Similar blocks of code found in 12 locations. Consider refactoring. Open
performance: {
log: function(message) {
var
currentTime,
executionTime,
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 445.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 12 locations. Consider refactoring. Open
performance: {
log: function(message) {
var
currentTime,
executionTime,
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 445.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
File search.js
has 1017 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Search
* http://github.com/semantic-org/semantic-ui/
*
*
File form.js
has 1004 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Form Validation
* http://github.com/semantic-org/semantic-ui/
*
*
File sidebar.js
has 982 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Sidebar
* http://github.com/semantic-org/semantic-ui/
*
*
Function accordion
has 487 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.accordion = function(parameters) {
var
$allModules = $(this),
time = new Date().getTime(),
File visibility.js
has 972 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Visibility
* http://github.com/semantic-org/semantic-ui/
*
*
File transition.js
has 925 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Transition
* http://github.com/semantic-org/semantic-ui/
*
*
Function checkbox
has 420 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.checkbox = function(parameters) {
var
$allModules = $(this),
moduleSelector = $allModules.selector || '',
Function video
has 412 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.video = function(parameters) {
var
$allModules = $(this),
Function site
has 389 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.site = $.fn.site = function(parameters) {
var
time = new Date().getTime(),
performance = [],
Function nag
has 372 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.nag = function(parameters) {
var
$allModules = $(this),
moduleSelector = $allModules.selector || '',
File modal.js
has 783 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Modal
* http://github.com/semantic-org/semantic-ui/
*
*
Function rating
has 355 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.fn.rating = function(parameters) {
var
$allModules = $(this),
moduleSelector = $allModules.selector || '',
File api.js
has 753 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - API
* http://github.com/semantic-org/semantic-ui/
*
*
Similar blocks of code found in 2 locations. Consider refactoring. Open
argmax : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
var cursor = 0;
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 313.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
argmin : kwargs((function () {
function withAxis(data, source, offsetStride, axisSize, stride) {
var cursor = 0;
for (var offset = 0; offset < this._size; offset+=offsetStride) {
for (var i = 0; i < stride; i++) {
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 313.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
File shape.js
has 733 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Shape
* http://github.com/semantic-org/semantic-ui/
*
*
File sticky.js
has 727 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Sticky
* http://github.com/semantic-org/semantic-ui/
*
*
File progress.js
has 722 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* # Semantic UI 1.12.3 - Progress
* http://github.com/semantic-org/semantic-ui/
*
*