Skip to content

Brew setup and sonar coverage setup#54

Merged
pateash merged 25 commits into
mainfrom
brew/formulae-setup
Jul 1, 2024
Merged

Brew setup and sonar coverage setup#54
pateash merged 25 commits into
mainfrom
brew/formulae-setup

Conversation

@pateash

@pateash pateash commented Jul 1, 2024

Copy link
Copy Markdown
Collaborator

Closes #50

Summary by CodeRabbit

  • Documentation

    • Updated the path to the contributing guide in the README.
    • Revised supported versions information in SECURITY.md.
    • Moved brew formulae instructions to a new HOMEBREW.md file.
  • Chores

    • Removed SonarCloud job configuration from the CI workflow.
    • Introduced guidelines for managing Homebrew formulae in HOMEBREW.md.
    • Added a script for managing Homebrew packages in brew.sh.
    • Updated SonarQube analysis configurations in sonar-project.properties.
    • Removed the specific version requirement for coverage[toml] in pyproject.toml.

@coderabbitai

coderabbitai Bot commented Jul 1, 2024

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@pateash has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 13 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between bdf693c and c4d28bd.

Walkthrough

The recent changes primarily involve introducing Homebrew formulae management capabilities and related documentation to the project. Additionally, there are updates to the SonarCloud configuration, contributing guide paths, and security information. Specific configurations and dependency requirements have also been adjusted for better project maintenance and development practices.

Changes

Files Change Summaries
.github/workflows/build.yml Removed SonarCloud job configuration, eliminating the steps for SonarCloud scanning.
README.md Updated the path to the contributing guide from CONTRIBUTING.md to dev/CONTRIBUTING.md.
SECURITY.md Updated the "Supported Versions" section for clearer user reference.
dev/CONTRIBUTING.md Removed local testing and brew formulae instructions, referencing new guidelines in HOMEBREW.md.
dev/HOMEBREW.md Introduced new file with guidelines for managing Homebrew formulae including local testing and version bumping instructions.
dev/brew.sh Introduced a new script with functions for managing the hckr Homebrew package (install, uninstall, test, audit, style, tap, and clean).
sonar-project.properties Added SonarQube analysis configurations for test directories, coverage report paths, language type, and source encoding.
pyproject.toml Removed specific version requirement of coverage[toml] dependency.

Assessment against linked issues

