Code Monkey home page Code Monkey logo

azurepipelinetasks's People

Contributors

esbenbach avatar sweep-ai[bot] avatar

Watchers

 avatar

azurepipelinetasks's Issues

Sweep: Refactor DownloadArtifacts/DownloadArtifacts.ps1

In the file DownloadArtifacts/DownloadArtifacts.ps1 there is are two "foreach" loops.
The body of the inner foreach loop that handles $buildArtifacts should be refactored into a function with the $artifact as an input parameter.

Checklist
  • DownloadArtifacts/DownloadArtifacts.ps1
  • Identify the inner foreach loop that handles the $buildArtifacts variable. This loop starts at line 45 and ends at line 76.
    • Create a new function at the top of the script, before the try block. Name this function "ProcessArtifact". This function should take one parameter, $artifact.
    • Copy the body of the inner foreach loop (lines 47 to 75) into the body of the new function. Replace all instances of $artifact in the copied code with the parameter of the new function.
    • Replace the body of the inner foreach loop with a call to the new function, passing in $artifact as the argument.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.