Showing 1,792 of 1,794 total issues
Identical blocks of code found in 2 locations. Consider refactoring. Open
computed: {
isIndeterminate: function () {
return this.selectionState === 'indeterminate';
},
isChecked: function () {
- Read upRead up
- Create a ticketCreate a ticket
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 48.
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
Identical blocks of code found in 2 locations. Consider refactoring. Open
atk__WEBPACK_IMPORTED_MODULE_10__["default"].eventBus.on(this.$root.$el.parentElement.id + '-multiline-rows-error', payload => {
this.errors = {
...payload.errors
};
});
- Read upRead up
- Create a ticketCreate a ticket
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 48.
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
Identical blocks of code found in 2 locations. Consider refactoring. Open
var isBetween = function (ts, ts1, ts2) {
return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);
};
- Read upRead up
- Create a ticketCreate a ticket
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 48.
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
Function evaluateInteractionItems
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function evaluateInteractionItems(chart, axis, position, handler, intersect) {
- Create a ticketCreate a ticket
Function _createResolver
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function _createResolver(scopes, prefixes = [''], rootScopes = scopes, fallback, getTarget = () => scopes[0]) {
- Create a ticketCreate a ticket
Function i
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
list.i = function i(modules, media, dedupe, supports, layer) {
- Create a ticketCreate a ticket
Function Tween
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function Tween( elem, options, prop, end, easing ) {
- Create a ticketCreate a ticket
Function addScopesFromKey
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function addScopesFromKey(set, allScopes, key, fallback, item) {
- Create a ticketCreate a ticket
Function updateLimits
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function updateLimits(limits, orig, angle, hLimits, vLimits) {
- Create a ticketCreate a ticket
Function buildFragment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function buildFragment( elems, context, scripts, selection, ignored ) {
- Create a ticketCreate a ticket
Function add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
add: function( elem, types, handler, data, selector ) {
- Create a ticketCreate a ticket
Method addJsPaginatorInContainer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function addJsPaginatorInContainer($ipp, $containerHeight, array $options = [], $container = null, $scrollRegion = 'Body')
- Create a ticketCreate a ticket
Function hueValue
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function hueValue(r, g, b, d, max) {
- Create a ticketCreate a ticket
Function drawArc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function drawArc(ctx, element, offset, spacing, circular) {
- Create a ticketCreate a ticket
Function condense
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function condense( unmatched, map, filter, context, xml ) {
- Create a ticketCreate a ticket
Method _setOrAppend
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
protected function _setOrAppend($tag, ?string $value = null, bool $encodeHtml = true, bool $append = false, bool $throwIfNotFound = true): void
- Create a ticketCreate a ticket
Method addSection
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function addSection(?string $title = null, ?Model $entity = null, ?array $fields = null, bool $useTable = false, bool $useLabel = false)
- Create a ticketCreate a ticket
Function remove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
remove: function( elem, types, handler, selector, mappedTypes ) {
- Create a ticketCreate a ticket
Function _measureText
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function _measureText(ctx, data, gc, longest, string) {
- Create a ticketCreate a ticket
Function skip
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function skip(ticks, newTicks, spacing, majorStart, majorEnd) {
- Create a ticketCreate a ticket