Recent Changes - Search:
ECG Home

GitHub

People

Publications

Calendar

Projects

Fall 2017

Older Courses

Spring 2017

Fall 2016

Spring 2016

Fall 2015

Spring 2015

Fall 2014

Spring 2014

Fall 2013

Spring 2013

Fall 2012

Spring 2012

Fall 2011

Spring 2011

Fall 2010

Spring 2010

Fall 2009

Spring 2009

Fall 2008

Spring 2008

Fall 2007

HOWTOs

edit SideBar

PSx

Home Assignments Lecture Blog Resources Discussion Group

Refactor and cpplint

This assignment is an opportunity to make up lost points on a prior assignment, and to gain experience using Google's cpplint code style tool.

The assignment

  • Pick any prior assignment
  • Get all code files to pass the tests done by cpplint
  • Package them up and submit

cpplint

Google's style guide is here: http://google-styleguide.googlecode.com/svn/trunk/cppguide.html

The cpplint.py file can be retrieved from http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py

Save the cpplint.py file on your machine, and then:

chmod +x cpplint.py
sudo mv cpplint.py /usr/local/bin

Now, you can style-check a file using cpplint.py as an executable:

cpplint.py filename

Alternately, you could run it using Python:

python cpplint.py filename

Using cpplint

We've agreed to turn off certain warnings. At present, you may run with:

cpplint.py --filter=-runtime/references,-build/header_guard --extensions=cpp,hpp

Package your work

  1. Put your files in the subdirectory called psx.
  2. Create a file called psx-readme.txt. The first line of this file must contain the name of the assignment, by itself, e.g. ps1 or ps3b. In the rest of the file, explain which changes you made to the original homework.
  3. Use the tar command from the parent directory of your psx to compress your directory structure:
tar czvf <archive-file-name>.tar.gz psx

Submit your work

Submit via Bottlenose as follows:
Martin section (201): https://grader.cs.uml.edu/assignments/492
Grinberg section (202): https://grader.cs.uml.edu/assignments/491

Edit - History - Print - Recent Changes - Search
Page last modified on March 20, 2015, at 02:58 PM