-
Notifications
You must be signed in to change notification settings - Fork 5
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
Pronto and Linters #314
Conversation
ecada5e
to
e3ee79a
Compare
… github action. Added intentional violation to trigger rubocop warning for test
@@ -1,3 +1,5 @@ | |||
ruby '3.2.1' |
There was a problem hiding this comment.
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.
spec/api/v1/people_api_spec.rb
Outdated
@@ -4,7 +4,7 @@ | |||
include_context 'API Spec Helpers' | |||
|
|||
describe 'GET api/v1/people/{id}' do | |||
let(:detail) { 'metadata' } | |||
let(:detail) { "metadata" } |
There was a problem hiding this comment.
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.
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