Skip to content

Commit

Permalink
Standardize on StandardRB
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysonvirissimo committed Aug 11, 2024
1 parent be973c7 commit ca08760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ jobs:
bundler-cache: true
- name: Install dependencies
run: |
gem install rubocop
gem install jsonlint
bundle install
- name: Lint Ruby
run: rubocop
run: bundle exec standardrb
- name: Lint JSON
run: jsonlint data/dictionary.json
run: bundle exec jsonlint data/dictionary.json
13 changes: 3 additions & 10 deletions bin/lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@ set -euo pipefail
IFS=$'\n\t'
set -vx

# Run StandardRB to lint and auto-fix Ruby files
# Run StandardRB to lint Ruby files
echo "Linting Ruby files with StandardRB..."
standardrb --fix

# Check if jsonlint is installed
if ! command -v jsonlint &> /dev/null
then
echo "jsonlint could not be found. Installing..."
gem install jsonlint
fi
bundle exec standardrb

# Run jsonlint to check the dictionary.json file
echo "Linting dictionary.json with jsonlint..."
jsonlint data/dictionary.json
bundle exec jsonlint data/dictionary.json

echo "Linting completed."

0 comments on commit ca08760

Please sign in to comment.