Objective (Issue #50: Adding homebrew formulae) Addressed Explanation
Adding homebrew formulae

Poem

🐇 In the realm of code we stride anew,
With Homebrew taps and clear guides to pursue. 🍺
Paths realigned and versions defined,
For a project robust, and well refined. 🚀
🛠️ Brew scripts rise with tasks in store,
To usher hckr to every user’s door. 🎉


Tip

Early access features: enabled

We are currently testing the following features in early access:

  • OpenAI gpt-4o model for code reviews and chat: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available.

Note:

  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.
  • Please join our Discord Community to provide feedback and report issues.
  • OSS projects are currently opted into early access features by default.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot added the github-actions Changes in CICD label Jul 1, 2024
@pateash
pateash marked this pull request as ready for review July 1, 2024 18:51

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

Outside diff range and nitpick comments (10)
SECURITY.md (1)

Line range hint 12-12: Fix multiple consecutive blank lines.

There are multiple consecutive blank lines which should be reduced to one.

-  Tell them where to go, how often they can expect to get an update on a
-  reported vulnerability, what to expect if the vulnerability is accepted or
+  Tell them where to go, how often they can expect to get an update on a reported vulnerability, what to expect if the vulnerability is accepted or
dev/CONTRIBUTING.md (7)

Line range hint 16-16: Use consistent unordered list style.

Unordered list style should be consistent throughout the document.

-* Use python3.8 in development
+ - Use python3.8 in development
```diff
-* Once we publish a release, Publish workflow [publish.yml](.github%2Fworkflows%2Fpublish.yml) automatically publishes a version to  [PyPi](https://pypi.org/p/hckr)
+ - Once we publish a release, Publish workflow [publish.yml](.github%2Fworkflows%2Fpublish.yml) automatically publishes a version to  [PyPi](https://pypi.org/p/hckr)
```diff
-* we use pre-commits to make sure we only pushes if lint and other checks are passed.
+ - we use pre-commits to make sure we only pushes if lint and other checks are passed.
```diff
-* Install `pre-commit` from pypi and install in Git to enable this.
+ - Install `pre-commit` from pypi and install in Git to enable this.
```diff
-* we can easily clean up all the dev version using this command.
+ - we can easily clean up all the dev version using this command.

Also applies to: 19-19, 23-23, 24-24, 31-31

Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 15-15: Fix trailing spaces.

There are trailing spaces that should be removed.

-## Python 
+## Python
```diff
- make pypi-clean
+ make pypi-clean

Also applies to: 25-25

Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 15-15: Add a blank line below the heading.

Headings should be surrounded by blank lines.

-## Python 
+## Python
+
```diff
-## Publishing to Pypi
+## Publishing to Pypi
+
```diff
-## Pre-commits
+## Pre-commits
+
```diff
-## Dev versions cleanup
+## Dev versions cleanup
+
```diff
-## Homebrew formulae
+## Homebrew formulae
+

Also applies to: 18-18, 22-22, 30-30, 36-36

Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 25-25: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines.

-```bash 
+```bash 
+
- make pypi-clean
+ make pypi-clean
+
```shell

Also applies to: 32-32

Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 16-16: Add blank lines around lists.

Lists should be surrounded by blank lines.

-* Use python3.8 in development
+* Use python3.8 in development
+
```diff
-* Once we publish a release, Publish workflow [publish.yml](.github%2Fworkflows%2Fpublish.yml) automatically publishes a version to  [PyPi](https://pypi.org/p/hckr)
+* Once we publish a release, Publish workflow [publish.yml](.github%2Fworkflows%2Fpublish.yml) automatically publishes a version to  [PyPi](https://pypi.org/p/hckr)
+
```diff
-* we use pre-commits to make sure we only pushes if lint and other checks are passed.
+* we use pre-commits to make sure we only pushes if lint and other checks are passed.
+
```diff
-* Install `pre-commit` from pypi and install in Git to enable this.
+* Install `pre-commit` from pypi and install in Git to enable this.
+
```diff
-* we can easily clean up all the dev version using this command.
+* we can easily clean up all the dev version using this command.
+

Also applies to: 19-19, 23-23, 24-24, 31-31

Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 23-23: Fix grammatical error.

The pronoun 'we' must be used with a non-third-person form of a verb.

- we use pre-commits to make sure we only pushes if lint and other checks are passed.
+ we use pre-commits to make sure we only push if lint and other checks are passed.
Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 31-31: Fix grammatical number.

The grammatical number of this noun doesn’t look right. Consider replacing it.

- we can easily clean up all the dev version using this command.
+ we can easily clean up all the dev versions using this command.
Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)

README.md (2)

Line range hint 1-1: Add a blank line below the heading.

Headings should be surrounded by blank lines.

-# hckr -  cli hack for developers
+# hckr -  cli hack for developers
+
Tools
LanguageTool

[typographical] ~40-~40: Consider adding a comma here.
Context: ...nses/MIT.html) license. ## Contributing Please find contributing guide here [CONTRIBUT...

(PLEASE_COMMA)

Markdownlint

40-40: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


43-43: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 22-22: Fix multiple consecutive blank lines.

There are multiple consecutive blank lines which should be reduced to one.

-  If you feel awesome and want to support us in a small way, please consider starring and sharing the repo! This helps us get known and grow the community. 🙏
+  If you feel awesome and want to support us in a small way, please consider starring and sharing the repo! This helps us get known and grow the community. 🙏
Tools
LanguageTool

[typographical] ~40-~40: Consider adding a comma here.
Context: ...nses/MIT.html) license. ## Contributing Please find contributing guide here [CONTRIBUT...

(PLEASE_COMMA)

Markdownlint

40-40: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


43-43: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 046c1c3 and 62b9950.

Files selected for processing (7)
  • .github/workflows/build.yml (1 hunks)
  • README.md (1 hunks)
  • SECURITY.md (1 hunks)
  • dev/CONTRIBUTING.md (1 hunks)
  • dev/HOMEBREW.md (1 hunks)
  • dev/brew.sh (1 hunks)
  • sonar-project.properties (1 hunks)
