Last active
August 29, 2015 14:03
-
-
Save komagata/fffd62797f993040dc9b to your computer and use it in GitHub Desktop.
output from rubocop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rubocop | |
Inspecting 1 file | |
C | |
Offenses: | |
ideone_bMhhHk.rb:2:1: C: Use snake_case for source file names. | |
# -*- encoding: utf-8 -*- | |
^ | |
ideone_bMhhHk.rb:5:3: C: Replace class var @@id_cnt with a class instance var. | |
@@id_cnt = 0 | |
^^^^^^^^ | |
ideone_bMhhHk.rb:6:37: C: Use only ascii symbols in comments. | |
BEARABLE = [0, 0, 0, 0.5, 0.7, 1] # 実る確率の推移(0-5歳迄、以降100%) | |
^^^^^^^^^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:7:37: C: Use only ascii symbols in comments. | |
DIEABLE = [0.1, 0.2, 0.3, 0.5] # 木の死ぬ確率(60-90年代迄、以前0.2%、以降90%) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:8:37: C: Use only ascii symbols in comments. | |
TWEETS = [ # 怒りの台詞集 | |
^^^^^^^^ | |
ideone_bMhhHk.rb:11:5: C: Prefer single-quoted strings when you don't need string interpolation or special symbols. | |
"I must have been crazy to have piched my orange!", | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:12:5: C: Prefer single-quoted strings when you don't need string interpolation or special symbols. | |
"You get what you go for, kid!" | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:15:3: C: Use only ascii symbols in comments. | |
# 初期化 | |
^^^^^ | |
ideone_bMhhHk.rb:17:30: C: Use only ascii symbols in comments. | |
@id = @@id_cnt # 木のID | |
^^^^^^ | |
ideone_bMhhHk.rb:18:30: C: Use only ascii symbols in comments. | |
@age = 0 # 木の年齢 | |
^^^^^^ | |
ideone_bMhhHk.rb:19:30: C: Use only ascii symbols in comments. | |
@height = 0 # 木の高さ(m) | |
^^^^^^^^^ | |
ideone_bMhhHk.rb:20:5: C: Use snake_case for variables. | |
@orangeCount = 0 # オレンジの数 | |
^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:20:30: C: Use only ascii symbols in comments. | |
@orangeCount = 0 # オレンジの数 | |
^^^^^^^^ | |
ideone_bMhhHk.rb:21:5: C: Use snake_case for variables. | |
@isLiving = true # 生死確認 | |
^^^^^^^^^ | |
ideone_bMhhHk.rb:21:30: C: Use only ascii symbols in comments. | |
@isLiving = true # 生死確認 | |
^^^^^^ | |
ideone_bMhhHk.rb:25:5: C: Replace class var @@id_cnt with a class instance var. | |
@@id_cnt += 1 | |
^^^^^^^^ | |
ideone_bMhhHk.rb:28:3: C: Use only ascii symbols in comments. | |
# 1年経過 | |
^^^^^^ | |
ideone_bMhhHk.rb:29:7: C: Use snake_case for methods. | |
def oneYearPasses | |
^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:32:5: C: Use only ascii symbols in comments. | |
# 死んでいる、もしくは死んだ場合 | |
^^^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:34:7: C: Use snake_case for variables. | |
@isLiving = false | |
^^^^^^^^^ | |
ideone_bMhhHk.rb:39:5: C: Use only ascii symbols in comments. | |
# 生きてる場合 | |
^^^^^^^^ | |
ideone_bMhhHk.rb:43:5: C: Use only ascii symbols in comments. | |
# 1年後の姿を報告 | |
^^^^^^^^^^ | |
ideone_bMhhHk.rb:48:3: C: Use only ascii symbols in comments. | |
# オレンジを摘む | |
^^^^^^^^^ | |
ideone_bMhhHk.rb:49:7: C: Use snake_case for methods. | |
def pitchAnOrange | |
^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:54:5: C: Use snake_case for variables. | |
@orangeCount -= 1 | |
^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:55:1: C: Trailing whitespace detected. | |
ideone_bMhhHk.rb:59:3: C: Use only ascii symbols in comments. | |
# 身長を告げる | |
^^^^^^^^ | |
ideone_bMhhHk.rb:64:3: C: Use only ascii symbols in comments. | |
# 年齢を告げる | |
^^^^^^^^ | |
ideone_bMhhHk.rb:65:7: C: Use snake_case for methods. | |
def sayAnAge | |
^^^^^^^^ | |
ideone_bMhhHk.rb:69:3: C: Use only ascii symbols in comments. | |
# 実ったオレンジの数を告げる | |
^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:70:7: C: Use snake_case for methods. | |
def countTheOrange | |
^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:74:3: C: Use only ascii symbols in comments. | |
# 死後のメッセージを告げる | |
^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:81:3: C: Use only ascii symbols in comments. | |
# 指定日数経過 | |
^^^^^^^^ | |
ideone_bMhhHk.rb:82:3: C: Use only ascii symbols in comments. | |
# @param [Integer] days 経過させる日数 | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:83:12: C: Use def with parentheses when there are parameters. | |
def grow days | |
^^^^ | |
ideone_bMhhHk.rb:94:5: C: Use snake_case for variables. | |
@orangeCount = @age > 2? | |
^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:94:20: C: Avoid multi-line ?: (the ternary operator); use if/unless instead. | |
@orangeCount = @age > 2? | |
^^^^^^^^^ | |
ideone_bMhhHk.rb:94:28: C: Surrounding space missing for operator '?'. | |
@orangeCount = @age > 2? | |
^ | |
ideone_bMhhHk.rb:99:3: C: Use only ascii symbols in comments. | |
# 死亡確認 | |
^^^^^^ | |
ideone_bMhhHk.rb:100:3: C: Use only ascii symbols in comments. | |
# @return [Boolean] 死んでいればtrue、生きていればfalse | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ideone_bMhhHk.rb:108:33: C: Surrounding space missing for operator '-'. | |
probabillity = DIEABLE[gen-6] | |
^ | |
ideone_bMhhHk.rb:119:1: C: Prefer each over for. | |
for i in 0..100 | |
^^^ | |
ideone_bMhhHk.rb:122:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols. | |
puts "" | |
^^ | |
ideone_bMhhHk.rb:123:4: C: Final newline missing. | |
end | |
1 file inspected, 44 offenses detected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment