200ok-ch/organice

View on GitHub

Showing 459 of 1,494 total issues

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

      expect(extractTitlesAndNestings(state.org.present.getIn(['files', path, 'headers']))).toEqual(
        [
          ['Top level header', 1],
          ['A nested header', 2],
          ['A todo item with schedule and deadline', 2],
Severity: Major
Found in src/reducers/org.unit.test.js and 1 other location - About 1 hr to fix
src/reducers/org.unit.test.js on lines 139..154

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

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

      expect(extractTitlesAndNestings(newState.getIn(['files', path, 'headers']))).toEqual([
        ['Top level header', 1],
        ['A nested header', 2],
        ['PROJECT Foo', 3],
        ["A headline that's done since a loong time", 4],
Severity: Major
Found in src/reducers/org.unit.test.js and 1 other location - About 1 hr to fix
src/reducers/org.unit.test.js on lines 115..132

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

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

  const handleDeleteClick = () => {
    if (
      window.confirm(
        `Are you sure you want to delete the "${template.get('description')}" template?`
      )
src/components/FileSettingsEditor/components/FileSetting/index.js on lines 37..43

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

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

  generateListTitleValueMap(part) {
    return Map(
      part
        .get('items')
        .map((item) => [item.get('id'), attributedStringToRawText(item.get('titleLine'))])
src/components/OrgFile/components/AttributedString/components/ListPart/index.js on lines 101..107

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

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

      expectField('date:2020-07-05').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 172..183
src/lib/headline_filter_parser.unit.test.js on lines 196..207
src/lib/headline_filter_parser.unit.test.js on lines 220..231

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

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

      expectField('date:2020.07').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 136..147
src/lib/headline_filter_parser.unit.test.js on lines 160..171
src/lib/headline_filter_parser.unit.test.js on lines 208..219

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

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

      expectField('date:202007').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 136..147
src/lib/headline_filter_parser.unit.test.js on lines 184..195
src/lib/headline_filter_parser.unit.test.js on lines 208..219

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

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

      expectField('date:2020-07').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 160..171
src/lib/headline_filter_parser.unit.test.js on lines 184..195
src/lib/headline_filter_parser.unit.test.js on lines 208..219

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

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

      expectField('date:2020/07').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 136..147
src/lib/headline_filter_parser.unit.test.js on lines 160..171
src/lib/headline_filter_parser.unit.test.js on lines 184..195

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

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

      expectField('date:2020.07.05').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 148..159
src/lib/headline_filter_parser.unit.test.js on lines 172..183
src/lib/headline_filter_parser.unit.test.js on lines 220..231

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

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

      expectField('date:20200705').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 148..159
src/lib/headline_filter_parser.unit.test.js on lines 196..207
src/lib/headline_filter_parser.unit.test.js on lines 220..231

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

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

      expectField('date:2020/07/05').toEqual({
        type: 'date',
        timerange: {
          type: 'point',
          point: {
Severity: Major
Found in src/lib/headline_filter_parser.unit.test.js and 3 other locations - About 1 hr to fix
src/lib/headline_filter_parser.unit.test.js on lines 148..159
src/lib/headline_filter_parser.unit.test.js on lines 172..183
src/lib/headline_filter_parser.unit.test.js on lines 196..207

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

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

    if (
      prevSelectedListItemId !== selectedListItemId &&
      inListContentsEditMode &&
      prevProps.subPartDataAndHandlers.inListContentsEditMode
    ) {
src/components/OrgFile/components/AttributedString/components/ListPart/index.js on lines 58..66

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

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

    if (
      prevSelectedListItemId !== selectedListItemId &&
      inListTitleEditMode &&
      prevProps.subPartDataAndHandlers.inListTitleEditMode
    ) {
src/components/OrgFile/components/AttributedString/components/ListPart/index.js on lines 74..85

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

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 34 locations. Consider refactoring.
Open

  {
    '.tag': 'file',
    name: 'refile-beorg.org_archive',
    path_lower: '/org/refile-beorg.org_archive',
    path_display: '/org/refile-beorg.org_archive',
Severity: Major
Found in src/sync_backend_clients/fixtures/directory_listing.js and 33 other locations - About 1 hr to fix
src/sync_backend_clients/fixtures/directory_listing.js on lines 24..36
src/sync_backend_clients/fixtures/directory_listing.js on lines 37..49
src/sync_backend_clients/fixtures/directory_listing.js on lines 50..62
src/sync_backend_clients/fixtures/directory_listing.js on lines 63..75
src/sync_backend_clients/fixtures/directory_listing.js on lines 76..88
src/sync_backend_clients/fixtures/directory_listing.js on lines 89..101
src/sync_backend_clients/fixtures/directory_listing.js on lines 102..114
src/sync_backend_clients/fixtures/directory_listing.js on lines 115..127
src/sync_backend_clients/fixtures/directory_listing.js on lines 128..140
src/sync_backend_clients/fixtures/directory_listing.js on lines 141..153
src/sync_backend_clients/fixtures/directory_listing.js on lines 154..166
src/sync_backend_clients/fixtures/directory_listing.js on lines 167..179
src/sync_backend_clients/fixtures/directory_listing.js on lines 180..192
src/sync_backend_clients/fixtures/directory_listing.js on lines 193..205
src/sync_backend_clients/fixtures/directory_listing.js on lines 206..218
src/sync_backend_clients/fixtures/directory_listing.js on lines 219..231
src/sync_backend_clients/fixtures/directory_listing.js on lines 232..244
src/sync_backend_clients/fixtures/directory_listing.js on lines 245..257
src/sync_backend_clients/fixtures/directory_listing.js on lines 258..270
src/sync_backend_clients/fixtures/directory_listing.js on lines 284..296
src/sync_backend_clients/fixtures/directory_listing.js on lines 297..309
src/sync_backend_clients/fixtures/directory_listing.js on lines 310..322
src/sync_backend_clients/fixtures/directory_listing.js on lines 346..358
src/sync_backend_clients/fixtures/directory_listing.js on lines 359..371
src/sync_backend_clients/fixtures/directory_listing.js on lines 372..384
src/sync_backend_clients/fixtures/directory_listing.js on lines 385..397
src/sync_backend_clients/fixtures/directory_listing.js on lines 398..410
src/sync_backend_clients/fixtures/directory_listing.js on lines 411..423
src/sync_backend_clients/fixtures/directory_listing.js on lines 424..436
src/sync_backend_clients/fixtures/directory_listing.js on lines 437..449
src/sync_backend_clients/fixtures/directory_listing.js on lines 450..462
src/sync_backend_clients/fixtures/directory_listing.js on lines 463..475
src/sync_backend_clients/fixtures/directory_listing.js on lines 476..488

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

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 34 locations. Consider refactoring.
Open

  {
    '.tag': 'file',
    name: 'reference.org_archive.organice-bak',
    path_lower: '/org/reference.org_archive.organice-bak',
    path_display: '/org/reference.org_archive.organice-bak',
Severity: Major
Found in src/sync_backend_clients/fixtures/directory_listing.js and 33 other locations - About 1 hr to fix
src/sync_backend_clients/fixtures/directory_listing.js on lines 24..36
src/sync_backend_clients/fixtures/directory_listing.js on lines 37..49
src/sync_backend_clients/fixtures/directory_listing.js on lines 50..62
src/sync_backend_clients/fixtures/directory_listing.js on lines 63..75
src/sync_backend_clients/fixtures/directory_listing.js on lines 76..88
src/sync_backend_clients/fixtures/directory_listing.js on lines 89..101
src/sync_backend_clients/fixtures/directory_listing.js on lines 102..114
src/sync_backend_clients/fixtures/directory_listing.js on lines 115..127
src/sync_backend_clients/fixtures/directory_listing.js on lines 128..140
src/sync_backend_clients/fixtures/directory_listing.js on lines 141..153
src/sync_backend_clients/fixtures/directory_listing.js on lines 154..166
src/sync_backend_clients/fixtures/directory_listing.js on lines 167..179
src/sync_backend_clients/fixtures/directory_listing.js on lines 180..192
src/sync_backend_clients/fixtures/directory_listing.js on lines 193..205
src/sync_backend_clients/fixtures/directory_listing.js on lines 206..218
src/sync_backend_clients/fixtures/directory_listing.js on lines 219..231
src/sync_backend_clients/fixtures/directory_listing.js on lines 232..244
src/sync_backend_clients/fixtures/directory_listing.js on lines 245..257
src/sync_backend_clients/fixtures/directory_listing.js on lines 258..270
src/sync_backend_clients/fixtures/directory_listing.js on lines 271..283
src/sync_backend_clients/fixtures/directory_listing.js on lines 284..296
src/sync_backend_clients/fixtures/directory_listing.js on lines 310..322
src/sync_backend_clients/fixtures/directory_listing.js on lines 346..358
src/sync_backend_clients/fixtures/directory_listing.js on lines 359..371
src/sync_backend_clients/fixtures/directory_listing.js on lines 372..384
src/sync_backend_clients/fixtures/directory_listing.js on lines 385..397
src/sync_backend_clients/fixtures/directory_listing.js on lines 398..410
src/sync_backend_clients/fixtures/directory_listing.js on lines 411..423
src/sync_backend_clients/fixtures/directory_listing.js on lines 424..436
src/sync_backend_clients/fixtures/directory_listing.js on lines 437..449
src/sync_backend_clients/fixtures/directory_listing.js on lines 450..462
src/sync_backend_clients/fixtures/directory_listing.js on lines 463..475
src/sync_backend_clients/fixtures/directory_listing.js on lines 476..488

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

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 34 locations. Consider refactoring.
Open

  {
    '.tag': 'file',
    name: 'pivotal_todos.org',
    path_lower: '/org/pivotal_todos.org',
    path_display: '/org/pivotal_todos.org',
Severity: Major
Found in src/sync_backend_clients/fixtures/directory_listing.js and 33 other locations - About 1 hr to fix
src/sync_backend_clients/fixtures/directory_listing.js on lines 24..36
src/sync_backend_clients/fixtures/directory_listing.js on lines 37..49
src/sync_backend_clients/fixtures/directory_listing.js on lines 50..62
src/sync_backend_clients/fixtures/directory_listing.js on lines 63..75
src/sync_backend_clients/fixtures/directory_listing.js on lines 76..88
src/sync_backend_clients/fixtures/directory_listing.js on lines 89..101
src/sync_backend_clients/fixtures/directory_listing.js on lines 102..114
src/sync_backend_clients/fixtures/directory_listing.js on lines 128..140
src/sync_backend_clients/fixtures/directory_listing.js on lines 141..153
src/sync_backend_clients/fixtures/directory_listing.js on lines 154..166
src/sync_backend_clients/fixtures/directory_listing.js on lines 167..179
src/sync_backend_clients/fixtures/directory_listing.js on lines 180..192
src/sync_backend_clients/fixtures/directory_listing.js on lines 193..205
src/sync_backend_clients/fixtures/directory_listing.js on lines 206..218
src/sync_backend_clients/fixtures/directory_listing.js on lines 219..231
src/sync_backend_clients/fixtures/directory_listing.js on lines 232..244
src/sync_backend_clients/fixtures/directory_listing.js on lines 245..257
src/sync_backend_clients/fixtures/directory_listing.js on lines 258..270
src/sync_backend_clients/fixtures/directory_listing.js on lines 271..283
src/sync_backend_clients/fixtures/directory_listing.js on lines 284..296
src/sync_backend_clients/fixtures/directory_listing.js on lines 297..309
src/sync_backend_clients/fixtures/directory_listing.js on lines 310..322
src/sync_backend_clients/fixtures/directory_listing.js on lines 346..358
src/sync_backend_clients/fixtures/directory_listing.js on lines 359..371
src/sync_backend_clients/fixtures/directory_listing.js on lines 372..384
src/sync_backend_clients/fixtures/directory_listing.js on lines 385..397
src/sync_backend_clients/fixtures/directory_listing.js on lines 398..410
src/sync_backend_clients/fixtures/directory_listing.js on lines 411..423
src/sync_backend_clients/fixtures/directory_listing.js on lines 424..436
src/sync_backend_clients/fixtures/directory_listing.js on lines 437..449
src/sync_backend_clients/fixtures/directory_listing.js on lines 450..462
src/sync_backend_clients/fixtures/directory_listing.js on lines 463..475
src/sync_backend_clients/fixtures/directory_listing.js on lines 476..488

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

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 34 locations. Consider refactoring.
Open

  {
    '.tag': 'file',
    name: 'refile-beorg.org',
    path_lower: '/org/refile-beorg.org',
    path_display: '/org/refile-beorg.org',
Severity: Major
Found in src/sync_backend_clients/fixtures/directory_listing.js and 33 other locations - About 1 hr to fix
src/sync_backend_clients/fixtures/directory_listing.js on lines 24..36
src/sync_backend_clients/fixtures/directory_listing.js on lines 37..49
src/sync_backend_clients/fixtures/directory_listing.js on lines 50..62
src/sync_backend_clients/fixtures/directory_listing.js on lines 63..75
src/sync_backend_clients/fixtures/directory_listing.js on lines 76..88
src/sync_backend_clients/fixtures/directory_listing.js on lines 89..101
src/sync_backend_clients/fixtures/directory_listing.js on lines 102..114
src/sync_backend_clients/fixtures/directory_listing.js on lines 115..127
src/sync_backend_clients/fixtures/directory_listing.js on lines 128..140
src/sync_backend_clients/fixtures/directory_listing.js on lines 141..153
src/sync_backend_clients/fixtures/directory_listing.js on lines 154..166
src/sync_backend_clients/fixtures/directory_listing.js on lines 167..179
src/sync_backend_clients/fixtures/directory_listing.js on lines 180..192
src/sync_backend_clients/fixtures/directory_listing.js on lines 193..205
src/sync_backend_clients/fixtures/directory_listing.js on lines 206..218
src/sync_backend_clients/fixtures/directory_listing.js on lines 219..231
src/sync_backend_clients/fixtures/directory_listing.js on lines 232..244
src/sync_backend_clients/fixtures/directory_listing.js on lines 258..270
src/sync_backend_clients/fixtures/directory_listing.js on lines 271..283
src/sync_backend_clients/fixtures/directory_listing.js on lines 284..296
src/sync_backend_clients/fixtures/directory_listing.js on lines 297..309
src/sync_backend_clients/fixtures/directory_listing.js on lines 310..322
src/sync_backend_clients/fixtures/directory_listing.js on lines 346..358
src/sync_backend_clients/fixtures/directory_listing.js on lines 359..371
src/sync_backend_clients/fixtures/directory_listing.js on lines 372..384
src/sync_backend_clients/fixtures/directory_listing.js on lines 385..397
src/sync_backend_clients/fixtures/directory_listing.js on lines 398..410
src/sync_backend_clients/fixtures/directory_listing.js on lines 411..423
src/sync_backend_clients/fixtures/directory_listing.js on lines 424..436
src/sync_backend_clients/fixtures/directory_listing.js on lines 437..449
src/sync_backend_clients/fixtures/directory_listing.js on lines 450..462
src/sync_backend_clients/fixtures/directory_listing.js on lines 463..475
src/sync_backend_clients/fixtures/directory_listing.js on lines 476..488

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

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 34 locations. Consider refactoring.
Open

  {
    '.tag': 'file',
    name: 'things.tex',
    path_lower: '/org/things.tex',
    path_display: '/org/things.tex',
Severity: Major
Found in src/sync_backend_clients/fixtures/directory_listing.js and 33 other locations - About 1 hr to fix
src/sync_backend_clients/fixtures/directory_listing.js on lines 24..36
src/sync_backend_clients/fixtures/directory_listing.js on lines 37..49
src/sync_backend_clients/fixtures/directory_listing.js on lines 50..62
src/sync_backend_clients/fixtures/directory_listing.js on lines 63..75
src/sync_backend_clients/fixtures/directory_listing.js on lines 76..88
src/sync_backend_clients/fixtures/directory_listing.js on lines 89..101
src/sync_backend_clients/fixtures/directory_listing.js on lines 102..114
src/sync_backend_clients/fixtures/directory_listing.js on lines 115..127
src/sync_backend_clients/fixtures/directory_listing.js on lines 128..140
src/sync_backend_clients/fixtures/directory_listing.js on lines 141..153
src/sync_backend_clients/fixtures/directory_listing.js on lines 167..179
src/sync_backend_clients/fixtures/directory_listing.js on lines 180..192
src/sync_backend_clients/fixtures/directory_listing.js on lines 193..205
src/sync_backend_clients/fixtures/directory_listing.js on lines 206..218
src/sync_backend_clients/fixtures/directory_listing.js on lines 219..231
src/sync_backend_clients/fixtures/directory_listing.js on lines 232..244
src/sync_backend_clients/fixtures/directory_listing.js on lines 245..257
src/sync_backend_clients/fixtures/directory_listing.js on lines 258..270
src/sync_backend_clients/fixtures/directory_listing.js on lines 271..283
src/sync_backend_clients/fixtures/directory_listing.js on lines 284..296
src/sync_backend_clients/fixtures/directory_listing.js on lines 297..309
src/sync_backend_clients/fixtures/directory_listing.js on lines 310..322
src/sync_backend_clients/fixtures/directory_listing.js on lines 346..358
src/sync_backend_clients/fixtures/directory_listing.js on lines 359..371
src/sync_backend_clients/fixtures/directory_listing.js on lines 372..384
src/sync_backend_clients/fixtures/directory_listing.js on lines 385..397
src/sync_backend_clients/fixtures/directory_listing.js on lines 398..410
src/sync_backend_clients/fixtures/directory_listing.js on lines 411..423
src/sync_backend_clients/fixtures/directory_listing.js on lines 424..436
src/sync_backend_clients/fixtures/directory_listing.js on lines 437..449
src/sync_backend_clients/fixtures/directory_listing.js on lines 450..462
src/sync_backend_clients/fixtures/directory_listing.js on lines 463..475
src/sync_backend_clients/fixtures/directory_listing.js on lines 476..488

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

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 34 locations. Consider refactoring.
Open

  {
    '.tag': 'file',
    name: 'mobileorg.org_archive',
    path_lower: '/org/mobileorg.org_archive',
    path_display: '/org/mobileorg.org_archive',
Severity: Major
Found in src/sync_backend_clients/fixtures/directory_listing.js and 33 other locations - About 1 hr to fix
src/sync_backend_clients/fixtures/directory_listing.js on lines 24..36
src/sync_backend_clients/fixtures/directory_listing.js on lines 37..49
src/sync_backend_clients/fixtures/directory_listing.js on lines 50..62
src/sync_backend_clients/fixtures/directory_listing.js on lines 63..75
src/sync_backend_clients/fixtures/directory_listing.js on lines 76..88
src/sync_backend_clients/fixtures/directory_listing.js on lines 89..101
src/sync_backend_clients/fixtures/directory_listing.js on lines 102..114
src/sync_backend_clients/fixtures/directory_listing.js on lines 115..127
src/sync_backend_clients/fixtures/directory_listing.js on lines 128..140
src/sync_backend_clients/fixtures/directory_listing.js on lines 141..153
src/sync_backend_clients/fixtures/directory_listing.js on lines 154..166
src/sync_backend_clients/fixtures/directory_listing.js on lines 167..179
src/sync_backend_clients/fixtures/directory_listing.js on lines 180..192
src/sync_backend_clients/fixtures/directory_listing.js on lines 193..205
src/sync_backend_clients/fixtures/directory_listing.js on lines 206..218
src/sync_backend_clients/fixtures/directory_listing.js on lines 219..231
src/sync_backend_clients/fixtures/directory_listing.js on lines 232..244
src/sync_backend_clients/fixtures/directory_listing.js on lines 245..257
src/sync_backend_clients/fixtures/directory_listing.js on lines 258..270
src/sync_backend_clients/fixtures/directory_listing.js on lines 271..283
src/sync_backend_clients/fixtures/directory_listing.js on lines 284..296
src/sync_backend_clients/fixtures/directory_listing.js on lines 297..309
src/sync_backend_clients/fixtures/directory_listing.js on lines 310..322
src/sync_backend_clients/fixtures/directory_listing.js on lines 346..358
src/sync_backend_clients/fixtures/directory_listing.js on lines 359..371
src/sync_backend_clients/fixtures/directory_listing.js on lines 372..384
src/sync_backend_clients/fixtures/directory_listing.js on lines 398..410
src/sync_backend_clients/fixtures/directory_listing.js on lines 411..423
src/sync_backend_clients/fixtures/directory_listing.js on lines 424..436
src/sync_backend_clients/fixtures/directory_listing.js on lines 437..449
src/sync_backend_clients/fixtures/directory_listing.js on lines 450..462
src/sync_backend_clients/fixtures/directory_listing.js on lines 463..475
src/sync_backend_clients/fixtures/directory_listing.js on lines 476..488

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

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