Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): persist login and formatting options #47

Merged
merged 43 commits into from
Sep 17, 2023

Conversation

BioPhoton
Copy link
Collaborator

@BioPhoton BioPhoton commented Sep 9, 2023

This PR implements:

  • a format option on the collect logic
  • a persistReport function
  • formatters for the following report formats:
    • stdout
    • json
    • md
      • helpers to transform data to markdown
  • nearly all tests
  • a clumsy way to mock console.log's

to discuss :

  • We should probably consider using header for Plugins and audit details and then place results in tables ?
  • and probably even the details.issues (for ESLint audits - at least a summary of how many errors, warnings, etc. were found).

closes #20

@BioPhoton BioPhoton requested a review from matejchalk September 9, 2023 01:50
@ChristopherPHolder
Copy link

@BioPhoton Does this run locally?

I get typing errors when trying it locally.

package-lock.json Outdated Show resolved Hide resolved
packages/models/src/lib/report.ts Outdated Show resolved Hide resolved
packages/utils/docs/report.md Outdated Show resolved Hide resolved
packages/utils/docs/report.md Outdated Show resolved Hide resolved
packages/utils/docs/report.md Outdated Show resolved Hide resolved
packages/utils/src/lib/collect/implementation/md/list.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/collect/implementation/persist.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/collect/implementation/report.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/collect/index.ts Outdated Show resolved Hide resolved
packages/utils/docs/report.md Outdated Show resolved Hide resolved
packages/utils/docs/report.md Outdated Show resolved Hide resolved
packages/cli/project.json Outdated Show resolved Hide resolved
packages/models/src/lib/report.ts Outdated Show resolved Hide resolved
packages/utils/src/lib/collect/implementation/md/list.ts Outdated Show resolved Hide resolved
BioPhoton and others added 5 commits September 16, 2023 10:54
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
BioPhoton and others added 18 commits September 16, 2023 11:21
This PR includes:
- a refactoring for the test helper to mock schemas
- updated imports
- adoptions to the schemas (removes `label`)
# Conflicts:
#	package-lock.json
#	packages/models/src/lib/implementation/schemas.ts
#	packages/models/src/lib/plugin-config.spec.ts
#	packages/models/src/lib/plugin-config.ts
#	packages/models/src/lib/report.ts
#	packages/models/test/helpers.mock.ts
#	packages/models/test/index.ts
#	packages/utils/src/lib/collect/implementation/execute-plugin.spec.ts
#	packages/utils/src/lib/collect/implementation/mock/schema-helper.mock.ts
@BioPhoton BioPhoton merged commit 6241fd7 into main Sep 17, 2023
@BioPhoton BioPhoton deleted the print-report-to-console branch September 17, 2023 15:47
@BioPhoton BioPhoton mentioned this pull request Oct 18, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement collect command
3 participants