GitHub Action
vmd-action
A static code analysis tool for detecting code smells and best practice violations in Vue.js and Nuxt.js projects.
Easily integrate Vue Mess Detector into your CI pipeline to receive pull request alerts and display badges effortlessly.
Tip
Reference: How to Use Vue Mess Detector
You can add this action as a step in your GitHub Actions workflow. Here's an example of how to use it:
name: VMD Analysis
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
detect-mess:
runs-on: ubuntu-latest
name: Detect Vue Mess
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Vue Mess Detector Analysis
uses: brenoepics/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# check inputs for full args list
After installing the vmd-action
, Once a pull request is opened, you will start receiving comments and report
artifacts.
Tip
You can find the list of inputs and their descriptions in the action.yml file.
Input | Description | Required | Default |
---|---|---|---|
github-token | GitHub token for commenting on pull requests | false |
|
version | Version of Vue Mess Detector | true |
latest |
skipInstall | Skip the installation of Vue Mess Detector | true |
false |
commentsEnabled | Comment on Pull requests? | true |
true |
packageManager | Package manager to use | false |
(detect) |
runArgs | Arguments to pass to Vue Mess Detector | false |
--group=file |
entryPoint | Entry point for Vue Mess Detector | false |
./ |
srcDir | Source directory to analyze | true |
src/ |
We welcome contributions to this project! Please read our Contributing Guide for more information on how to contribute.
If you've found this project useful, please consider giving it a ⭐ on GitHub. This helps to spread the awareness of the project and is a great way to show your support!
This project is licensed under the MIT License.