Skip to content
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

Pronto and Linters #314

Merged
merged 7 commits into from
Apr 4, 2024
Merged

Pronto and Linters #314

merged 7 commits into from
Apr 4, 2024

Conversation

damisul
Copy link
Collaborator

@damisul damisul commented Apr 2, 2024

Added rubocop and haml_lint linters.
Configured GithubActions to use them via pronto.

Pronto is a tool which allows linter checks to be run only on diffs changed in given PR/commit. Without this rubocop (and other linters) would checked whole project every time.

NOTE: to build pronto we need additional development time dependency: 'cmake'.
Just use

apt-get install cmake

@damisul damisul force-pushed the linters branch 5 times, most recently from ecada5e to e3ee79a Compare April 2, 2024 13:33
@damisul damisul changed the title Linters Pronto and Linters Apr 2, 2024
… github action.

Added intentional violation to trigger rubocop warning for test
@@ -1,3 +1,5 @@
ruby '3.2.1'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/FrozenStringLiteralComment: Missing frozen string literal comment.

@@ -4,7 +4,7 @@
include_context 'API Spec Helpers'

describe 'GET api/v1/people/{id}' do
let(:detail) { 'metadata' }
let(:detail) { "metadata" }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

@damisul damisul marked this pull request as ready for review April 2, 2024 14:26
@damisul damisul linked an issue Apr 2, 2024 that may be closed by this pull request
@damisul damisul requested a review from abartov April 2, 2024 16:31
@abartov abartov merged commit 6370447 into master Apr 4, 2024
7 checks passed
@abartov abartov deleted the linters branch April 4, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add linters to the project.
2 participants