| 
									
										
										
										
											2024-07-14 16:18:26 -04:00
										 |  |  | # Documentation defined in Library/Homebrew/dev-cmd/rubocop.rb | 
					
						
							| 
									
										
										
										
											2021-01-06 15:21:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 23:30:20 +09:00
										 |  |  | # HOMEBREW_LIBRARY is from the user environment. | 
					
						
							|  |  |  | # HOMEBREW_RUBY_PATH is set by utils/ruby.sh | 
					
						
							|  |  |  | # HOMEBREW_BREW_FILE is set by extend/ENV/super.rb | 
					
						
							|  |  |  | # shellcheck disable=SC2154 | 
					
						
							| 
									
										
										
										
											2021-01-06 15:21:09 +00:00
										 |  |  | homebrew-rubocop() { | 
					
						
							| 
									
										
										
										
											2021-04-20 23:30:20 +09:00
										 |  |  |   source "${HOMEBREW_LIBRARY}/Homebrew/utils/ruby.sh" | 
					
						
							| 
									
										
										
										
											2021-01-06 15:21:09 +00:00
										 |  |  |   setup-ruby-path | 
					
						
							| 
									
										
										
										
											2024-05-02 10:33:42 +01:00
										 |  |  |   setup-gem-home-bundle-gemfile | 
					
						
							| 
									
										
										
										
											2021-01-06 15:21:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-04 21:52:51 +01:00
										 |  |  |   BUNDLE_WITH="style" | 
					
						
							|  |  |  |   export BUNDLE_WITH | 
					
						
							| 
									
										
										
										
											2022-08-11 10:57:19 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   if ! bundle check &>/dev/null | 
					
						
							| 
									
										
										
										
											2021-09-13 20:32:20 +08:00
										 |  |  |   then | 
					
						
							| 
									
										
										
										
											2024-05-02 10:33:42 +01:00
										 |  |  |     "${HOMEBREW_BREW_FILE}" install-bundler-gems --add-groups="${BUNDLE_WITH}" | 
					
						
							| 
									
										
										
										
											2021-01-06 15:21:09 +00:00
										 |  |  |   fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 23:30:20 +09:00
										 |  |  |   export PATH="${GEM_HOME}/bin:${PATH}" | 
					
						
							| 
									
										
										
										
											2021-01-06 15:21:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 23:30:20 +09:00
										 |  |  |   RUBOCOP="${HOMEBREW_LIBRARY}/Homebrew/utils/rubocop.rb" | 
					
						
							|  |  |  |   exec "${HOMEBREW_RUBY_PATH}" "${RUBOCOP}" "$@" | 
					
						
							| 
									
										
										
										
											2021-01-06 15:21:09 +00:00
										 |  |  | } |