Files skipped from review due to trivial changes (2)
  • .github/workflows/build.yml
  • sonar-project.properties
Additional context used
Markdownlint
SECURITY.md

12-12: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)

dev/HOMEBREW.md

19-19: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


1-1: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


4-4: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


9-9: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


14-14: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


5-5: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


10-10: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


15-15: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


21-21: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


2-2: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


20-20: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)

dev/CONTRIBUTING.md

16-16: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


19-19: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


23-23: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


24-24: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


31-31: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


15-15: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)


25-25: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)


15-15: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


18-18: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


22-22: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


30-30: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


25-25: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


32-32: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


16-16: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


19-19: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


23-23: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


24-24: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


31-31: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


31-31: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


7-7: null
Link fragments should be valid

(MD051, link-fragments)

README.md

22-22: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


1-1: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


40-40: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


43-43: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)

LanguageTool
dev/CONTRIBUTING.md

[style] ~12-~12: The phrase ‘feel free to’ is used quite frequently. Consider using a less frequent alternative to set your writing apart from others and make it sound more professional.
Context: ...ckr](https://github.com/pateash/hckr/) Please feel free to provide any suggestion for new utility ...

(FEEL_FREE_TO_STYLE_ME)


[grammar] ~23-~23: The pronoun ‘we’ must be used with a non-third-person form of a verb.
Context: ...we use pre-commits to make sure we only pushes if lint and other checks are passed. * ...

(NON3PRS_VERB)


[uncategorized] ~31-~31: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...up * we can easily clean up all the dev version using this command. ```shell make pypi...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

README.md

[style] ~18-~18: Consider using a more formal and expressive alternative to ‘awesome’.
Context: ...# Supporting the project ⭐ If you feel awesome and want to support us in a small way, ...

(AWESOME)


[style] ~18-~18: Using many exclamation marks might seem excessive (in this case: 7 exclamation marks for a text that’s 1604 characters long)
Context: ...e consider starring and sharing the repo! This helps us get known and grow the co...

(EN_EXCESSIVE_EXCLAMATION)


[typographical] ~40-~40: Consider adding a comma here.
Context: ...nses/MIT.html) license. ## Contributing Please find contributing guide here [CONTRIBUT...

(PLEASE_COMMA)

Additional comments not posted (15)
dev/CONTRIBUTING.md (2)

Line range hint 12-12: Consider using a more professional alternative to 'feel free to'.

The phrase 'feel free to' is used frequently and can be replaced with a more professional alternative.

- Please feel free to provide any suggestion for new utility in [Issues](https://github.com/pateash/hckr/issues)
+ Please provide any suggestions for new utilities in [Issues](https://github.com/pateash/hckr/issues)
Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


36-36: Consider adding a comma.

Consider adding a comma to improve readability.

-## Homebrew formulae
+## Homebrew formulae,
Tools
LanguageTool

[typographical] ~36-~36: Consider adding a comma here.
Context: ...ake pypi-clean ``` ## Homebrew formulae Please find contributing guide for `Homebrew f...

(PLEASE_COMMA)

Markdownlint

36-36: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)

README.md (3)

Line range hint 18-18: Consider using a more formal and expressive alternative to 'awesome'.

The word 'awesome' can be replaced with a more formal and expressive alternative.

- If you feel awesome and want to support us in a small way, please consider starring and sharing the repo! This helps us get known and grow the community. 🙏
+ If you feel great and want to support us in a small way, please consider starring and sharing the repo! This helps us get known and grow the community. 🙏
Tools
LanguageTool

[typographical] ~40-~40: Consider adding a comma here.
Context: ...nses/MIT.html) license. ## Contributing Please find contributing guide here [CONTRIBUT...

(PLEASE_COMMA)

Markdownlint

40-40: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


43-43: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


Line range hint 18-18: Avoid excessive exclamation marks.

Using many exclamation marks might seem excessive.

- If you feel awesome and want to support us in a small way, please consider starring and sharing the repo! This helps us get known and grow the community. 🙏
+ If you feel awesome and want to support us in a small way, please consider starring and sharing the repo. This helps us get known and grow the community. 🙏
Tools
LanguageTool

[typographical] ~40-~40: Consider adding a comma here.
Context: ...nses/MIT.html) license. ## Contributing Please find contributing guide here [CONTRIBUT...

