-
Notifications
You must be signed in to change notification settings - Fork 401
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
base: master
Are you sure you want to change the base?
Omprakash #1876
Changes from all commits
2a3b892
74e5de4
1856341
0f1d973
fe24cb0
d67bc93
87b85f5
821d820
04a54b9
fcfc617
be6dcb8
b489abc
72c48a4
b4d1bd7
d68baf0
2673f99
6297578
bf7527b
2b23b8c
5ea876f
1b1646f
e676bde
ee2c77f
5f19da7
5f78fcb
0d2fd30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"rules": { | ||
"semi": ["error", "always"], | ||
"indent": ["error", 2], | ||
// Add more rules as needed | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|
@@ -57,3 +57,8 @@ group :test do | |
gem "shoulda-matchers" | ||
gem "webmock" | ||
end | ||
gem 'tzinfo-data' | ||
gem 'did_you_mean' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
gem 'hound' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2 trailing blank lines detected. |
||
|
There was a problem hiding this comment.
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.