This repository has been archived by the owner on May 2, 2024. It is now read-only.
Fix user create conditional #13
GitHub Actions / StandardRB
failed
Jan 18, 2024 in 0s
StandardRB
4 offense(s) found
Annotations
Check failure on line 69 in app/models/record.rb
github-actions / StandardRB
app/models/record.rb#L69
Do not write to stdout. Use Rails's logger if you want to log.
Check failure on line 95 in app/models/record.rb
github-actions / StandardRB
app/models/record.rb#L95
Use `update!` instead of `update` if the return value is not checked.
Check failure on line 95 in app/models/record.rb
github-actions / StandardRB
app/models/record.rb#L95
Do not use `Time.now` without zone. Use one of `Time.zone.now`, `Time.current`, `Time.now.in_time_zone`, `Time.now.utc`, `Time.now.getlocal`, `Time.now.xmlschema`, `Time.now.iso8601`, `Time.now.jisx0301`, `Time.now.rfc3339`, `Time.now.httpdate`, `Time.now.to_i`, `Time.now.to_f` instead.
Check failure on line 114 in app/models/record.rb
github-actions / StandardRB
app/models/record.rb#L112-L114
Prefer `each` over `for`.
Loading