Skip to content

Commit f7a74ab

Browse files
committed
Deploy preview for PR 36 🛫
1 parent cbffe6f commit f7a74ab

5,922 files changed

Lines changed: 1128853 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
ExampleWithoutNameLinter:
3+
Enabled: false
4+
SingleTestBackgroundLinter:
5+
Enabled: false
6+
TestWithBadNameLinter:
7+
Enabled: false
8+
StepWithTooManyCharactersLinter:
9+
Enabled: false

‎pr-preview/pr-36/.envrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PATH_add bin
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/.bundle/
2+
/.byebug_history
3+
/.irb_history
4+
/.java-version
5+
/.karaf
6+
/.yardoc
7+
/cache/
8+
/coverage/
9+
/doc/
10+
/docs/yard/
11+
/lib/openhab/dsl/gems.locked
12+
/pkg/
13+
/spec/examples.txt
14+
/spec/reports/
15+
/tmp/
16+
/*.gem

‎pr-preview/pr-36/.known_good_references‎

Lines changed: 1154 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
default: true
2+
3+
# Expect dash usage for unordered lists
4+
MD004:
5+
style: dash
6+
7+
# Allow long line lengths
8+
MD013: false
9+
10+
# Allow duplicate headers for different nesting
11+
MD024:
12+
allow_different_nesting: true
13+
14+
# Allow Multiple top level headers in the same document
15+
MD025: false
16+
17+
# Ordered lists have all items as 1.
18+
MD029:
19+
style: one
20+
21+
# Allow inline HTML
22+
MD033: false
23+
24+
# Code block style
25+
MD046:
26+
style: fenced
27+
28+
# Emphasis in underscore
29+
MD049:
30+
style: underscore
31+
32+
# Strong in asterisk
33+
MD050:
34+
style: asterisk
35+
36+
# We check that links are valid ourselves
37+
MD051: false
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: https://github.com/mattlqx/pre-commit-ruby
3+
rev: v1.3.5
4+
hooks:
5+
- id: rubocop
6+
- repo: https://github.com/igorshubovych/markdownlint-cli
7+
rev: v0.33.0
8+
hooks:
9+
- id: markdownlint

‎pr-preview/pr-36/.rspec‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
inherit_gem:
2+
rubocop-inst:
3+
- rubocop.yml
4+
- rubocop-rspec.yml
5+
6+
plugins:
7+
- rubocop-rake
8+
- rubocop-rspec
9+
10+
inherit_mode:
11+
merge:
12+
- Exclude # we want our Exclude to build on the excludes from the default config
13+
14+
AllCops:
15+
TargetRubyVersion: 3.1
16+
NewCops: enable
17+
Exclude:
18+
- .yard/**/*
19+
- .yardoc/**/*
20+
- bin/**/*
21+
- cache/**/*
22+
- tmp/**/*
23+
24+
# The following is excluded because it is within the shipped Gem
25+
# the cop is searching for the gem itself, so exclude this file
26+
Bundler/GemFilename:
27+
Exclude:
28+
- lib/openhab/dsl/gems.rb
29+
30+
Layout/LineLength:
31+
AllowedPatterns:
32+
- "# @!method" # Some YARD tags can't be broken up onto multiple lines
33+
- "# @overload"
34+
- "# @example"
35+
- "# @see"
36+
- "data:[a-z/]+;base64," # Base64 data is long
37+
38+
Lint/RescueException:
39+
Enabled: false # we need to rescue Java exceptions quite a bit
40+
Lint/BinaryOperatorWithIdenticalOperands:
41+
Exclude:
42+
- spec/openhab/core/types/*_spec.rb
43+
44+
Naming/MethodName:
45+
Exclude:
46+
- lib/openhab/rspec/mocks/*.rb # These methods must match their Java names
47+
Naming/PredicateMethod:
48+
Exclude:
49+
- lib/openhab/rspec/mocks/*.rb # These methods must match their Java names
50+
51+
RSpec/DescribeClass:
52+
Enabled: false
53+
RSpec/ExpectActual:
54+
Exclude:
55+
- spec/openhab/core/types/*_spec.rb
56+
RSpec/SpecFilePathFormat:
57+
CustomTransform:
58+
OpenHAB: openhab
59+
RSpec/IdenticalEqualityAssertion:
60+
Exclude:
61+
- spec/openhab/core/types/*_spec.rb
62+
RSpec/IndexedLet:
63+
Enabled: false
64+
RSpec/MessageSpies:
65+
Enabled: false
66+
RSpec/MultipleExpectations:
67+
Enabled: false
68+
RSpec/MultipleMemoizedHelpers:
69+
Enabled: false
70+
RSpec/NestedGroups:
71+
Enabled: false
72+
RSpec/NoExpectationExample:
73+
Enabled: false
74+
RSpec/SubjectStub:
75+
Enabled: false
76+
77+
Style/CaseEquality:
78+
Exclude: # we're explicitly testing this operator
79+
- spec/openhab/core/types/*_spec.rb
80+
# enforced by checking for 100% documented from `yard --stats`
81+
# RuboCop doesn't know if a module is documented in a different file
82+
Style/Documentation:
83+
Enabled: false
84+
Style/GlobalVars:
85+
AllowedVariables: # these globals are set by OpenHAB, and we can't change their name
86+
- $actions
87+
- $ctx
88+
- $dependencyListener
89+
- $events
90+
- $ir
91+
- $rules
92+
- $privateCache
93+
- $se
94+
- $scriptExtension
95+
- $sharedCache
96+
- $terminal
97+
- $console
98+
- $things
99+
Style/SpecialGlobalVars:
100+
Enabled: false
101+
Style/YodaCondition:
102+
Exclude:
103+
- spec/openhab/core/types/*_spec.rb
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jruby:
2+
javadocs:
3+
java: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/
4+
javax.measure: https://javadoc.io/doc/javax.measure/unit-api/latest/
5+
org.openhab.core: https://www.openhab.org/javadoc/latest/

‎pr-preview/pr-36/.yardopts‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--exclude lib/openhab/core/dependency_tracking.rb
2+
--exclude lib/openhab/core_ext/java/list.rb
3+
--exclude lib/openhab/core_ext/java/map.rb
4+
--exclude lib/openhab/rspec/mocks/
5+
--exclude lib/openhab/yard/
6+
--exclude lib/openhab/rspec/jruby.rb
7+
--exclude lib/openhab/rspec/karaf.rb
8+
--exclude lib/openhab/rspec/openhab/
9+
--exclude lib/openhab/rspec/suspend_rules.rb
10+
--exclude lib/openhab/console/
11+
--load openhab/yard.rb
12+
--asset docs/images
13+
--output-dir docs/yard
14+
--protected
15+
--markup markdown
16+
--markup-provider commonmarker
17+
--readme USAGE.md
18+
--title "openHAB JRuby"
19+
- CHANGELOG.md CONTRIBUTING.md README.md docs/**/*.md

0 commit comments

Comments
 (0)