Skip to content

Project/tooling folders (wrongly) assumed to be extension support directories #146

@asteinarson

Description

@asteinarson

In my VsCode project folder (for my SU extension) I get a Rubocop error: SketchupRequirements/FileStructure reported. When investigating, it shows this cop is finding the '.git/' and '.vscode/' folders and assuming them to be extension support folders.

I'm a bit confused about getting this error as I think many extension developers should be using git and/or VsCode.


Expected behavior

'.git/' and '.vscode/' do not contain Ruby files, and their existence should not raise errors as being additional extension support directories..

Actual behavior

They generate the error (I tested by modifying what the cop prints and have it print out the dir names it finds).

Steps to reproduce the problem

In a valid extension folder, run rubocop (without errors).
Then run 'git init'. Rubocop now gives a Sketchup error.

It is likely enough to create an empty directory and touch a 'file.txt' inside that.

RuboCop version

$ [bundle exec] bundle exec rubocop -V
0.93.0 (using Parser 2.7.2.0, rubocop-ast 1.3.0, running on ruby 2.7.0 x86_64-linux-gnu)

RuboCop SketchUp version

0.18

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions