Skip to content

Mixed tabs and spaces indentation when scanning whole directory #31

@foxycode

Description

@foxycode
  • bug report? yes
  • feature request? no
  • version: 2.6 - 2.8

Since version 2.6, I see error Mixed tabs and spaces indentation in lot of files. I checked carefully and there definitely isn't any tab at all, just spaces. Everything is working great on all projects with version 2.5.

I tried to run new version with single file and it's working great, but not with -d parameter on whole folder, even if there is only one file in that folder. Also trid php 5.6, 7.0 and 7.1. Result is same for all versions. I am using Ubuntu 16.04 and PHP from Ondřej Surý PPA.

$ php7.0 temp/code-checker/src/code-checker.php --short-arrays -d app/Router

CodeChecker version 2.8
-----------------------
Running in read-only mode
Scanning /home/app/Router
[ERROR]   RouterFactory.php:10    Mixed tabs and spaces indentation
Done.                                   

$ php7.0 temp/code-checker/src/code-checker.php --short-arrays -d app/Router/RouterFactory.php 

CodeChecker version 2.8
-----------------------
Running in read-only mode
Scanning /home/app/Router/RouterFactory.php
Done.

and RouterFactory:

<?php

namespace App\Router;

use Nette\Application\Routers\Route;
use Nette\Application\Routers\RouteList;

final class RouterFactory
{
    /**
     * @return RouteList
     */
    public static function createRouter()
    {
        Route::$defaultFlags = Route::SECURED;

        $router = new RouteList();

        $router[] = new Route('/AM/image.php?id=<id \d+>', 'BannerImage:default');
        $router[] = new Route('/sk/AM/image.php?id=<id \d+>', 'BannerImage:default');
        $router[] = new Route('/<presenter>/<action>[/<id>]', 'Homepage:default');

        return $router;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions