diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2e0cf0d..684ee87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ -name: Read Markdown Files +name: Generate doc patterns -on: [push, pull_request] +on: pull_request jobs: build: @@ -21,4 +21,6 @@ jobs: npm run build - name: Run the script - run: node dist/main.js + run: npm run start + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/docs/description/rulesets-cleancode.xml-BooleanArgumentFlag.md b/docs/description/rulesets-cleancode.xml-BooleanArgumentFlag.md index da2891f..e1d5971 100644 --- a/docs/description/rulesets-cleancode.xml-BooleanArgumentFlag.md +++ b/docs/description/rulesets-cleancode.xml-BooleanArgumentFlag.md @@ -1,3 +1 @@ A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method. - -[Source](http://phpmd.org/rules/cleancode.html#booleanargumentflag) diff --git a/package.json b/package.json index 7386ad2..eeedb74 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "rm -rf dist && npx tsc && node dist/main.js" + "build": "rm -rf dist && npx tsc", + "start": "node ./dist/main.js" }, "keywords": [], "author": "",