botwillacceptanything/botwillacceptanything

View on GitHub
lib/integrations/github_labels.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function exports has 123 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        module.exports = function () {
            var VOTING_UNDERWAY = 'Voting Underway',
                VOTING_REJECTED = 'Rejected',
                VOTING_MERGED = 'Merged',
                voteStatusLabels = [
Severity: Major
Found in lib/integrations/github_labels.js - About 4 hrs to fix

    Function setPrStatusLabel has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                function setPrStatusLabel(repo, label, pr) {
                    console.info('DEBUG: Getting labels on issue', {
                        user: repo.user,
                        repo: repo.repo,
                        number: pr.number
    Severity: Minor
    Found in lib/integrations/github_labels.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status