GithubHelp home page GithubHelp logo

Build Status Action Version License GitHub popularity Docker Pulls

DCM logo

DCM Action

This action allows to use DCM from GitHub Actions.

What is DCM?

DCM is a static analysis tool that helps you analyze and improve your code quality.

Usage

Create dartcodemetrics.yaml under .github/workflows With the following contents.

Default configuration

name: DCM

on: [push]

jobs:
  check:
    name: dart-code-metrics-action

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - name: dart-code-metrics
        uses: dart-code-checker/dart-code-metrics-action@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

Name Required Description Default
github_token ☑️ Required to post a report on GitHub. Note: the secret GITHUB_TOKEN is already provided by GitHub and you don't have to set it up yourself.
github_pat Required if you had private GitHub repository in the package dependencies Personal access token must access to repo and read:user scopes
folders List of folders whose contents will be scanned. [lib]
relative_path If your package isn't at the root of the repository, set this input to indicate its location.
pull_request_comment Publish detailed report commented directly into your pull request. false
analyze_report_title_pattern Configurable analyze report title pattern. DCM analyze report of $packageName
fatal_warnings Treat warning level issues as fatal. false
fatal_performance Treat performance level issues as fatal. false
fatal_style Treat style level issues as fatal. false
check_unused_files Additional scan for find unused files in package. false
check_unused_files_folders List of folders whose contents will be scanned for find unused files. Taken from folders argument
unused_files_report_title_pattern Configurable unused files report title pattern. DCM unused files report of $packageName

Output Example

  • Check run output:

    annotation

  • Annotation:

    annotation

How to contribute

If you would like to help contribute to this GitHub Action, please see CONTRIBUTING

LICENSE

The scripts and documentation in this project are released under the MIT License

Dart Code Checker's Projects

dart-code-metrics icon dart-code-metrics

Software analytics tool that helps developers analyse and improve software quality.

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.