Skip to content

Commit

Permalink
TCE-1007 added some new gems and new rules (#614)
Browse files Browse the repository at this point in the history
* added some new gems and new rules:
rubocop-faker
rubocop-factory_bot
rubocop-md
rubocop-mdsol
rubocop-rspec_rails
rubocop-capybara
standard

* improve Dockerfile
  • Loading branch information
DMarinhoCodacy authored Jun 24, 2024
1 parent deec7d9 commit 103916c
Show file tree
Hide file tree
Showing 39 changed files with 2,065 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ COPY docs docs
RUN echo 'gem: --no-document' > /etc/gemrc \
&& bundle install \
&& gem cleanup \
&& rm -rf /tmp/* /var/cache/apk/*
&& rm -rf /tmp/* /var/cache/apk/*

RUN bundle config set --local path 'vendor/bundle' && bundle install && ./scripts/doc_generate.sh .
RUN bundle config set --local path 'vendor/bundle' && ./scripts/doc_generate.sh .

FROM $BASE_IMAGE

Expand Down
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ gem "turbo-rails"
gem "graphql"
gem "prettier"
#Rubocop official modules
gem "rubocop-capybara"
gem "rubocop-changes"
gem "rubocop-faker"
gem "rubocop-factory_bot"
gem "rubocop-i18n"
gem "rubocop-md"
gem "rubocop-mdsol"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rake"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "rubocop-sorbet"
gem "rubocop-shopify", require: false
gem "rubocop-graphql"
Expand All @@ -49,4 +56,5 @@ gem "sanitize_email"
gem "selenium-webdriver"
gem "simplecov"
gem "simplecov-cobertura"
gem "standard"
gem "web-console"
58 changes: 50 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ GEM
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
Expand All @@ -103,6 +103,9 @@ GEM
docile (1.4.0)
drb (2.2.1)
erubi (1.13.0)
faker (3.4.1)
i18n (>= 1.8.11, < 2)
git_diff_parser (3.2.0)
globalid (1.2.1)
activesupport (>= 6.1)
graphql (2.3.5)
Expand All @@ -126,6 +129,7 @@ GEM
activesupport (>= 5.0.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
Expand All @@ -139,12 +143,12 @@ GEM
matrix (0.4.2)
method_source (1.1.0)
mini_mime (1.1.5)
minitest (5.23.1)
minitest (5.24.0)
mocha (2.4.0)
ruby2_keywords (>= 0.0.5)
msgpack (1.7.2)
mutex_m (0.2.0)
net-imap (0.4.13)
net-imap (0.4.14)
date
net-protocol
net-pop (0.1.2)
Expand All @@ -170,11 +174,11 @@ GEM
method_source (~> 1.0)
psych (5.1.2)
stringio
public_suffix (5.1.1)
public_suffix (6.0.0)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.8.0)
rack (3.1.3)
rack (3.1.4)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
Expand Down Expand Up @@ -222,10 +226,24 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-changes (0.8.1)
git_diff_parser (~> 3.2)
rubocop (>= 1.0)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-faker (1.1.0)
faker (>= 2.12.0)
rubocop (>= 0.82.0)
rubocop-graphql (1.5.2)
rubocop (>= 0.90, < 2)
rubocop-i18n (3.0.0)
rubocop (~> 1.0)
rubocop-md (1.2.2)
rubocop (>= 1.0)
rubocop-mdsol (0.3.0)
rubocop (~> 1.0)
rubocop-migrations (0.1.0)
rubocop (>= 0.42.0)
rubocop-minitest (0.35.0)
Expand All @@ -243,6 +261,9 @@ GEM
rubocop (~> 1.0)
rubocop-rspec (3.0.1)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
rubocop-shopify (2.15.1)
rubocop (~> 1.51)
rubocop-sorbet (0.8.3)
Expand All @@ -253,11 +274,12 @@ GEM
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
safe_yaml (1.0.5)
sanitize_email (2.0.6)
sanitize_email (2.0.7)
mail (~> 2.0)
version_gem (~> 1.1, >= 1.1.4)
selenium-webdriver (4.21.1)
selenium-webdriver (4.22.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
Expand All @@ -278,6 +300,18 @@ GEM
activesupport (>= 6.1)
sprockets (>= 3.0.0)
sqlite3 (2.0.2-x86_64-darwin)
standard (1.39.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.64.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.4)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.4.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.21.0)
stimulus-rails (1.3.3)
railties (>= 6.0.0)
stringio (3.1.1)
Expand Down Expand Up @@ -344,14 +378,21 @@ DEPENDENCIES
rdoc
rollbar
rubocop
rubocop-capybara
rubocop-changes
rubocop-factory_bot
rubocop-faker
rubocop-graphql
rubocop-i18n
rubocop-md
rubocop-mdsol
rubocop-migrations
rubocop-minitest
rubocop-performance
rubocop-rails
rubocop-rake
rubocop-rspec
rubocop-rspec_rails
rubocop-shopify
rubocop-sorbet
rubocop-thread_safety
Expand All @@ -362,6 +403,7 @@ DEPENDENCIES
simplecov-cobertura
sprockets-rails
sqlite3
standard
stimulus-rails
turbo-rails
web-console
Expand Down
8 changes: 7 additions & 1 deletion doc_generation/rubocop_doc/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"rubocop-minitest",
"rubocop-rake",
"rubocop-rspec",
"rubocop-i18n"
"rubocop-i18n",
"rubocop-faker",
"rubocop-factory_bot",
"rubocop-md",
"rubocop-mdsol",
"rubocop-rspec_rails",
"rubocop-capybara"
]

# frozen_string_literal: true
Expand Down
29 changes: 29 additions & 0 deletions docs/description/Capybara_ClickLinkOrButtonStyle.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions docs/description/Capybara_CurrentPathExpectation.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions docs/description/Capybara_MatchStyle.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions docs/description/Capybara_NegationMatcher.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions docs/description/Capybara_RSpec_HaveSelector.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions docs/description/Capybara_RSpec_PredicateMatcher.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 103916c

Please sign in to comment.