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

Install flow tool for static analysis #52

Open
wants to merge 1 commit into
base: f24
Choose a base branch
from

Conversation

akobaidan
Copy link

@akobaidan akobaidan commented Oct 24, 2024

Static analysis tool Flow is installed in the codebase through the command npm install --save-dev flow-bin. To configure the Node.js codebase to use the tool, a Flow script is added in package.json. The tool was then initialized through the command npm run flow init. This created a .flowconfig file that defines the tool's configuration to work correctly within the codebase. Additionally, the command npm run flow was deployed to launch the Flow server and confirm that no errors were found in the codebase.

The following screenshot of the terminal shows the output of running npm run flow init and executing npm run flow.

Screenshot 2024-10-23 at 7 57 33 PM

@akobaidan akobaidan self-assigned this Oct 24, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11499065709

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 82.675%

Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 76.74%
Totals Coverage Status
Change from base Build 11475022613: -0.02%
Covered Lines: 22362
Relevant Lines: 25627

💛 - Coveralls

@akobaidan akobaidan changed the title Integrated flow static analysis Intstalled flow static analysis tool Oct 25, 2024
Copy link
Member

@mohamed-elzeni mohamed-elzeni left a comment

Choose a reason for hiding this comment

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

I have incorporated the changes made, installed the tool, and ran it. The output on my machine matches the one here. LGTM!

@mohamed-elzeni mohamed-elzeni added this to the P3A milestone Oct 25, 2024
@akobaidan akobaidan added the enhancement New feature or request label Oct 26, 2024
@akobaidan akobaidan changed the title Intstalled flow static analysis tool Intstalled flow tool for static analysis Oct 27, 2024
@akobaidan akobaidan linked an issue Oct 27, 2024 that may be closed by this pull request
Copy link

@lhitmi lhitmi left a comment

Choose a reason for hiding this comment

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

The tool installation looks good and functions as it should.

@mohamed-elzeni mohamed-elzeni changed the title Intstalled flow tool for static analysis Intstall flow tool for static analysis Oct 27, 2024
@mohamed-elzeni mohamed-elzeni changed the title Intstall flow tool for static analysis Install flow tool for static analysis Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install static analysis tool for codebase
4 participants