Extend scope of 'rubocop:apply'

This commit is contained in:
0x1eef 2024-04-25 04:16:57 -03:00
parent 55d61e67d8
commit 5429df0f12
8 changed files with 24 additions and 8 deletions

View file

@ -17,6 +17,8 @@ AllCops:
- lib/**/*.rb
- libexec/*
- libexec/*/**
- nanoc/rules/*
- nanoc/lib/*
- bin/*
- test/*
Exclude:

View file

@ -22,10 +22,14 @@ AllCops:
- lib/**/*.rb
- libexec/*
- libexec/*/**
- nanoc/rules/*
- nanoc/lib/*
- bin/*
- test/*
Exclude:
- src/css/vendor/tail.css/bin/*
- src/tmp/*
- src/tmp/**/*
##
# Enabled

View file

@ -21,7 +21,7 @@ class Twenty::Command::Connect < Twenty::Command
if File.exist?(path)
project = Twenty::Project.create(
name: File.basename(path),
path:,
path:
)
warn "[-] '#{project.name}' connected"
else

View file

@ -22,10 +22,14 @@ AllCops:
- lib/**/*.rb
- libexec/*
- libexec/*/**
- nanoc/rules/*
- nanoc/lib/*
- bin/*
- test/*
Exclude:
- src/css/vendor/tail.css/bin/*
- src/tmp/*
- src/tmp/**/*
##
# Enabled

View file

@ -1,7 +1,7 @@
PATH
remote: .
specs:
twenty-client (0.4.2)
twenty-client (0.4.3)
GEM
remote: https://rubygems.org/

View file

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
compile("/css/main.scss") do
filter(:sass, syntax: :scss)

View file

@ -1,16 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
components = {
'react-task' => ['tasks/new', 'tasks/edit'],
'react-tasks' => [ '/', 'tasks'],
'react-projects' => ['projects']
"react-task" => ["tasks/new", "tasks/edit"],
"react-tasks" => ["/", "tasks"],
"react-projects" => ["projects"]
}
components.each do |name, paths|
compile '/html/react.html.erb', rep: name do
compile "/html/react.html.erb", rep: name do
filter(:erb, locals: {name:, src: "/js/main.js"})
paths.each do |path|
path == "/" ? write("/index.html") : write("/#{path}/index.html")
(path == "/") ? write("/index.html") : write("/#{path}/index.html")
end
end
end

View file

@ -22,10 +22,14 @@ AllCops:
- lib/**/*.rb
- libexec/*
- libexec/*/**
- nanoc/rules/*
- nanoc/lib/*
- bin/*
- test/*
Exclude:
- src/css/vendor/tail.css/bin/*
- src/tmp/*
- src/tmp/**/*
##
# Enabled