neet/refined-itsukara-link

View on GitHub

Showing 196 of 278 total issues

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

export const PathPerformerId = registry.registerParameter(
  'PathPerformerId',
  z.string().openapi({ param: { name: 'performerId', in: 'path' } }),
);
packages/@neet/vschedule-api-spec/src/components/parameters/PathChannelId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathMediaFilename.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathOrganizationId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathStreamId.ts on lines 5..8

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

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

export const PathStreamId = registry.registerParameter(
  'PathStreamId',
  z.string().openapi({ param: { name: 'streamId', in: 'path' } }),
);
packages/@neet/vschedule-api-spec/src/components/parameters/PathChannelId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathMediaFilename.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathOrganizationId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathPerformerId.ts on lines 5..8

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

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

export const PathOrganizationId = registry.registerParameter(
  'PathOrganizationId',
  z.string().openapi({ param: { name: 'organizationId', in: 'path' } }),
);
packages/@neet/vschedule-api-spec/src/components/parameters/PathChannelId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathMediaFilename.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathPerformerId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathStreamId.ts on lines 5..8

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

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

export const PathMediaFilename = registry.registerParameter(
  'PathMediaFilename',
  z.string().openapi({ param: { name: 'mediaFilename', in: 'path' } }),
);
packages/@neet/vschedule-api-spec/src/components/parameters/PathChannelId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathOrganizationId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathPerformerId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathStreamId.ts on lines 5..8

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

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

          <li>
            <Link href="/about" passHref>
              <UILink variant="wash">運営情報</UILink>
            </Link>
          </li>
packages/@neet/vschedule-client/src/components/app/Imprint/Imprint.tsx on lines 56..60

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

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

          <li>
            <Link href="/term" passHref>
              <UILink variant="wash">利用規約</UILink>
            </Link>
          </li>
packages/@neet/vschedule-client/src/components/app/Imprint/Imprint.tsx on lines 73..77

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

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

