liatrio/gratibot

View on GitHub

Showing 23 of 23 total issues

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

try {
const slack_auth_status = await app.client.auth.test();
if (slack_auth_status.ok) {
status_checks.slack_auth = "OK";
}
Severity: Minor
Found in app.js and 1 other location - About 45 mins to fix
app.js on lines 28..35

Function giveRecognition has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

recognizer,
recognizee,
message,
channel,
values,
Severity: Minor
Found in service/recognition.js - About 45 mins to fix

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

    function timeRangeInfo(timeRange) {
    return {
    type: "context",
    block_id: "timeRange",
    elements: [
    Severity: Minor
    Found in service/leaderboard.js and 1 other location - About 45 mins to fix
    service/metrics.js on lines 53..65
    Severity
    Category
    Status
    Source
    Language