Permalink
Browse files

fix a bug or two in previous pull request + bump version

  • Loading branch information...
1 parent b3e5fa5 commit 5e252e17f949337c59d2b1a608231a066bd71958 @robbywalker robbywalker committed Jul 1, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 setup.py
  2. +1 −1 src/ocstyle/main_test.py
  3. +1 −1 src/ocstyle/rules.py
View
4 setup.py
@@ -22,7 +22,7 @@
setup(name='ocstyle',
- version='0.1',
+ version='0.1.1',
description='Objective-C style checker',
author='Cue Technologies, Inc.',
url='https://www.github.com/Cue/ocstyle',
@@ -33,7 +33,7 @@
install_requires=[
'parcon==0.1.25'
],
- entry_points = {
+ entry_points={
'console_scripts': [
'ocstyle = ocstyle.main:main'
]
View
2 src/ocstyle/main_test.py
@@ -71,7 +71,7 @@ def testSampleFiles(self):
errors = []
badParse = []
with pkg_resources.resource_stream('ocstyle', os.path.join('testdata', filename)) as f:
- result = main.checkFile(filename, f)
+ result = main.checkFile(filename, f, 120)
for part in result:
if isinstance(part, basestring):
badParse.append(part)
View
2 src/ocstyle/rules.py
@@ -51,7 +51,7 @@ def setupLines(content, maxLineLength):
lineLength = LINES[lineNo] - LINES[lineNo - 1] - 1 # Remove the \n character.
if lineLength > maxLineLength:
errors.append(Error(
- 'LineTooLong', 'Line too long: %d chars over the %d limit' % (lineLength, MAX_LINE_LENGTH),
+ 'LineTooLong', 'Line too long: %d chars over the %d limit' % (lineLength, maxLineLength),
LINES[lineNo], LINES))
return errors

0 comments on commit 5e252e1

Please sign in to comment.