(PLEASE_COMMA)

Markdownlint

40-40: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


43-43: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)


40-40: Consider adding a comma.

Consider adding a comma to improve readability.

-## Contributing
+## Contributing,
Tools
LanguageTool

[typographical] ~40-~40: Consider adding a comma here.
Context: ...nses/MIT.html) license. ## Contributing Please find contributing guide here [CONTRIBUT...

(PLEASE_COMMA)

Markdownlint

40-40: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines

(MD022, blanks-around-headings)

dev/brew.sh (10)

1-4: Consider using a relative path for the source file.

Using an absolute path can cause issues when running the script on different machines. Consider using a relative path or an environment variable.

- SOURCE="/Users/ashishpatel/pateash/homebrew-core/Formula/h/hckr.rb"
+ SOURCE="$(pwd)/path/to/hckr.rb"

7-11: LGTM!

The clean function is straightforward and works as expected.


13-17: LGTM!

The uninstall function is straightforward and works as expected.


19-23: LGTM!

The install function is straightforward and works as expected.


25-29: LGTM!

The test function is straightforward and works as expected.


31-35: LGTM!

The audit function is straightforward and works as expected.


38-42: LGTM!

The style function is straightforward and works as expected.


44-57: Consider using environment variables for paths.

Using hardcoded paths can cause issues when running the script on different machines. Consider using environment variables or relative paths.

- TAP_DIR="/opt/homebrew/Library/Taps/pateash/homebrew-local/Formula/"
+ TAP_DIR="${HOMEBREW_PREFIX}/Library/Taps/pateash/homebrew-local/Formula/"

64-67: Improve error handling for missing commands.

Consider providing more specific error messages for missing commands.

- echo -e "Please pass COMMAND, Please use $COMMANDS"
+ echo -e "Error: No command provided.\nUsage: $COMMANDS"

96-99: Improve error handling for invalid commands.

Consider providing more specific error messages for invalid commands.

- echo -e "Invalid command, Please use $COMMANDS"
+ echo -e "Error: Invalid command '$CMD'.\nUsage: $COMMANDS"

Comment thread dev/HOMEBREW.md
Comment thread dev/HOMEBREW.md
Comment thread dev/HOMEBREW.md
Comment thread dev/HOMEBREW.md
Comment thread dev/HOMEBREW.md
Comment thread dev/HOMEBREW.md
Comment thread README.md

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 62b9950 and f69c2c4.

Files selected for processing (1)
  • .github/workflows/build.yml (3 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/build.yml

@codecov

codecov Bot commented Jul 1, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.96%. Comparing base (872eac2) to head (fd5f8fc).
Report is 3 commits behind head on main.

Current head fd5f8fc differs from pull request most recent head c4d28bd

Please upload reports for the commit c4d28bd to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #54   +/-   ##
=======================================
  Coverage   87.96%   87.96%           
=======================================
  Files          14       14           
  Lines         623      623           
  Branches       64       64           
=======================================
  Hits          548      548           
  Misses         57       57           
  Partials       18       18           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f69c2c4 and 41f6076.

Files selected for processing (3)
  • .github/workflows/build.yml (2 hunks)
  • pyproject.toml (1 hunks)
  • sonar-project.properties (1 hunks)
Files skipped from review due to trivial changes (1)
  • pyproject.toml
Files skipped from review as they are similar to previous changes (2)
  • .github/workflows/build.yml
  • sonar-project.properties

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 41f6076 and f6d873c.

Files selected for processing (2)
  • .github/workflows/build.yml (2 hunks)
  • pyproject.toml (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • .github/workflows/build.yml
  • pyproject.toml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f6d873c and bdf693c.

Files selected for processing (2)
  • .github/workflows/build.yml (2 hunks)
  • sonar-project.properties (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • .github/workflows/build.yml
  • sonar-project.properties

@pateash pateash changed the title Brew/formulae setup Brew setup and sonar coverage setup Jul 1, 2024
@pateash
pateash merged commit 83a5df5 into main Jul 1, 2024
@pateash
pateash deleted the brew/formulae-setup branch July 1, 2024 20:32
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2024

Copy link
Copy Markdown

@pateash pateash mentioned this pull request Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding homebrew formulae

1 participant