Skip to content

Commit e7ed9b9

Browse files
committed
Initial commit.
0 parents  commit e7ed9b9

File tree

16 files changed

+495
-0
lines changed

16 files changed

+495
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

.rubocop.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

.solargraph.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

.vscode/extensions.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"solargraph.diagnostics": true,
3+
}

.vscode/tasks.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
}

.yardopts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--private
2+
--markup markdown
3+
--markup-provider commonmarker
4+
src/**/*.rb
5+
-
6+
README.md

Gemfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

0 commit comments

Comments
 (0)