Hi Dan, I’m Al’s brother.
It sure looks to me like everything in our extension follows the recommendations.
Also, as a test, if I make a new folder and put the sample “nn_cuber_maker” files in it from:
https://ruby.sketchup.com/file.extension_requirements.html
nn_cuber_maker.rb
nn_cuber_maker\main.rb
nn_cuber_maker.rb
module NameyNamesson
module CubeMaker
EXTENSION = SketchupExtension.new(“NN Cube Maker”, “nn_cube_maker/main”)
EXTENSION.creator = “Namey Namesson”
EXTENSION.description = “Make cubes in just a few clicks.”
EXTENSION.version = “1.0.0”
EXTENSION.copyright = “2023 Name Namesson”
Sketchup.register_extension(EXTENSION, true)
end
end
nn_cuber_maker/main.rb
module NameyNamesson
module CubeMaker
# Code goes here…
end
end
I still get the same Offense when I run:
rubocop -r rubocop-sketchup --only SketchupRequirements,SketchupDeprecations
in that folder.
I get this:
Inspecting 2 files
E.
Offenses:
nn_cuber_maker.rb:1:1: E: SketchupRequirements/FileStructure: Extensions must have exactly one root Ruby (.rb) file. Found: 0
nn_cuber_maker.rb
^
2 files inspected, 1 offense detected
Note:I did remove the “.rb” file extension from the line:
EXTENSION = SketchupExtension.new(“NN Cube Maker”, "nn_cube_maker/main.rb)
so that Ii wouldn’t get an additional offense about not hard-coding the ruby file name extension.
So I suspect that I’m simply running rubocop wrong, or I have the wrong version of something…
I’m an absolute newbie to trying to use rubocop.