hanneskaeufler/danger-plugin-mentor

View on GitHub
src/no_tip.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Tip } from "./tip"

export default class NoTip implements Tip {
  private readonly tags: string[]

  constructor(tags: string[]) {
    this.tags = tags
  }

  toMarkdown(): string {
    const tags = this.tags.map(tag => `"${tag}"`).join(", ")

    return `danger-plugin-mentor: No tip found for tags: ${tags}.`
  }

  hasAnyTag(tags: string[]): boolean {
    return false
  }
}