Skip to content

Commit

Permalink
add OOC_LINE_LENGTH
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Dec 26, 2010
1 parent c7e441b commit b6c7f1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -7,6 +7,7 @@ TESTS:= \
CamelCase \
Parentheses \

export OOC_LINE_LENGTH=120

all:
prove --exec="rock -r -sourcepath=../ooc-codingstd/source" $(TESTS)
Expand Down
4 changes: 3 additions & 1 deletion source/LineLength.ooc
@@ -1,10 +1,12 @@

import io/FileReader
import os/Env
import os/Process
import structs/ArrayList
import text/StringTokenizer

MAX := const 132
var := Env get("OOC_LINE_LENGTH")
MAX := const (var != null) ? var toInt() : 132

main: func(args: ArrayList<String>) {
progname := args removeAt(0)
Expand Down

0 comments on commit b6c7f1f

Please sign in to comment.