fast_code_owners 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +124 -0
- data/Cargo.lock +1134 -0
- data/Cargo.toml +7 -0
- data/README.md +27 -0
- data/Rakefile +19 -0
- data/ext/fast_code_owners/Cargo.toml +15 -0
- data/ext/fast_code_owners/extconf.rb +6 -0
- data/ext/fast_code_owners/src/lib.rs +76 -0
- data/ext/fast_code_owners/tests/fixtures/valid_project/config/teams/bar.yml +5 -0
- data/ext/fast_code_owners/tests/fixtures/valid_project/config/teams/foo.yml +5 -0
- data/ext/fast_code_owners/tests/fixtures/valid_project/ruby/app/bar/bar_none.rb +0 -0
- data/ext/fast_code_owners/tests/fixtures/valid_project/ruby/app/foo/foo_none.rb +0 -0
- data/lib/fast_code_owners/file_path_finder.rb +63 -0
- data/lib/fast_code_owners/file_path_team_cache.rb +39 -0
- data/lib/fast_code_owners/team_finder.rb +72 -0
- data/lib/fast_code_owners/version.rb +5 -0
- data/lib/fast_code_owners.rb +54 -0
- data/sig/fast_code_owners.rbs +4 -0
- data/sorbet/config +6 -0
- data/sorbet/rbi/dsl/.gitattributes +1 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
- data/sorbet/rbi/gems/code_teams@1.0.0.rbi +120 -0
- data/sorbet/rbi/gems/packs@0.0.2.rbi +80 -0
- data/sorbet/rbi/gems/packwerk@3.0.1.rbi +92 -0
- data/sorbet/rbi/manual.rbi +10 -0
- data/sorbet/rbi/todo.rbi +6 -0
- metadata +214 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b035f4f585bba5c25321724fa30ebb1f0334c93ef5af0dacb6246009b8da8c34
|
4
|
+
data.tar.gz: 9805aac5faf023d32c710129afceae7dc1c31f3ba91e7c883828a630469ca0fa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b1537434fb48ea0068f737f26152f35ee90d22425feb874360d30201da0abbc88e53dcc055386c93ffeec622f5f9120e61b46769c1a91205af272c7170243ee3
|
7
|
+
data.tar.gz: daa3cd8ca8d2025c47d312cbfb804ee05bcbb85e7d7900816fc60bbef55832c05e16100ab3b8127abb2a5eb23a59aade7d4fd884d51cc058d5b16d82d1306437
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
2
|
+
# configuration file. It makes it possible to enable/disable
|
3
|
+
# certain cops (checks) and to alter their behavior if they accept
|
4
|
+
# any parameters. The file can be placed either in your home
|
5
|
+
# directory or in some project directory.
|
6
|
+
#
|
7
|
+
# RuboCop will start looking for the configuration file in the directory
|
8
|
+
# where the inspected file is and continue its way up to the root directory.
|
9
|
+
#
|
10
|
+
# See https://docs.rubocop.org/rubocop/configuration
|
11
|
+
AllCops:
|
12
|
+
NewCops: enable
|
13
|
+
Exclude:
|
14
|
+
- ext/**/**
|
15
|
+
- tmp/**/**
|
16
|
+
TargetRubyVersion: 3.0
|
17
|
+
|
18
|
+
Metrics/ParameterLists:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
# This cop is annoying with typed configuration
|
22
|
+
Style/TrivialAccessors:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# This rubocop is annoying when we use interfaces a lot
|
26
|
+
Lint/UnusedMethodArgument:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Gemspec/RequireMFA:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
Lint/DuplicateBranch:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
# If is sometimes easier to think about than unless sometimes
|
36
|
+
Style/NegatedIf:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
# Disabling for now until it's clearer why we want this
|
40
|
+
Style/FrozenStringLiteralComment:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
# It's nice to be able to read the condition first before reading the code within the condition
|
44
|
+
Style/GuardClause:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
#
|
48
|
+
# Leaving length metrics to human judgment for now
|
49
|
+
#
|
50
|
+
Metrics/ModuleLength:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
Layout/LineLength:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
Metrics/BlockLength:
|
57
|
+
Enabled: false
|
58
|
+
|
59
|
+
Metrics/MethodLength:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
Metrics/AbcSize:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Metrics/ClassLength:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
# This doesn't feel useful
|
69
|
+
Metrics/CyclomaticComplexity:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
# This doesn't feel useful
|
73
|
+
Metrics/PerceivedComplexity:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
# It's nice to be able to read the condition first before reading the code within the condition
|
77
|
+
Style/IfUnlessModifier:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
# This leads to code that is not very readable at times (very long lines)
|
81
|
+
Style/ConditionalAssignment:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
# For now, we prefer to lean on clean method signatures as documentation. We may change this later.
|
85
|
+
Style/Documentation:
|
86
|
+
Enabled: false
|
87
|
+
|
88
|
+
# Sometimes we leave comments in empty else statements intentionally
|
89
|
+
Style/EmptyElse:
|
90
|
+
Enabled: false
|
91
|
+
|
92
|
+
# Sometimes we want to more explicitly list out a condition
|
93
|
+
Style/RedundantCondition:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
# This leads to code that is not very readable at times (very long lines)
|
97
|
+
Layout/MultilineMethodCallIndentation:
|
98
|
+
Enabled: false
|
99
|
+
|
100
|
+
# Blocks across lines are okay sometimes
|
101
|
+
Style/BlockDelimiters:
|
102
|
+
Enabled: false
|
103
|
+
|
104
|
+
# Sometimes we like methods like `get_packages`
|
105
|
+
Naming/AccessorMethodName:
|
106
|
+
Enabled: false
|
107
|
+
|
108
|
+
# This leads to code that is not very readable at times (very long lines)
|
109
|
+
Layout/FirstArgumentIndentation:
|
110
|
+
Enabled: false
|
111
|
+
|
112
|
+
# This leads to code that is not very readable at times (very long lines)
|
113
|
+
Layout/ArgumentAlignment:
|
114
|
+
Enabled: false
|
115
|
+
|
116
|
+
Style/AccessorGrouping:
|
117
|
+
Enabled: false
|
118
|
+
|
119
|
+
Style/HashSyntax:
|
120
|
+
Enabled: false
|
121
|
+
|
122
|
+
Gemspec/DevelopmentDependencies:
|
123
|
+
Enabled: true
|
124
|
+
EnforcedStyle: gemspec
|