File tree Expand file tree Collapse file tree 16 files changed +495
-0
lines changed Expand file tree Collapse file tree 16 files changed +495
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; Indicate this is the root of the project.
2
+ root = true
3
+
4
+ [* ]
5
+ indent_size = 2
6
+ indent_style = space
7
+ insert_final_newline = true
8
+ trim_trailing_whitespace = true
9
+
10
+ [* .{html,js,md,rb} ]
11
+ charset = utf-8
12
+
13
+ [* .{md,txt} ]
14
+ max_line_length = 80
Original file line number Diff line number Diff line change
1
+ # Backup files
2
+ * .skb
3
+ AutoSave_ * .skp
4
+ Backup of * .layout
5
+
6
+ # Archives
7
+ * .rbz
8
+
9
+ # RuboCop
10
+ .rubocop-https- * -yml
11
+
12
+ # YARD
13
+ /.yardoc
14
+ /doc
15
+
16
+ # SimpleCov
17
+ /coverage
18
+
19
+ # Bundler
20
+ Gemfile.lock
21
+
22
+ /assets
Original file line number Diff line number Diff line change
1
+ require : rubocop-sketchup
2
+
3
+ # If you want to use the same codding pattern as SketchUp's projects, enable
4
+ # the next line. RuboCop will then use the coding pattern from the
5
+ # rubocop-sketchup project. This coding pattern is a more relaxed version than
6
+ # the default RuboCop pattern.
7
+ # inherit_from: https://raw.githubusercontent.com/SketchUp/rubocop-sketchup/main/sketchup-style.yml
8
+
9
+ AllCops :
10
+ # This prevents normal RuboCop cops to run. Disable this to get full static
11
+ # analysis of your Ruby code.
12
+ DisabledByDefault : true
13
+
14
+ DisplayCopNames : true
15
+ DisplayStyleGuide : true
16
+ ExtraDetails : true
17
+ Exclude :
18
+ - src/*/vendor/**/* # Exclude skippy vendor folder
19
+ SketchUp :
20
+ SourcePath : src
21
+ TargetSketchUpVersion : 2017
22
+ Exclude : # Exclude common folders.
23
+ - profiling/
24
+ - skippy/
25
+ - tests/
26
+ TargetRubyVersion : 2.2
27
+
28
+
29
+ # If DisabledByDefault is set to true then we need to enable the SketchUp
30
+ # related departments:
31
+
32
+ SketchupDeprecations :
33
+ Enabled : true
34
+
35
+ SketchupPerformance :
36
+ Enabled : true
37
+
38
+ SketchupRequirements :
39
+ Enabled : true
40
+
41
+ SketchupSuggestions :
42
+ Enabled : true
43
+
44
+ SketchupBugs :
45
+ Enabled : true
46
+
47
+
48
+ # This generator makes some assumptions about the model structure.
49
+ SketchupSuggestions/ModelEntities :
50
+ Enabled : false
51
+
52
+ # This is a Trimble project, so we can use the Trimble namespace.
53
+ SketchupRequirements/ShippedExtensionsNamespace :
54
+ Enabled : false
Original file line number Diff line number Diff line change
1
+ require_paths :
2
+ - " C:/Program Files/SketchUp/SketchUp 2022/Tools"
3
+ - src
4
+
5
+ require :
6
+ - sketchup-api-stubs
7
+
8
+ reporters :
9
+ - rubocop
Original file line number Diff line number Diff line change
1
+ {
2
+ // See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3
+ // Extension identifier format: ${publisher }.${name}. Example: vscode.csharp
4
+ // List of extensions which should be recommended for users of this workspace.
5
+ "recommendations" : [
6
+ // Spell checking code and comments are important.
7
+ " streetsidesoftware.code-spell-checker" ,
8
+
9
+ // Will make VSCode pick up .editorconfig.
10
+ " editorconfig.editorconfig" ,
11
+
12
+ // Essential for Ruby syntax highlighting and debugging.
13
+ " rebornix.ruby" ,
14
+
15
+ // For code insight and auto-complete.
16
+ " castwide.solargraph"
17
+ ],
18
+ // List of extensions recommended by VS Code that should not be recommended for users of this workspace.
19
+ "unwantedRecommendations" : []
20
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+
8
+ {
9
+ "name" : " Listen for rdebug-ide" ,
10
+ "type" : " Ruby" ,
11
+ "request" : " attach" ,
12
+ "cwd" : " ${workspaceRoot}" ,
13
+ "remoteHost" : " 127.0.0.1" ,
14
+ "remotePort" : " 7000" ,
15
+ "remoteWorkspaceRoot" : " ${workspaceRoot}"
16
+ }
17
+ ]
18
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "solargraph.diagnostics" : true ,
3
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
3
+ // for the documentation about the tasks.json format
4
+ "version" : " 2.0.0" ,
5
+ "tasks" : [
6
+ {
7
+ "label" : " Launch SketchUp in Ruby debug mode" ,
8
+ "type" : " shell" ,
9
+ "command" : " skippy" ,
10
+ "args" : [
11
+ " sketchup:debug" ,
12
+ " ${input:sketchupVersion}"
13
+ ],
14
+ "runOptions" : {
15
+ "reevaluateOnRerun" : false
16
+ },
17
+ "problemMatcher" : []
18
+ }
19
+ ],
20
+ "inputs" : [
21
+ {
22
+ "id" : " sketchupVersion" ,
23
+ "type" : " pickString" ,
24
+ "description" : " SketchUp Version" ,
25
+ "options" : [
26
+ " 2021" ,
27
+ " 2020" ,
28
+ " 2019" ,
29
+ " 2018" ,
30
+ " 2017"
31
+ ],
32
+ "default" : " 2021"
33
+ }
34
+ ]
35
+ }
Original file line number Diff line number Diff line change
1
+ --private
2
+ --markup markdown
3
+ --markup-provider commonmarker
4
+ src/**/*.rb
5
+ -
6
+ README.md
Original file line number Diff line number Diff line change
1
+ source 'https://rubygems.org'
2
+
3
+ group :development do
4
+ gem 'debase' , '~> 0.2' # VSCode debugging
5
+ gem 'ruby-debug-ide' , '~> 0.7' # VSCode debugging
6
+ gem 'sketchup-api-stubs' # VSCode SketchUp API insight
7
+ gem 'skippy' , '~> 0.5.1.a'
8
+ gem 'solargraph' # VSCode IDE support
9
+ end
10
+
11
+ group :documentation do
12
+ gem 'commonmarker' , '~> 0.23'
13
+ gem 'yard' , '~> 0.9'
14
+ end
15
+
16
+ group :analysis do
17
+ gem 'rubocop' , '>= 1.30' , '< 2.0'
18
+ gem 'rubocop-sketchup' , '~> 1.3.0'
19
+ end
You can’t perform that action at this time.
0 commit comments