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

Omprakash #1876

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2a3b892
Add .hound.yml configuration for Hound CI
OmprakashGujji Mar 19, 2024
74e5de4
Add code to check if a number is prime
OmprakashGujji Mar 25, 2024
1856341
Add factorial.py file for Hound review
OmprakashGujji Mar 26, 2024
0f1d973
Add Hound configuration file
OmprakashGujji Mar 26, 2024
fe24cb0
Your commit message here
OmprakashGujji Mar 28, 2024
d67bc93
Add Python code for prime number checking
OmprakashGujji Mar 28, 2024
87b85f5
Add test file for permission check
OmprakashGujji Mar 28, 2024
821d820
Fix code style issues for Hound
OmprakashGujji Mar 28, 2024
04a54b9
Commit message here
OmprakashGujji Mar 29, 2024
fcfc617
Add factorial calculator code
OmprakashGujji Mar 29, 2024
be6dcb8
Add .eslintrc.json file
OmprakashGujji Mar 29, 2024
b489abc
Update .hound.yml and add calculator functionality
OmprakashGujji Mar 29, 2024
72c48a4
Add review_code.py for review
OmprakashGujji Mar 29, 2024
b4d1bd7
Add Ruby code snippet to trigger Hound suggestions
OmprakashGujji Mar 29, 2024
d68baf0
Add factorial calculator
OmprakashGujji Mar 30, 2024
2673f99
Add palindrome checker code
OmprakashGujji Mar 30, 2024
6297578
Add sample code
OmprakashGujji Mar 30, 2024
bf7527b
Add code for new concept
OmprakashGujji Mar 30, 2024
2b23b8c
Added prime_checker.py
OmprakashGujji Apr 7, 2024
5ea876f
Add numpy_array_example.py file
OmprakashGujji Apr 7, 2024
1b1646f
Updated linked list implementation
OmprakashGujji Apr 8, 2024
e676bde
Add array operations code with intentional errors
OmprakashGujji Apr 8, 2024
ee2c77f
Add example_code1.py for analysis
OmprakashGujji Apr 9, 2024
5f19da7
Test commit
OmprakashGujji Apr 11, 2024
5f78fcb
Test commit
OmprakashGujji Apr 11, 2024
0d2fd30
Add Python script for finding subarray with given sum
OmprakashGujji Apr 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,7 @@
{
"rules": {
"semi": ["error", "always"],
"indent": ["error", 2],
// Add more rules as needed
}
}
46 changes: 37 additions & 9 deletions .hound.yml
@@ -1,17 +1,45 @@
fail_on_violations: true
eslint:
enabled: true
config_file: .eslintrc.json

rubocop:
enabled: true
config_file: .rubocop.yml
version: 0.75.0

scss:
enabled: false
scss-lint:
enabled: true
config_file: .scss-lint.yml

stylelint:
config_file: .stylelintrc.json
swiftlint:
enabled: true
config_file: .swiftlint.yml

eslint:
haml-lint:
enabled: true
config_file: .haml-lint.yml

python:
enabled: true
config_file: .python-lint.yml

markdownlint:
enabled: true
version: 5.7.0
config_file: .eslintrc
config_file: .markdown-lint.yml

phpcs:
enabled: true
config_file: .phpcs.xml

bash:
enabled: true
config_file: .bash-lint.yml

elixir:
enabled: true
config_file: .elixir-lint.yml

go:
enabled: true
config_file: .go-lint.yml

# Add more linters for other languages as needed
Empty file added 1.2.2'
Empty file.
38 changes: 38 additions & 0 deletions Dockerfile
@@ -0,0 +1,38 @@
# Use an official Node.js runtime as the base image
FROM node:20

# Install Ruby, essential build tools, Bundler, and rbenv
RUN apt-get update && \
apt-get install -y ruby-full build-essential rbenv && \
gem install bundler:2.5.6 && \
rbenv install 3.1.2 && \
rbenv global 3.1.2 && \
gem install hound -v '0.3.0' && \
gem install hound-cli && \
apt-get install -y docker.io && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Set the working directory inside the container
WORKDIR /app

# Copy package.json, yarn.lock, Gemfile, and Gemfile.lock to the working directory
COPY package.json yarn.lock Gemfile Gemfile.lock ./

RUN npm install --frozen-lockfile --legacy-peer-deps && \
yarn cache clean

# Install Ruby dependencies using Bundler
RUN bundle install

# Copy .hound.yml configuration file
COPY .hound.yml ./

# Copy the rest of the application code to the working directory
COPY . .

# Expose the port on which your application listens (if applicable)
# EXPOSE 3000

# Command to start your application
# CMD ["node", "app.js"]
29 changes: 29 additions & 0 deletions Dockerfile.txt
@@ -0,0 +1,29 @@
# Use a base image with Ruby version 3.0 or higher (adjust the version as needed)
FROM ruby:3.0

# Set the working directory inside the container
WORKDIR /app

# Copy the Gemfile and Gemfile.lock into the container
COPY Gemfile Gemfile.lock ./

# Install Bundler 2.4.22 explicitly
RUN gem install bundler -v 2.4.22

# Install Ruby dependencies using Bundler
RUN bundle install

# Copy the rest of your application files
COPY . .

# Install npm dependencies and build (if needed)
# Replace these commands with your specific npm commands if applicable
# Example commands for npm-based frontend project:
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN npm install --global yarn
RUN yarn install
RUN yarn build

# Specify the command to run your application (if applicable)
CMD ["bundle", "exec", "rails", "server"]
7 changes: 6 additions & 1 deletion Gemfile
@@ -1,6 +1,6 @@
source "https://rubygems.org"

ruby "2.7.1"
ruby "3.1.2"

gem "active_link_to"
gem "active_model_serializers", "0.10.10"
Expand Down Expand Up @@ -57,3 +57,8 @@ group :test do
gem "shoulda-matchers"
gem "webmock"
end
gem 'tzinfo-data'
Copy link

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Trailing whitespace detected.

gem 'did_you_mean'
Copy link

Choose a reason for hiding this comment

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

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem did_you_mean should appear before tzinfo-data.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

gem 'hound'
Copy link

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.


Copy link

Choose a reason for hiding this comment

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

2 trailing blank lines detected.