gg_one 8.2.1 copy "gg_one: ^8.2.1" to clipboard
gg_one: ^8.2.1 copied to clipboard

A collection of checks and actions like analyzing, linting, testing, code coverage, committing, pushing, publishing.

gg_one #

gg_one is a Dart package designed to streamline your development workflow by offering a suite of pre-commit checks. These include code analysis, linting, testing, and coverage verification, all complemented by highly optimized and colorized error messages.

Key Features #

  • Precise Colorized Error Messages: Get detailed feedback with error messages that are both precise and easy to understand, enhanced with color for better readability.
  • Optimized for VSCode: Error messages are tailored for display in Visual Studio Code, ensuring a seamless integration into your development environment.
  • Enforces 100% Code Coverage: Achieve and maintain high-quality code with enforced 100% test coverage for your codebase.
  • GitHub Action Integration: Easily integrate gg_one with GitHub Actions to automate your testing workflow directly within GitHub.

Preparation #

Install required tools #

  • dart global activate pana

Create a New Library Project #

dart create -t package hello_world
cd hello_world

Add gg_one as a Development Dependency #

Enhance your project with gg_one by adding it as a development dependency:

dart pub add --dev gg_one

Discover gg_one Commands #

Learn about the available commands and their applications:

dart pub run gg_one -h

Execute All Tests and Checks #

dart run gg_one all

Fix the issues #

Address issues identified by gg_one, aiming for a clean, error-free codebase..

Ensure Comprehensive Code Coverage #

gg_one demands excellence in testing:

  • Achieve 100% Code Coverage: Mandatory complete test coverage for all code.
  • Review Short and Precise Coverage Reports: Analyze uncovered lines and their corresponding tests.
  • Maintain Mandatory Test Files: Ensure each implementation file has a dedicated test file achieving 100% coverage.

Exclude lines from code that should be excluded from code coverage:

// coverage:ignore-line
// coverage:ignore-start
// coverage:ignore-end

Set Up GitHub Action for Automated Checks #

Automate your testing process by setting up the gg_one GitHub Action, like here:

https://github.com/ggsuite/gg_one/blob/main/.github/workflows/pipeline.yaml

Contributions #

Report your errors and contributions to https://github.com/ggsuite/gg_one.

History #

gg_one is the successor of gg. The previous history (up to and including commit 9141ef54f5edac470d119a39285813299143898f) lives at https://github.com/ggsuite/gg.

0
likes
160
points
435
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A collection of checks and actions like analyzing, linting, testing, code coverage, committing, pushing, publishing.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, gg_args, gg_capture_print, gg_changelog, gg_console_colors, gg_direct_json, gg_git, gg_is_flutter, gg_is_github, gg_log, gg_merge, gg_process, gg_publish, gg_status_printer, gg_test, gg_version, interact, matcher, meta, mocktail, path, pub_semver, recase, yaml, yaml_edit

More

Packages that depend on gg_one