export const PathChannelId = registry.registerParameter(
  'PathChannelId',
  z.string().openapi({ param: { name: 'channelId', in: 'path' } }),
);
packages/@neet/vschedule-api-spec/src/components/parameters/PathMediaFilename.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathOrganizationId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathPerformerId.ts on lines 5..8
packages/@neet/vschedule-api-spec/src/components/parameters/PathStreamId.ts on lines 5..8

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

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

  constructor(
    @inject(TYPES.ChannelRepository)
    private readonly _channelRepository: IChannelRepository,

    @inject(TYPES.YoutubeWebsubService)
packages/@neet/vschedule-api/src/adapters/query-services/stream-query-service-prisma.ts on lines 40..46
packages/@neet/vschedule-api/src/adapters/repositories/media-attachment-repository-prisma.ts on lines 18..24
packages/@neet/vschedule-api/src/adapters/repositories/resubscription-task-repository-cloud-tasks.ts on lines 20..26
packages/@neet/vschedule-api/src/app/stream/list-streams.ts on lines 19..25
packages/@neet/vschedule-api/src/app/stream/remove-stream.ts on lines 22..28
packages/@neet/vschedule-api/src/app/token/drain-token.ts on lines 26..32
packages/@neet/vschedule-api/src/app/user/login.ts on lines 31..37

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

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

  public constructor(
    @inject(TYPES.Config)
    private readonly _config: IConfig,

    @inject(TYPES.Logger)
packages/@neet/vschedule-api/src/adapters/query-services/stream-query-service-prisma.ts on lines 40..46
packages/@neet/vschedule-api/src/adapters/repositories/media-attachment-repository-prisma.ts on lines 18..24
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 23..29
packages/@neet/vschedule-api/src/app/stream/list-streams.ts on lines 19..25
packages/@neet/vschedule-api/src/app/stream/remove-stream.ts on lines 22..28
packages/@neet/vschedule-api/src/app/token/drain-token.ts on lines 26..32
packages/@neet/vschedule-api/src/app/user/login.ts on lines 31..37

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

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

  constructor(
    @inject(TYPES.PrismaClient)
    private readonly _prisma: PrismaClient,

    @inject(TYPES.Logger)
packages/@neet/vschedule-api/src/adapters/repositories/media-attachment-repository-prisma.ts on lines 18..24
packages/@neet/vschedule-api/src/adapters/repositories/resubscription-task-repository-cloud-tasks.ts on lines 20..26
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 23..29
packages/@neet/vschedule-api/src/app/stream/list-streams.ts on lines 19..25
packages/@neet/vschedule-api/src/app/stream/remove-stream.ts on lines 22..28
packages/@neet/vschedule-api/src/app/token/drain-token.ts on lines 26..32
packages/@neet/vschedule-api/src/app/user/login.ts on lines 31..37

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

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

  constructor(
    @inject(TYPES.TokenRepository)
    private readonly _tokenRepository: ITokenRepository,

    @inject(TYPES.Logger)
Severity: Major
Found in packages/@neet/vschedule-api/src/app/token/drain-token.ts and 7 other locations - About 45 mins to fix
packages/@neet/vschedule-api/src/adapters/query-services/stream-query-service-prisma.ts on lines 40..46
packages/@neet/vschedule-api/src/adapters/repositories/media-attachment-repository-prisma.ts on lines 18..24
packages/@neet/vschedule-api/src/adapters/repositories/resubscription-task-repository-cloud-tasks.ts on lines 20..26
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 23..29
packages/@neet/vschedule-api/src/app/stream/list-streams.ts on lines 19..25
packages/@neet/vschedule-api/src/app/stream/remove-stream.ts on lines 22..28
packages/@neet/vschedule-api/src/app/user/login.ts on lines 31..37

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

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

  constructor(
    @inject(TYPES.StreamRepository)
    private readonly _streamRepository: IStreamRepository,

    @inject(TYPES.Logger)
Severity: Major
Found in packages/@neet/vschedule-api/src/app/stream/remove-stream.ts and 7 other locations - About 45 mins to fix
packages/@neet/vschedule-api/src/adapters/query-services/stream-query-service-prisma.ts on lines 40..46
packages/@neet/vschedule-api/src/adapters/repositories/media-attachment-repository-prisma.ts on lines 18..24
packages/@neet/vschedule-api/src/adapters/repositories/resubscription-task-repository-cloud-tasks.ts on lines 20..26
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 23..29
packages/@neet/vschedule-api/src/app/stream/list-streams.ts on lines 19..25
packages/@neet/vschedule-api/src/app/token/drain-token.ts on lines 26..32
packages/@neet/vschedule-api/src/app/user/login.ts on lines 31..37

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

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

  constructor(
    @inject(TYPES.PrismaClient)
    private readonly _prisma: PrismaClient,

    @inject(TYPES.Storage)
packages/@neet/vschedule-api/src/adapters/query-services/stream-query-service-prisma.ts on lines 40..46
packages/@neet/vschedule-api/src/adapters/repositories/resubscription-task-repository-cloud-tasks.ts on lines 20..26
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 23..29
packages/@neet/vschedule-api/src/app/stream/list-streams.ts on lines 19..25
packages/@neet/vschedule-api/src/app/stream/remove-stream.ts on lines 22..28
packages/@neet/vschedule-api/src/app/token/drain-token.ts on lines 26..32
packages/@neet/vschedule-api/src/app/user/login.ts on lines 31..37

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

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

  constructor(
    @inject(TYPES.StreamQueryService)
    private readonly _streamQueryService: IStreamQueryService,

    @inject(TYPES.Logger)
Severity: Major
Found in packages/@neet/vschedule-api/src/app/stream/list-streams.ts and 7 other locations - About 45 mins to fix
packages/@neet/vschedule-api/src/adapters/query-services/stream-query-service-prisma.ts on lines 40..46
packages/@neet/vschedule-api/src/adapters/repositories/media-attachment-repository-prisma.ts on lines 18..24
packages/@neet/vschedule-api/src/adapters/repositories/resubscription-task-repository-cloud-tasks.ts on lines 20..26
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 23..29
packages/@neet/vschedule-api/src/app/stream/remove-stream.ts on lines 22..28
packages/@neet/vschedule-api/src/app/token/drain-token.ts on lines 26..32
packages/@neet/vschedule-api/src/app/user/login.ts on lines 31..37

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

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

  constructor(
    @inject(TYPES.UserRepository)
    private readonly _userRepository: IUserRepository,

    @inject(TYPES.Logger)
Severity: Major
Found in packages/@neet/vschedule-api/src/app/user/login.ts and 7 other locations - About 45 mins to fix
packages/@neet/vschedule-api/src/adapters/query-services/stream-query-service-prisma.ts on lines 40..46
packages/@neet/vschedule-api/src/adapters/repositories/media-attachment-repository-prisma.ts on lines 18..24
packages/@neet/vschedule-api/src/adapters/repositories/resubscription-task-repository-cloud-tasks.ts on lines 20..26
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 23..29
packages/@neet/vschedule-api/src/app/stream/list-streams.ts on lines 19..25
packages/@neet/vschedule-api/src/app/stream/remove-stream.ts on lines 22..28
packages/@neet/vschedule-api/src/app/token/drain-token.ts on lines 26..32

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

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

export class ChannelServiceChannelNotFoundError extends DomainError {
  public readonly name = 'ChannelServiceChannelNotFoundError';

  public constructor(public readonly id: ChannelId) {
    super(`No channel found with id ${id}`);
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 9..15
packages/@neet/vschedule-api/src/app/channel/verify-youtube-channel-subscription.ts on lines 19..27
packages/@neet/vschedule-api/src/app/media-attachment/show-media-attachment.ts on lines 8..14
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 9..15
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 17..23
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 9..15
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 17..25
packages/@neet/vschedule-api/src/app/stream/show-stream.ts on lines 9..15
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 21..27

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

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

export class ChannelServiceChannelNotRequestedError extends DomainError {
  public readonly name = 'ChannelServiceChannelNotRequestedError';

  public constructor(public readonly id: ChannelId) {
    super(`Tried to start subscription of ${id} but not yet requested`);
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 9..15
packages/@neet/vschedule-api/src/app/channel/verify-youtube-channel-subscription.ts on lines 19..27
packages/@neet/vschedule-api/src/app/media-attachment/show-media-attachment.ts on lines 8..14
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 9..15
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 17..23
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 9..15
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 17..25
packages/@neet/vschedule-api/src/app/stream/show-stream.ts on lines 9..15
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 13..19

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

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

export class ShowOrganizationNotFoundError extends AppError {
  public readonly name = 'ShowOrganizationNotFoundError';

  public constructor(public readonly id: OrganizationId) {
    super(`Organization with ID ${id} was not found`);
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 9..15
packages/@neet/vschedule-api/src/app/channel/verify-youtube-channel-subscription.ts on lines 19..27
packages/@neet/vschedule-api/src/app/media-attachment/show-media-attachment.ts on lines 8..14
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 17..23
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 9..15
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 17..25
packages/@neet/vschedule-api/src/app/stream/show-stream.ts on lines 9..15
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 13..19
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 21..27

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

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

export class ShowMediaAttachmentNotFoundError extends AppError {
  public readonly name = 'ShowMediaAttachmentNotFoundError';

  public constructor(public readonly filename: MediaAttachmentFilename) {
    super(`MediaAttachment not found: ${filename}`);
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 9..15
packages/@neet/vschedule-api/src/app/channel/verify-youtube-channel-subscription.ts on lines 19..27
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 9..15
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 17..23
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 9..15
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 17..25
packages/@neet/vschedule-api/src/app/stream/show-stream.ts on lines 9..15
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 13..19
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 21..27

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

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

export class ShowPerformerYoutubeChannelIdNotFoundError extends AppError {
  public readonly name = 'ShowPerformerYoutubeChannelIdNotFoundError';

  public constructor(public readonly youtubeChannelId: YoutubeChannelId) {
    super(
packages/@neet/vschedule-api/src/app/channel/request-channel-subscription.ts on lines 9..15
packages/@neet/vschedule-api/src/app/channel/verify-youtube-channel-subscription.ts on lines 19..27
packages/@neet/vschedule-api/src/app/media-attachment/show-media-attachment.ts on lines 8..14
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 9..15
packages/@neet/vschedule-api/src/app/organization/show-organization.ts on lines 17..23
packages/@neet/vschedule-api/src/app/performer/show-performer.ts on lines 9..15
packages/@neet/vschedule-api/src/app/stream/show-stream.ts on lines 9..15
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 13..19
packages/@neet/vschedule-api/src/domain/services/channel-service.ts on lines 21..27

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

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