leonitousconforti/tinyburg

View on GitHub

Showing 824 of 824 total issues

File install-run.js has 459 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// THIS FILE WAS GENERATED BY A TOOL. ANY MANUAL MODIFICATIONS WILL GET OVERWRITTEN WHENEVER RUSH IS UPGRADED.
//
// This script is intended for usage in an automated build environment where a Node tool may not have
// been preinstalled, or may have an unpredictable version.  This script will automatically install the specified
// version of the specified tool (if not already installed), and then pass a command-line to it.
Severity: Minor
Found in common/scripts/install-run.js - About 7 hrs to fix

    Function matchTemplate has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring.
    Open

    export const matchTemplate = (
        searchImage: Image,
        templateImage: Image,
        mask?: Image,
        wantExact: boolean = true,
    Severity: Minor
    Found in packages/doorman/src/image-operations/template-matching.ts - About 6 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

    export const computePullSnapshotValidationHash = (
        { playerId, salt, saveVersion, saveData, playerSs, secretSalt }: PullSnapshotValidationHashParameters,
        logger: ILogger = debug
    ): string => {
        const passLogger = logger === debug ? undefined : logger;
    Severity: Major
    Found in packages/nucleus/src/endpoints/snapshots.ts and 1 other location - About 6 hrs to fix
    packages/nucleus/src/endpoints/download-save.ts on lines 116..131

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

    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

    export const computeDownloadSaveValidationHash = (
        { playerId, salt, saveVersionAtNimblebit, saveData, playerSs, secretSalt }: DownloadSaveValidationHashParameters,
        logger: ILogger = debug
    ): string => {
        const passLogger = logger === debug ? undefined : logger;
    Severity: Major
    Found in packages/nucleus/src/endpoints/download-save.ts and 1 other location - About 6 hrs to fix
    packages/nucleus/src/endpoints/snapshots.ts on lines 239..254

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

    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

    Function parsingSubRoutine has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
    Open

    export const parsingSubRoutine = function <T extends GenericBlocks, U extends GenericJsonSave<T>>(
        nimblebitSave: DecompressedSave,
        blocksToUse: T,
        log: ILogger = debug
    ): U {
    Severity: Minor
    Found in packages/nucleus/src/parsing-structs/parsing-subroutines.ts - About 6 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

    /******/     function __webpack_require__(moduleId) {
    /******/         // Check if module is in cache
    /******/         var cachedModule = __webpack_module_cache__[moduleId];
    /******/         if (cachedModule !== undefined) {
    /******/             return cachedModule.exports;
    Severity: Major
    Found in common/scripts/install-run-rush.js and 1 other location - About 5 hrs to fix
    common/scripts/install-run.js on lines 213..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 145.

    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

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

    /******/     function __webpack_require__(moduleId) {
    /******/         // Check if module is in cache
    /******/         var cachedModule = __webpack_module_cache__[moduleId];
    /******/         if (cachedModule !== undefined) {
    /******/             return cachedModule.exports;
    Severity: Major
    Found in common/scripts/install-run.js and 1 other location - About 5 hrs to fix
    common/scripts/install-run-rush.js on lines 45..63

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

    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

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

    export class IsMusicEnabledAgent extends TinyTowerFridaAgent {
        loadDependencies() {
            const csharpAssembly = Il2Cpp.domain.assembly("Assembly-CSharp");
            const VPlayerClass = csharpAssembly.image.class("VPlayer");
    
    
    Severity: Major
    Found in packages/insight/examples/js-typed/getter-agent.js and 1 other location - About 4 hrs to fix
    packages/insight/examples/js/getter-agent.js on lines 10..24

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

    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

    /******/     (() => {
    /******/         // define getter functions for harmony exports
    /******/         __webpack_require__.d = (exports, definition) => {
    /******/             for(var key in definition) {
    /******/                 if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
    Severity: Major
    Found in common/scripts/install-run-rush.js and 1 other location - About 4 hrs to fix
    common/scripts/install-run.js on lines 247..256

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

    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

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

    export class IsMusicEnabledAgent extends TinyTowerFridaAgent {
        loadDependencies() {
            const csharpAssembly = Il2Cpp.domain.assembly("Assembly-CSharp");
            const VPlayerClass = csharpAssembly.image.class("VPlayer");
    
    
    Severity: Major
    Found in packages/insight/examples/js/getter-agent.js and 1 other location - About 4 hrs to fix
    packages/insight/examples/js-typed/getter-agent.js on lines 11..25

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

    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

    /******/     (() => {
    /******/         // define getter functions for harmony exports
    /******/         __webpack_require__.d = (exports, definition) => {
    /******/             for(var key in definition) {
    /******/                 if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
    Severity: Major
    Found in common/scripts/install-run.js and 1 other location - About 4 hrs to fix
    common/scripts/install-run-rush.js on lines 79..88

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

    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

        public loadDependencies() {
            const csharpAssembly = Il2Cpp.domain.assembly("Assembly-CSharp");
            const AppUtilClass = csharpAssembly.image.class("AppUtil");
            const VElevatorDataClass = csharpAssembly.image.class("VElevatorData");
            const elevatorsArray = VElevatorDataClass.field<Il2Cpp.Array<Il2Cpp.Object>>("info").value;
    Severity: Major
    Found in packages/insight/src/agents/get-elevator-data.ts and 1 other location - About 4 hrs to fix
    packages/insight/src/agents/get-roof-data.ts on lines 11..17

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

    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

        public loadDependencies() {
            const csharpAssembly = Il2Cpp.domain.assembly("Assembly-CSharp");
            const AppUtilClass = csharpAssembly.image.class("AppUtil");
            const VRoofDataClass = csharpAssembly.image.class("VRoofData");
            const roofsArray = VRoofDataClass.field<Il2Cpp.Array<Il2Cpp.Object>>("info").value;
    Severity: Major
    Found in packages/insight/src/agents/get-roof-data.ts and 1 other location - About 4 hrs to fix
    packages/insight/src/agents/get-elevator-data.ts on lines 11..17

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

    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

    File route.ts has 339 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    const bitLayers = [
        "skin",
        "eyes",
        "hair",
        "facialhair",
    Severity: Minor
    Found in apps/trading-site/app/api/random-bitizen/route.ts - About 4 hrs to fix

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

      /******/     (() => {
      /******/         // define __esModule on exports
      /******/         __webpack_require__.r = (exports) => {
      /******/             if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
      /******/                 Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
      Severity: Major
      Found in common/scripts/install-run.js and 1 other location - About 4 hrs to fix
      common/scripts/install-run-rush.js on lines 96..104

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

      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

      /******/     (() => {
      /******/         // define __esModule on exports
      /******/         __webpack_require__.r = (exports) => {
      /******/             if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
      /******/                 Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
      Severity: Major
      Found in common/scripts/install-run-rush.js and 1 other location - About 4 hrs to fix
      common/scripts/install-run.js on lines 264..272

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

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

              animations: [
                  { element: "bluring", x: 4, y: 5, ftime: "0.1" },
                  { element: "bluring", x: 21, y: 5, ftime: "0.1" },
                  { element: "blubars", x: 9, y: 9, ftime: "0.1" },
                  { element: "blublink", x: 4, y: 17, ftime: "0.25" },
      Severity: Major
      Found in packages/nucleus/src/data/elevators.ts and 2 other locations - About 4 hrs to fix
      packages/nucleus/src/data/floors.ts on lines 631..637
      packages/nucleus/src/data/roofs.ts on lines 241..247

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

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

              animations: [
                  { element: "floor283pot", x: 92, y: 47, ftime: "0.125" },
                  { element: "floor283cat", x: 117, y: 47, ftime: "1" },
                  { element: "floor283spark", x: 23, y: 34, ftime: "0.07" },
                  { element: "floor283candle", x: 9, y: 9, ftime: "0.5" },
      Severity: Major
      Found in packages/nucleus/src/data/floors.ts and 2 other locations - About 4 hrs to fix
      packages/nucleus/src/data/elevators.ts on lines 73..79
      packages/nucleus/src/data/roofs.ts on lines 241..247

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

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

              animations: [
                  { element: "watertube", x: 43, y: 68, ftime: "0.15" },
                  { element: "watertube", x: 43, y: 105, ftime: "0.12" },
                  { element: "waterspill", x: 55, y: 138, ftime: "0.12" },
                  { element: "slideguy", x: 44, y: 136, ftime: "0.1" },
      Severity: Major
      Found in packages/nucleus/src/data/roofs.ts and 2 other locations - About 4 hrs to fix
      packages/nucleus/src/data/elevators.ts on lines 73..79
      packages/nucleus/src/data/floors.ts on lines 631..637

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

      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

      Function 679877 has 101 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
      
      __webpack_require__.r(__webpack_exports__);
      /* harmony export */ __webpack_require__.d(__webpack_exports__, {
      /* harmony export */   "isVariableSetInNpmrcFile": () => (/* binding */ isVariableSetInNpmrcFile),
      Severity: Major
      Found in common/scripts/install-run.js - About 4 hrs to fix
        Severity
        Category
        Status
        Source
        Language