Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed May 17, 2024
1 parent 399f5ab commit 36dbdf3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: lumaxis/shellcheck-problem-matchers@v1
with:
format: gcc
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: --format=gcc
- uses: actions/checkout@v3
- uses: lumaxis/shellcheck-problem-matchers@v1
with:
format: gcc
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: --format=gcc

rubocop:
runs-on: ubuntu-latest
Expand All @@ -26,7 +26,7 @@ jobs:
with:
ruby-version: 2.7
- run: gem install rubocop --no-doc
- run: rubocop --format progress --format json --out rubocop.json
- run: rubocop --display-cop-names --format progress --format json --out rubocop.json
- uses: duderman/[email protected]
with:
path: rubocop.json
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ module Rake
default_path = Dir.glob('/etc/paths{,.d/*}')
.flat_map { |f| File.read(f).strip.split("\n") }

if File.exist?('/etc/environment')
default_path += File.read('/etc/environment')[/PATH=(?:"([^"]+)"|'([^']+)')/, 1]&.split(File::PATH_SEPARATOR) || []
if File.exist?('/etc/environment') && (path = File.read('/etc/environment')[/PATH=(?:"([^"]+)"|'([^']+)')/, 1])
default_path += path.split(File::PATH_SEPARATOR)
end

if default_path.empty?
Expand Down
6 changes: 3 additions & 3 deletions lib/tasks/brew.rake
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ namespace :brew do
'yq' => {},
}.freeze

wanted_formulae = wanted_formulae.merge({
wanted_formulae = wanted_formulae.merge(
'duti' => {},
'imageoptim-cli' => {},
'lockscreen' => {},
Expand All @@ -221,7 +221,7 @@ namespace :brew do
'tag' => {},
'telnet' => {},
'terminal-notifier' => {},
}).freeze if macos?
).freeze if macos?

wanted_formulae = wanted_formulae.merge(wanted_fonts).freeze if linux?

Expand Down Expand Up @@ -372,7 +372,7 @@ namespace :brew do
}.uniq
}

dependency_graph.each do |key, _|
dependency_graph.each_key do |key|
dependency_graph[key] = recursive_dependencies.call(key)
end

Expand Down
6 changes: 3 additions & 3 deletions lib/tasks/zed.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ require 'json'
task :zed => [:'brew:casks_and_formulae'] do
zed_config = Pathname('~/.config/zed/settings.json').expand_path

zed_config.write JSON.pretty_generate({
zed_config.write JSON.pretty_generate(
'theme' => 'Solarized Dark',
'telemetry' => {
'metrics' => false
},
'buffer_font_size' => 13,
'buffer_font_family' => 'SauceCodePro Nerd Font Mono',
'seed_search_query_from_cursor' => 'never',
})
'seed_search_query_from_cursor' => 'never',
)
end

0 comments on commit 36dbdf3

Please sign in to comment.