rofrischmann/bredon

View on GitHub

Showing 459 of 459 total issues

Similar blocks of code found in 4 locations. Consider refactoring.
Open

  'border-top': {
    syntax: '<br-width> || <br-style> || <color>',
    media: 'visual',
    inherited: false,
    animationType: ['border-top-color', 'border-top-style', 'border-top-width'],
Severity: Major
Found in packages/bredon-validate/src/data/__mdnData.js and 3 other locations - About 2 hrs to fix
packages/bredon-validate/src/data/__mdnData.js on lines 1234..1259
packages/bredon-validate/src/data/__mdnData.js on lines 1573..1590
packages/bredon-validate/src/data/__mdnData.js on lines 1662..1683

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 82.

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

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

  'border-bottom': {
    syntax: '<br-width> || <br-style> || <color>',
    media: 'visual',
    inherited: false,
    animationType: [
Severity: Major
Found in packages/bredon-validate/src/data/__mdnData.js and 3 other locations - About 2 hrs to fix
packages/bredon-validate/src/data/__mdnData.js on lines 1573..1590
packages/bredon-validate/src/data/__mdnData.js on lines 1662..1683
packages/bredon-validate/src/data/__mdnData.js on lines 1763..1776

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 82.

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

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

  'border-right': {
    syntax: '<br-width> || <br-style> || <color>',
    media: 'visual',
    inherited: false,
    animationType: [
Severity: Major
Found in packages/bredon-validate/src/data/__mdnData.js and 3 other locations - About 2 hrs to fix
packages/bredon-validate/src/data/__mdnData.js on lines 1234..1259
packages/bredon-validate/src/data/__mdnData.js on lines 1573..1590
packages/bredon-validate/src/data/__mdnData.js on lines 1763..1776

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 82.

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

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    expect(
      traverser.traverse({
        body: [
          {
            type: 'Identifier',
Severity: Major
Found in packages/bredon/src/__tests__/Traverser-test.js and 2 other locations - About 2 hrs to fix
packages/bredon/src/__tests__/Traverser-test.js on lines 15..35
packages/bredon/src/__tests__/Traverser-test.js on lines 95..115

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 81.

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

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    expect(
      traverser.traverse({
        body: [
          {
            type: 'Identifier',
Severity: Major
Found in packages/bredon/src/__tests__/Traverser-test.js and 2 other locations - About 2 hrs to fix
packages/bredon/src/__tests__/Traverser-test.js on lines 95..115
packages/bredon/src/__tests__/Traverser-test.js on lines 200..220

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 81.

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

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    expect(
      traverser.traverse({
        body: [
          {
            type: 'Identifier',
Severity: Major
Found in packages/bredon/src/__tests__/Traverser-test.js and 2 other locations - About 2 hrs to fix
packages/bredon/src/__tests__/Traverser-test.js on lines 15..35
packages/bredon/src/__tests__/Traverser-test.js on lines 200..220

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 81.

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

Further Reading

Function parseIdentifier has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  parseIdentifier(partial: string = ''): SimpleNode | FunctionNode {
    if (this.currentToken.type === 'identifier') {
      let nextToken = this.getNextToken(1)

      let ident = partial + this.currentToken.value
Severity: Major
Found in packages/bredon/src/Parser.js - About 2 hrs to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

      padding: {
        syntax: '[ <length> | <percentage> ]{1,4}',
        media: 'visual',
        inherited: false,
        animationType: 'length',
    Severity: Major
    Found in packages/bredon-validate/src/data/__mdnData.js and 1 other location - About 2 hrs to fix
    packages/bredon-validate/src/data/__mdnData.js on lines 3409..3422

    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 80.

    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

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

      margin: {
        syntax: '[ <length> | <percentage> | auto ]{1,4}',
        media: 'visual',
        inherited: false,
        animationType: 'length',
    Severity: Major
    Found in packages/bredon-validate/src/data/__mdnData.js and 1 other location - About 2 hrs to fix
    packages/bredon-validate/src/data/__mdnData.js on lines 4273..4291

    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 80.

    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

    Further Reading

    Function parseFloat has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
    Open

      parseFloat(integerPart?: number, isNegative?: boolean = false): FloatNode {
        // floats can also start with a floating point
        // if the integer part is 0
        if (this.currentToken.type === 'floating_point') {
          const nextToken = this.getNextToken(1)
    Severity: Minor
    Found in packages/bredon/src/Parser.js - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

      outline: {
        syntax: "[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",
        media: 'visual, interactive',
        inherited: false,
        animationType: ['outline-color', 'outline-width', 'outline-style'],
    Severity: Major
    Found in packages/bredon-validate/src/data/__mdnData.js and 1 other location - About 2 hrs to fix
    packages/bredon-validate/src/data/__mdnData.js on lines 2450..2462

    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 75.

    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

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

      flex: {
        syntax: "none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",
        media: 'visual',
        inherited: false,
        animationType: ['flex-grow', 'flex-shrink', 'flex-basis'],
    Severity: Major
    Found in packages/bredon-validate/src/data/__mdnData.js and 1 other location - About 2 hrs to fix
    packages/bredon-validate/src/data/__mdnData.js on lines 4143..4155

    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 75.

    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

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

      it('should correctly parse function expressions', () => {
        const parser = new Parser()
    
        expect(['rgba(200,300)', parser.parse('rgba(200,300)')]).toMatchSnapshot()
        expect([
    Severity: Major
    Found in packages/bredon/src/__tests__/Parser-test.js and 5 other locations - About 1 hr to fix
    packages/bredon/src/__tests__/Parser-test.js on lines 4..9
    packages/bredon/src/__tests__/Parser-test.js on lines 11..19
    packages/bredon/src/__tests__/Parser-test.js on lines 66..71
    packages/bredon/src/__tests__/Parser-test.js on lines 73..79
    packages/bredon/src/__tests__/Parser-test.js on lines 93..105

    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 73.

    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

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

      it('should correctly parse identifiers', () => {
        const parser = new Parser()
    
        expect(['flex-start', parser.parse('flex-start')]).toMatchSnapshot()
        expect([
    Severity: Major
    Found in packages/bredon/src/__tests__/Parser-test.js and 5 other locations - About 1 hr to fix
    packages/bredon/src/__tests__/Parser-test.js on lines 4..9
    packages/bredon/src/__tests__/Parser-test.js on lines 66..71
    packages/bredon/src/__tests__/Parser-test.js on lines 73..79
    packages/bredon/src/__tests__/Parser-test.js on lines 81..91
    packages/bredon/src/__tests__/Parser-test.js on lines 93..105

    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 73.

    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

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

      it('should correctly parse dimensions', () => {
        const parser = new Parser()
    
        expect(['300px', parser.parse('300px')]).toMatchSnapshot()
        expect(['-33.33%', parser.parse('-33.33%')]).toMatchSnapshot()
    Severity: Major
    Found in packages/bredon/src/__tests__/Parser-test.js and 5 other locations - About 1 hr to fix
    packages/bredon/src/__tests__/Parser-test.js on lines 4..9
    packages/bredon/src/__tests__/Parser-test.js on lines 11..19
    packages/bredon/src/__tests__/Parser-test.js on lines 73..79
    packages/bredon/src/__tests__/Parser-test.js on lines 81..91
    packages/bredon/src/__tests__/Parser-test.js on lines 93..105

    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 73.

    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

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

      it('should correctly parse unknown input', () => {
        const parser = new Parser()
    
        expect(['"メイリオ"', parser.parse('"メイリオ"')]).toMatchSnapshot()
        expect(['メイリオ', parser.parse('メイリオ')]).toMatchSnapshot()
    Severity: Major
    Found in packages/bredon/src/__tests__/Parser-test.js and 5 other locations - About 1 hr to fix
    packages/bredon/src/__tests__/Parser-test.js on lines 11..19
    packages/bredon/src/__tests__/Parser-test.js on lines 66..71
    packages/bredon/src/__tests__/Parser-test.js on lines 73..79
    packages/bredon/src/__tests__/Parser-test.js on lines 81..91
    packages/bredon/src/__tests__/Parser-test.js on lines 93..105

    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 73.

    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

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

      it('should correctly parse floats', () => {
        const parser = new Parser()
    
        expect(['200.55', parser.parse('200.55')]).toMatchSnapshot()
    
    
    Severity: Major
    Found in packages/bredon/src/__tests__/Parser-test.js and 5 other locations - About 1 hr to fix
    packages/bredon/src/__tests__/Parser-test.js on lines 4..9
    packages/bredon/src/__tests__/Parser-test.js on lines 11..19
    packages/bredon/src/__tests__/Parser-test.js on lines 66..71
    packages/bredon/src/__tests__/Parser-test.js on lines 81..91
    packages/bredon/src/__tests__/Parser-test.js on lines 93..105

    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 73.

    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

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

      it('should correctly parse assigments inside function expressions', () => {
        const parser = new Parser()
    
        expect([
          'alpha(opacity=90)',
    Severity: Major
    Found in packages/bredon/src/__tests__/Parser-test.js and 5 other locations - About 1 hr to fix
    packages/bredon/src/__tests__/Parser-test.js on lines 4..9
    packages/bredon/src/__tests__/Parser-test.js on lines 11..19
    packages/bredon/src/__tests__/Parser-test.js on lines 66..71
    packages/bredon/src/__tests__/Parser-test.js on lines 73..79
    packages/bredon/src/__tests__/Parser-test.js on lines 81..91

    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 73.

    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

    Further Reading

    Similar blocks of code found in 35 locations. Consider refactoring.
    Open

      'background-attachment': {
        syntax: '<attachment>#',
        media: 'visual',
        inherited: false,
        animationType: 'discrete',
    Severity: Major
    Found in packages/bredon-validate/src/data/__mdnData.js and 34 other locations - About 1 hr to fix
    packages/bredon-validate/src/data/__mdnData.js on lines 960..973
    packages/bredon-validate/src/data/__mdnData.js on lines 974..987
    packages/bredon-validate/src/data/__mdnData.js on lines 988..1001
    packages/bredon-validate/src/data/__mdnData.js on lines 1002..1015
    packages/bredon-validate/src/data/__mdnData.js on lines 1016..1029
    packages/bredon-validate/src/data/__mdnData.js on lines 1030..1044
    packages/bredon-validate/src/data/__mdnData.js on lines 1075..1088
    packages/bredon-validate/src/data/__mdnData.js on lines 1089..1102
    packages/bredon-validate/src/data/__mdnData.js on lines 2593..2606
    packages/bredon-validate/src/data/__mdnData.js on lines 2607..2620
    packages/bredon-validate/src/data/__mdnData.js on lines 2621..2634
    packages/bredon-validate/src/data/__mdnData.js on lines 2635..2648
    packages/bredon-validate/src/data/__mdnData.js on lines 2649..2662
    packages/bredon-validate/src/data/__mdnData.js on lines 2663..2676
    packages/bredon-validate/src/data/__mdnData.js on lines 2677..2690
    packages/bredon-validate/src/data/__mdnData.js on lines 2691..2705
    packages/bredon-validate/src/data/__mdnData.js on lines 2706..2719
    packages/bredon-validate/src/data/__mdnData.js on lines 2720..2733
    packages/bredon-validate/src/data/__mdnData.js on lines 2734..2748
    packages/bredon-validate/src/data/__mdnData.js on lines 2749..2763
    packages/bredon-validate/src/data/__mdnData.js on lines 2764..2778
    packages/bredon-validate/src/data/__mdnData.js on lines 2779..2793
    packages/bredon-validate/src/data/__mdnData.js on lines 2794..2808
    packages/bredon-validate/src/data/__mdnData.js on lines 2809..2823
    packages/bredon-validate/src/data/__mdnData.js on lines 2824..2837
    packages/bredon-validate/src/data/__mdnData.js on lines 2838..2852
    packages/bredon-validate/src/data/__mdnData.js on lines 3329..3342
    packages/bredon-validate/src/data/__mdnData.js on lines 4808..4821
    packages/bredon-validate/src/data/__mdnData.js on lines 4822..4835
    packages/bredon-validate/src/data/__mdnData.js on lines 4849..4862
    packages/bredon-validate/src/data/__mdnData.js on lines 4982..4995
    packages/bredon-validate/src/data/__mdnData.js on lines 5009..5022
    packages/bredon-validate/src/data/__mdnData.js on lines 5221..5235
    packages/bredon-validate/src/data/__mdnData.js on lines 5315..5328

    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 72.

    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

    Further Reading

    Similar blocks of code found in 35 locations. Consider refactoring.
    Open

      'background-image': {
        syntax: '<bg-image>#',
        media: 'visual',
        inherited: false,
        animationType: 'discrete',
    Severity: Major
    Found in packages/bredon-validate/src/data/__mdnData.js and 34 other locations - About 1 hr to fix
    packages/bredon-validate/src/data/__mdnData.js on lines 946..959
    packages/bredon-validate/src/data/__mdnData.js on lines 960..973
    packages/bredon-validate/src/data/__mdnData.js on lines 974..987
    packages/bredon-validate/src/data/__mdnData.js on lines 988..1001
    packages/bredon-validate/src/data/__mdnData.js on lines 1016..1029
    packages/bredon-validate/src/data/__mdnData.js on lines 1030..1044
    packages/bredon-validate/src/data/__mdnData.js on lines 1075..1088
    packages/bredon-validate/src/data/__mdnData.js on lines 1089..1102
    packages/bredon-validate/src/data/__mdnData.js on lines 2593..2606
    packages/bredon-validate/src/data/__mdnData.js on lines 2607..2620
    packages/bredon-validate/src/data/__mdnData.js on lines 2621..2634
    packages/bredon-validate/src/data/__mdnData.js on lines 2635..2648
    packages/bredon-validate/src/data/__mdnData.js on lines 2649..2662
    packages/bredon-validate/src/data/__mdnData.js on lines 2663..2676
    packages/bredon-validate/src/data/__mdnData.js on lines 2677..2690
    packages/bredon-validate/src/data/__mdnData.js on lines 2691..2705
    packages/bredon-validate/src/data/__mdnData.js on lines 2706..2719
    packages/bredon-validate/src/data/__mdnData.js on lines 2720..2733
    packages/bredon-validate/src/data/__mdnData.js on lines 2734..2748
    packages/bredon-validate/src/data/__mdnData.js on lines 2749..2763
    packages/bredon-validate/src/data/__mdnData.js on lines 2764..2778
    packages/bredon-validate/src/data/__mdnData.js on lines 2779..2793
    packages/bredon-validate/src/data/__mdnData.js on lines 2794..2808
    packages/bredon-validate/src/data/__mdnData.js on lines 2809..2823
    packages/bredon-validate/src/data/__mdnData.js on lines 2824..2837
    packages/bredon-validate/src/data/__mdnData.js on lines 2838..2852
    packages/bredon-validate/src/data/__mdnData.js on lines 3329..3342
    packages/bredon-validate/src/data/__mdnData.js on lines 4808..4821
    packages/bredon-validate/src/data/__mdnData.js on lines 4822..4835
    packages/bredon-validate/src/data/__mdnData.js on lines 4849..4862
    packages/bredon-validate/src/data/__mdnData.js on lines 4982..4995
    packages/bredon-validate/src/data/__mdnData.js on lines 5009..5022
    packages/bredon-validate/src/data/__mdnData.js on lines 5221..5235
    packages/bredon-validate/src/data/__mdnData.js on lines 5315..5328

    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 72.

    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

    Further Reading

    Severity
    Category
    Status
    Source
    Language