Coder Social home page Coder Social logo

Comments (3)

dustinwoodhouse avatar dustinwoodhouse commented on June 3, 2024 1

Thanks @jkanczler, the missing path was the problem. Adding the path fixed it.

from cloc-vsts-extension.

dustinwoodhouse avatar dustinwoodhouse commented on June 3, 2024

The problem appears to be the name of the executable. Has this use case never been tested before? I certainly can't be the first person using this as a VSTS (azure devops) plugin in their build pipeline.

from cloc-vsts-extension.

jkanczler avatar jkanczler commented on June 3, 2024

It's working in our build pipeline.

This is what you're trying to achieve (arguments input):

--exclude-dir=.gitignore --exclude-ext=.md

The problem with this the --exclude-dir option. The .gitignore is a file. Maybe you wanted to use .git as directory. The path to analyze input is missing too.

Example arguments input for a .NET application:

. --exclude-dir=bin,obj,packages,.vs,.git

As you can see it starts with a '.'. Specifies that we would like to scan the actual folder.
The --exclude-dir option excluding bin, obj, packages, .vs and .git directories.

The pipeline logged the following:

2019-01-16T10:40:17.1370522Z Executing command: cloc.exe . --exclude-dir=bin,obj,packages,.vs,.git --sum-one --md --out cloc.result.md
2019-01-16T10:40:25.2618244Z       50 text files.
2019-01-16T10:40:25.2619113Z classified 50 files
2019-01-16T10:40:25.2619269Z       49 unique files.                              
2019-01-16T10:40:25.2619399Z       26 files ignored.
2019-01-16T10:40:25.2619557Z Wrote cloc.result.md

I suggest to run cloc.exe manually on your machine. Test what arguments are good for you, before configuring the build step.

from cloc-vsts-extension.

Related Issues (8)

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.