codeclimate / codeclimate-phpcodesniffer

Code Climate Engine for PHP Code Sniffer
MIT License
28 stars 23 forks source link

Change directory to `/code` #20

Closed BlakeWilliams closed 8 years ago

BlakeWilliams commented 8 years ago

The engine currently receives ["./"] as the default include_paths which breaks the current implementation of queueWithIncludePaths since it generates the invalid path /code/./.

Instead of building the path to /code each time we change the working directory to be /code so we can use relative paths. This means ./ points to /code instead of generating the invalid path.

pbrisbin commented 8 years ago

LGTM

BlakeWilliams commented 8 years ago

Thanks!