Skip to content

Instantly share code, notes, and snippets.

@kristianhellquist
Created April 16, 2013 10:54
Show Gist options
  • Save kristianhellquist/5395050 to your computer and use it in GitHub Desktop.
Save kristianhellquist/5395050 to your computer and use it in GitHub Desktop.
Check model pressroom with rubocop
rubocop app/models/pressroom.rb
== app/models/pressroom.rb ==
C: 1: Missing encoding comment.
C: 26: Ruby 1.8 hash syntax detected
C: 26: Ruby 1.8 hash syntax detected
C: 27: Ruby 1.8 hash syntax detected
C: 27: Ruby 1.8 hash syntax detected
C: 40: Ruby 1.8 hash syntax detected
C: 42: Ruby 1.8 hash syntax detected
C: 42: Line is too long. [90/79]
C: 57: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 57: Ruby 1.8 hash syntax detected
C: 57: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 57: Ruby 1.8 hash syntax detected
C: 58: Ruby 1.8 hash syntax detected
C: 58: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 58: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 58: Ruby 1.8 hash syntax detected
C: 68: Ruby 1.8 hash syntax detected
C: 69: Ruby 1.8 hash syntax detected
C: 71: Ruby 1.8 hash syntax detected
C: 72: Ruby 1.8 hash syntax detected
C: 73: Ruby 1.8 hash syntax detected
C: 75: Ruby 1.8 hash syntax detected
C: 77: Ruby 1.8 hash syntax detected
C: 77: Ruby 1.8 hash syntax detected
C: 77: Line is too long. [169/79]
C: 77: Ruby 1.8 hash syntax detected
C: 77: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 77: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 77: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 79: Ruby 1.8 hash syntax detected
C: 79: Line is too long. [105/79]
C: 79: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 79: Ruby 1.8 hash syntax detected
C: 79: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 79: Ruby 1.8 hash syntax detected
C: 80: Ruby 1.8 hash syntax detected
C: 80: Ruby 1.8 hash syntax detected
C: 80: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 81: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 81: Ruby 1.8 hash syntax detected
C: 81: Line is too long. [85/79]
C: 81: Ruby 1.8 hash syntax detected
C: 84: Ruby 1.8 hash syntax detected
C: 85: Line is too long. [102/79]
C: 85: Ruby 1.8 hash syntax detected
C: 86: Ruby 1.8 hash syntax detected
C: 86: Ruby 1.8 hash syntax detected
C: 87: Ruby 1.8 hash syntax detected
C: 87: Ruby 1.8 hash syntax detected
C: 87: Ruby 1.8 hash syntax detected
C: 87: Line is too long. [94/79]
C: 88: Ruby 1.8 hash syntax detected
C: 88: Ruby 1.8 hash syntax detected
C: 88: Ruby 1.8 hash syntax detected
C: 88: Line is too long. [100/79]
C: 90: Ruby 1.8 hash syntax detected
C: 91: Ruby 1.8 hash syntax detected
C: 94: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 94: Ruby 1.8 hash syntax detected
C: 95: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 95: Ruby 1.8 hash syntax detected
C: 96: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 96: Ruby 1.8 hash syntax detected
C: 98: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 98: Ruby 1.8 hash syntax detected
C: 99: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C: 99: Ruby 1.8 hash syntax detected
C:100: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:100: Ruby 1.8 hash syntax detected
C:109: Ruby 1.8 hash syntax detected
C:110: Ruby 1.8 hash syntax detected
C:112: Ruby 1.8 hash syntax detected
C:114: Ruby 1.8 hash syntax detected
C:114: Ruby 1.8 hash syntax detected
C:125: Ruby 1.8 hash syntax detected
C:127: Ruby 1.8 hash syntax detected
C:127: Line is too long. [99/79]
C:127: Ruby 1.8 hash syntax detected
C:127: Ruby 1.8 hash syntax detected
C:128: Ruby 1.8 hash syntax detected
C:128: Ruby 1.8 hash syntax detected
C:130: Ruby 1.8 hash syntax detected
C:130: Line is too long. [90/79]
C:130: Ruby 1.8 hash syntax detected
C:131: Ruby 1.8 hash syntax detected
C:132: Ruby 1.8 hash syntax detected
C:132: Ruby 1.8 hash syntax detected
C:133: Ruby 1.8 hash syntax detected
C:133: Line is too long. [109/79]
C:133: Ruby 1.8 hash syntax detected
C:135: Line is too long. [118/79]
C:138: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:143: Ruby 1.8 hash syntax detected
C:143: Line is too long. [109/79]
C:155: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:159: Line is too long. [121/79]
C:159: Ruby 1.8 hash syntax detected
C:165: Ruby 1.8 hash syntax detected
C:165: Ruby 1.8 hash syntax detected
C:166: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:173: Line is too long. [103/79]
C:174: Line is too long. [126/79]
C:182: Line is too long. [136/79]
C:187: Ruby 1.8 hash syntax detected
C:187: Line is too long. [86/79]
C:187: Ruby 1.8 hash syntax detected
C:199: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:199: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:227: Ruby 1.8 hash syntax detected
C:227: Ruby 1.8 hash syntax detected
C:227: Line is too long. [97/79]
C:228: Ruby 1.8 hash syntax detected
C:234: Line is too long. [96/79]
C:242: Ruby 1.8 hash syntax detected
C:260: Line is too long. [116/79]
C:260: Ruby 1.8 hash syntax detected
C:260: Ruby 1.8 hash syntax detected
C:260: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:261: Ruby 1.8 hash syntax detected
C:274: Line is too long. [113/79]
C:275: Line is too long. [86/79]
C:280: Surrounding space missing for '{'.
C:280: Avoid using {...} for multi-line blocks.
C:297: Line is too long. [156/79]
C:301: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:301: Surrounding space missing for '{'.
C:301: Ruby 1.8 hash syntax detected
C:305: Ruby 1.8 hash syntax detected
C:305: Ruby 1.8 hash syntax detected
C:309: Line is too long. [81/79]
C:309: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:313: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:314: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:344: Line is too long. [99/79]
C:345: Ruby 1.8 hash syntax detected
C:382: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:414: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:414: Line is too long. [80/79]
C:431: Prefer find over detect.
C:431: Prefer find over detect.
C:452: Never use unless with else. Rewrite these with the positive case first.
C:456: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:464: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:482: Prefer map over collect.
C:482: Line is too long. [105/79]
C:486: Line is too long. [134/79]
C:496: Line is too long. [81/79]
C:500: Line is too long. [89/79]
C:508: Avoid using {...} for multi-line blocks.
C:508: Surrounding space missing for '{'.
C:525: Line is too long. [83/79]
C:526: Line is too long. [94/79]
C:527: Line is too long. [84/79]
C:531: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:533: Line is too long. [110/79]
C:563: Avoid using {...} for multi-line blocks.
C:563: Surrounding space missing for '{'.
C:565: Space missing after comma.
C:575: Avoid using {...} for multi-line blocks.
C:575: Surrounding space missing for '{'.
C:577: Space missing after comma.
C:589: Space missing after comma.
C:589: Surrounding space missing for '{'.
C:589: Space missing after comma.
C:608: Line is too long. [81/79]
C:615: Ruby 1.8 hash syntax detected
C:644: Line is too long. [80/79]
C:645: Surrounding space missing for operator '+'.
C:645: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:650: Ruby 1.8 hash syntax detected
C:650: Line is too long. [106/79]
C:659: Line is too long. [119/79]
C:659: Ruby 1.8 hash syntax detected
C:665: Ruby 1.8 hash syntax detected
C:665: Line is too long. [127/79]
C:674: Line is too long. [102/79]
C:674: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:674: Prefer map over collect.
C:678: Line is too long. [107/79]
C:695: Indent when as deep as case.
C:695: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:696: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:698: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:700: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:700: Prefer single-quoted strings when you don't need string interpolation or special symbols.
C:705: Line is too long. [84/79]
C:705: Surrounding space missing for '{'.
C:707: Prefer single-quoted strings when you don't need string interpolation or special symbols.
1 files inspected, 188 offences detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment